Blame SPECS/crda.spec

0bf28e
%define         crda_version    3.18
0bf28e
%define         regdb_version   2018.05.31
0bf28e
0bf28e
%global         _firmwarepath	/usr/lib/firmware
0bf28e
%global		_udevrulesdir	/usr/lib/udev/rules.d
0bf28e
0bf28e
Name:           crda
0bf28e
Version:        %{crda_version}_%{regdb_version}
0bf28e
Release:        3%{?dist}
0bf28e
Summary:        Regulatory compliance daemon for 802.11 wireless networking
0bf28e
BuildArch:      noarch
0bf28e
0bf28e
Group:          System Environment/Base
0bf28e
License:        ISC
0bf28e
URL:            https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb
0bf28e
BuildRoot:      %{_tmppath}/%{name}-%{crda_version}-%{release}-root-%(%{__id_u} -n)
0bf28e
0bf28e
Requires:       udev, iw
0bf28e
Requires:       systemd >= 190
0bf28e
Requires:       kernel >= 4.15
0bf28e
0bf28e
Source0:        http://www.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-%{regdb_version}.tar.xz
0bf28e
Source1:        setregdomain
0bf28e
Source2:        setregdomain.1
0bf28e
Source3:        85-regulatory.rules
0bf28e
0bf28e
Patch0:         wireless-regdb-install_db.patch
0bf28e
0bf28e
%description
0bf28e
The crda package provideds the regulatory rules database
0bf28e
"wireless-regdb" used by the kernels 802.11 networking stack
0bf28e
in order to comply with radio frequency regulatory rules around
0bf28e
the world.
0bf28e
0bf28e
%prep
0bf28e
%setup -q -c
0bf28e
%patch0 -p0 -b .install_db
0bf28e
0bf28e
%install
0bf28e
cd wireless-regdb-%{regdb_version}
0bf28e
make install_db DESTDIR=%{buildroot} MANDIR=%{_mandir} \
0bf28e
	FIRMWARE_PATH=%{_firmwarepath}
0bf28e
0bf28e
install -D -pm 0755 %SOURCE1 %{buildroot}%{_sbindir}/setregdomain
0bf28e
install -D -pm 0644 %SOURCE2 %{buildroot}%{_mandir}/man1/setregdomain.1
0bf28e
install -D -pm 0644 %SOURCE3 %{buildroot}%{_udevrulesdir}/85-regulatory.rules
0bf28e
0bf28e
%files
0bf28e
%defattr(-,root,root,-)
0bf28e
%{_sbindir}/setregdomain
0bf28e
%{_udevrulesdir}/85-regulatory.rules
0bf28e
%{_firmwarepath}/regulatory.db
0bf28e
%{_firmwarepath}/regulatory.db.p7s
0bf28e
%{_mandir}/man1/setregdomain.1*
0bf28e
%{_mandir}/man5/regulatory.db.5*
0bf28e
%license wireless-regdb-%{regdb_version}/LICENSE
0bf28e
%doc wireless-regdb-%{regdb_version}/README
0bf28e
0bf28e
%changelog
0bf28e
* Fri Jul 27 2018 Stanislaw Gruszka <sgruszka@redhat.com> - 2018.05.31-2
0bf28e
- Remove crda package, since kernel 4.15 is sufficient to provide only
0bf28e
  wireless-regdb package
0bf28e
0bf28e
* Tue Jun 26 2018 Stanislaw Gruszka <sgruszka@redhat.com> - 3.18_2018.05.31-2
0bf28e
- Update wireless-regdb to 2018.05.31
0bf28e
- Remove python2 dependency
0bf28e
- Use sforshee signed reulatory.bin (required by modern kernels)
0bf28e
0bf28e
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.18_2016.02.08-7
0bf28e
- Escape macros in %%changelog
0bf28e
0bf28e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.18_2016.02.08-6
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0bf28e
0bf28e
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.18_2016.02.08-5
0bf28e
- Switch to %%ldconfig_scriptlets
0bf28e
0bf28e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18_2016.02.08-4
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0bf28e
0bf28e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18_2016.02.08-3
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0bf28e
0bf28e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18_2016.02.08-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0bf28e
0bf28e
* Tue Feb 09 2016 John W. Linville <linville@redhat.com> - 3.18_2016.02.08-1
0bf28e
- Update wireless-regdb to version 2016.02.08
0bf28e
- Do not treat unused-const-variable warnings as errors
0bf28e
0bf28e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.18_2015.10.22-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0bf28e
0bf28e
* Tue Nov  3 2015 John W. Linville <linville@redhat.com> - 3.18_2015.10.22-1
0bf28e
- Update wireless-regdb to version 2015.10.22
0bf28e
- Fix some whitespace damage in spec file
0bf28e
0bf28e
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 3.18_2015.04.06-3
0bf28e
- Pass rpm's ldflags through to fix hardening
0bf28e
0bf28e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18_2015.04.06-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0bf28e
0bf28e
* Tue Apr 21 2015 John W. Linville <linville@redhat.com> - 3.18_2015.04.06-1
0bf28e
- Update wireless-regdb to version 2015.04.06
0bf28e
0bf28e
* Fri Mar 20 2015 John W. Linville <linville@redhat.com> - 3.18_2015.03.13-1
0bf28e
- Update wireless-regdb to version 2015.03.13
0bf28e
0bf28e
* Wed Feb  4 2015 John W. Linville <linville@redhat.com> - 3.18_2015.01.30-3
0bf28e
- Use %%license instead of %%doc for file containing license information
0bf28e
- Add %%license entry for wireless-regdb
0bf28e
- Correct NVR info at end of previous changelog entry
0bf28e
0bf28e
* Mon Feb  2 2015 John W. Linville <linville@redhat.com> - 3.18_2015.01.30-2
0bf28e
- Update crda to version 3.18
0bf28e
- Update wireless-regdb to version 2015.01.30
0bf28e
- Drop patch to add DESTDIR in install rules for libreg in crda Makefile
0bf28e
0bf28e
* Tue Nov 25 2014 John W. Linville <linville@redhat.com> - 3.13_2014.11.18-1
0bf28e
- Update wireless-regdb to version 2014.11.18
0bf28e
0bf28e
* Mon Oct 27 2014 John W. Linville <linville@redhat.com> - 3.13_2014.10.07-1
0bf28e
- Update wireless-regdb to version 2014.10.07
0bf28e
- Update copyright dates in setregdomain
0bf28e
0bf28e
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13_2014.06.13-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0bf28e
0bf28e
* Fri Jun 13 2014 John W. Linville <linville@redhat.com> - 3.13_2014.06.13-1
0bf28e
- Update wireless-regdb to version 2014.06.13
0bf28e
0bf28e
* Fri Jun  6 2014 John W. Linville <linville@redhat.com> - 3.13_2014.06.02-1
0bf28e
- Add logger commands to setregdomain to make it more communicative
0bf28e
- Update wireless-regdb to version 2014.06.02
0bf28e
0bf28e
* Fri Feb 28 2014 John W. Linville <linville@redhat.com> - 3.13_2013.11.27-2
0bf28e
- Accomodate relative pathnames in the symlink for /etc/localtime
0bf28e
0bf28e
* Fri Feb 14 2014 John W. Linville <linville@redhat.com> - 3.13_2013.11.27-1
0bf28e
- Update crda to version 3.13
0bf28e
- Remove obsolete patch for regdbdump to display DFS region
0bf28e
- Add patch to use DESTDIR rule for crda libreg installation
0bf28e
- Add patch to avoid calling ldconfig from crda Makefile
0bf28e
- Remove PREFIX='' lines from make commands
0bf28e
- Use SBINDIR and LIBDIR definitions in make commands
0bf28e
0bf28e
* Thu Jan 23 2014 John W. Linville <linville@redhat.com> - 1.1.3_2013.11.27-3
0bf28e
- Correct a typo in setregdomain
0bf28e
0bf28e
* Fri Jan 17 2014 John W. Linville <linville@redhat.com> - 1.1.3_2013.11.27-2
0bf28e
- Add patch for regdbdump to display DFS region
0bf28e
0bf28e
* Mon Dec  2 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.11.27-1
0bf28e
- Update wireless-regdb to version 2013.11.27
0bf28e
0bf28e
* Fri Nov 22 2013 Xose Vazquez Perez <xose.vazquez@gmail.com> - 1.1.3_2013.02.13-5
0bf28e
- fixed wrong dates
0bf28e
- link with libnl3
0bf28e
- new home for sources
0bf28e
0bf28e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3_2013.02.13-4
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0bf28e
0bf28e
* Wed Apr  3 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.02.13-3
0bf28e
- setregdomain: remove sed and awk calls
0bf28e
- setregdomain: reimplement COUNTRY assignment with shell function
0bf28e
0bf28e
* Fri Mar  1 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.02.13-2
0bf28e
- Bump release to prevent upgrade issues from F17...oops!
0bf28e
0bf28e
* Wed Feb 13 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.02.13-1
0bf28e
- Update wireless-regdb to version 2013.02.13
0bf28e
0bf28e
* Tue Feb 12 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.02.12-1
0bf28e
- Update wireless-regdb to version 2013.02.12
0bf28e
0bf28e
* Fri Jan 25 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.01.11-2
0bf28e
- Update setregdomain to determine timezone info from /etc/timezone
0bf28e
0bf28e
* Fri Jan 25 2013 John W. Linville <linville@redhat.com> - 1.1.3_2013.01.11-1
0bf28e
- Update crda to version 1.1.3
0bf28e
- Update wireless-regdb to version 2013.01.11
0bf28e
0bf28e
* Fri Aug 10 2012 John W. Linville <linville@redhat.com>
0bf28e
- Add BuildRequires for openssl
0bf28e
0bf28e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2_2011.04.28-3
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0bf28e
0bf28e
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2_2011.04.28-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0bf28e
0bf28e
* Thu Aug 11 2011 John W. Linville <linville@redhat.com> 1.1.2_2011.04.28-1
0bf28e
- Update crda to version 1.1.2
0bf28e
- Update wireless-regdb to version 2011.04.28 
0bf28e
- Fix mis-numbered version comment in changelog for Nov 23 2010
0bf28e
0bf28e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1_2010.11.22-2
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0bf28e
0bf28e
* Tue Nov 23 2010 John W. Linville <linville@redhat.com> 1.1.1_2010.11.22-1
0bf28e
- Update wireless-regdb to version 2010.11.22 
0bf28e
0bf28e
* Thu Feb 25 2010 John W. Linville <linville@redhat.com> 1.1.1_2009.11.25-3
0bf28e
- Correct license tag from BSD to ISC
0bf28e
- Comment purpose of regulatory-rules-setregdomain.patch
0bf28e
- Add copyright and license statement to setregdomain
0bf28e
- Add comment for why /lib is hardcoded in files section
0bf28e
- Reformat Dec 21 2009 changelog entry so rpmlint stops complaining
0bf28e
0bf28e
* Tue Jan 26 2010 John W. Linville <linville@redhat.com> 1.1.1_2009.11.25-2
0bf28e
- Change RPM_OPT_FLAGS to optflags
0bf28e
- Leave man page compression to rpmbuild
0bf28e
- Correct date in previous changelog entry
0bf28e
0bf28e
* Tue Jan 26 2010 John W. Linville <linville@redhat.com> 1.1.1_2009.11.25-1
0bf28e
- Update for crda version 1.1.1
0bf28e
0bf28e
* Mon Dec 21 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-5
0bf28e
- Remove unnecessary explicit Requries for libgcrypt and libnl -- oops!
0bf28e
0bf28e
* Mon Dec 21 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-4
0bf28e
- Add libgcrypt and libnl to Requires
0bf28e
0bf28e
* Mon Dec 21 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-3
0bf28e
- Add man page for setregdomain (from Andrew Hecox <ahecox@redhat.com>)
0bf28e
- Change $RPM_BUILD_ROOT to buildroot
0bf28e
0bf28e
* Fri Dec 18 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-2
0bf28e
- Specify path to iw in setregdomain
0bf28e
0bf28e
* Wed Dec  2 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-1
0bf28e
- Update wireless-regdb to version 2009.11.25 
0bf28e
0bf28e
* Wed Nov 11 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.10-1
0bf28e
- Update wireless-regdb to version 2009.11.10 
0bf28e
0bf28e
* Thu Oct  1 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-3
0bf28e
- Move regdb to /lib/crda to facilitate /usr mounted over wireless network
0bf28e
0bf28e
* Wed Sep  9 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-2
0bf28e
- Use kernel-headers instead of kernel-devel
0bf28e
0bf28e
* Wed Sep  9 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-1
0bf28e
- Update wireless-regdb to version 2009.09.08 
0bf28e
- Start resetting release number with version updates
0bf28e
0bf28e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0_2009.04.17-12
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0bf28e
0bf28e
* Wed May 13 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.04.17-11
0bf28e
- Update crda version to version 1.1.0
0bf28e
- Update wireless-regdb to version 2009.04.17 
0bf28e
0bf28e
* Fri Apr 17 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.04.16-10
0bf28e
- Update wireless-regdb version to pick-up recent updates and fixes (#496392)
0bf28e
0bf28e
* Tue Mar 31 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-9
0bf28e
- Add Requires line for iw package (#492762)
0bf28e
- Update setregdomain script to correctly check if COUNTRY is set
0bf28e
0bf28e
* Thu Mar 19 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-8
0bf28e
- Add setregdomain script to set regulatory domain based on timezone
0bf28e
- Expand 85-regulatory.rules to invoke setregdomain script on device add
0bf28e
0bf28e
* Tue Mar 10 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-7
0bf28e
- Update wireless-regdb version to pick-up recent updates and fixes (#489560)
0bf28e
0bf28e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1_2009.01.30-6
0bf28e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0bf28e
0bf28e
* Mon Feb 16 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.01.30-5
0bf28e
- Recognize regulatory.bin files signed with the upstream key (#484982)
0bf28e
0bf28e
* Tue Feb 03 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.01.30-4
0bf28e
- Change version to reflect new wireless-regdb upstream release practices
0bf28e
- Update wireless-regdb version to pick-up recent updates and fixes (#483816)
0bf28e
0bf28e
* Tue Jan 27 2009 John W. Linville <linville@redhat.com> 1.0.1_2009_01_15-3
0bf28e
- Update for CRDA verion 1.0.1
0bf28e
- Account for lack of "v" in upstream release tarball naming
0bf28e
- Add patch to let wireless-regdb install w/o being root
0bf28e
0bf28e
* Thu Jan 22 2009 John W. Linville <linville@redhat.com> v0.9.5_2009_01_15-2
0bf28e
- Revamp based on package review comments
0bf28e
0bf28e
* Tue Jan 20 2009 John W. Linville <linville@redhat.com> v0.9.5_2009_01_15-1
0bf28e
- Initial build