Blame SPECS/crda.spec

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