2018-07-18 17:47:11 +00:00
|
|
|
%global _firmwarepath /usr/lib/firmware
|
|
|
|
|
|
|
|
Name: wireless-regdb
|
|
|
|
Version: 2018.05.31
|
2018-08-02 18:00:18 +00:00
|
|
|
Release: 4%{?dist}
|
2018-07-18 17:47:11 +00:00
|
|
|
Summary: Regulatory database for 802.11 wireless networking
|
|
|
|
|
|
|
|
License: ISC
|
|
|
|
URL: https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Requires: udev, iw
|
|
|
|
Requires: systemd >= 190
|
|
|
|
Requires: kernel >= 4.15
|
|
|
|
|
2018-07-18 18:15:28 +00:00
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
2018-08-02 18:00:18 +00:00
|
|
|
Provides: crda = 3.18_2018.05.31-3
|
2018-07-18 17:47:11 +00:00
|
|
|
Obsoletes: crda <= 3.18_2018.05.31-2
|
|
|
|
|
|
|
|
Source0: http://www.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-%{version}.tar.xz
|
|
|
|
Source1: setregdomain
|
|
|
|
Source2: setregdomain.1
|
|
|
|
Source3: 85-regulatory.rules
|
|
|
|
|
|
|
|
# Split existing install rule into separate install_bin and install_db rules
|
|
|
|
Patch0: wireless-regdb-install_db.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
The wireless-regdb package provides the regulatory rules database
|
|
|
|
used by the kernels 802.11 networking stack in order to comply
|
|
|
|
with radio frequency regulatory rules around the world.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%patch0 -p1 -b .install_db
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
: # Package installs a firmware-like, prebuilt binary from upstream...
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install_db DESTDIR=%{buildroot} MANDIR=%{_mandir} \
|
|
|
|
FIRMWARE_PATH=%{_firmwarepath}
|
|
|
|
|
|
|
|
install -D -pm 0755 %SOURCE1 %{buildroot}%{_sbindir}/setregdomain
|
|
|
|
install -D -pm 0644 %SOURCE2 %{buildroot}%{_mandir}/man1/setregdomain.1
|
|
|
|
install -D -pm 0644 %SOURCE3 %{buildroot}%{_udevrulesdir}/85-regulatory.rules
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_sbindir}/setregdomain
|
|
|
|
%{_udevrulesdir}/85-regulatory.rules
|
|
|
|
%{_firmwarepath}/regulatory.db
|
|
|
|
%{_firmwarepath}/regulatory.db.p7s
|
|
|
|
%{_mandir}/man1/setregdomain.1*
|
|
|
|
%{_mandir}/man5/regulatory.db.5*
|
|
|
|
%license LICENSE
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-08-02 18:00:18 +00:00
|
|
|
* Thu Aug 02 2018 John W. Linville <linville@redhat.com> - 2018.05.31-4
|
|
|
|
- Enable Provides for crda so as to promote automated upgrades
|
|
|
|
|
2018-07-18 18:26:19 +00:00
|
|
|
* Wed Jul 18 2018 John W. Linville <linville@redhat.com> - 2018.05.31-3
|
|
|
|
- Fix-up changelog typos and bump Release
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 John W. Linville <linville@redhat.com> - 2018.05.31-2
|
|
|
|
- Add BuildRequires for systemd-devel to provide _udevrulesdir definition
|
2018-07-18 18:15:28 +00:00
|
|
|
|
2018-07-18 17:47:11 +00:00
|
|
|
* Fri Jul 06 2018 John W. Linville <linville@redhat.com> - 2018.05.31-1
|
|
|
|
- Initial build
|