wireless-regdb/wireless-regdb.spec

77 lines
2.2 KiB
RPMSpec
Raw Normal View History

2018-07-18 17:47:11 +00:00
%global _firmwarepath /usr/lib/firmware
Name: wireless-regdb
Version: 2018.05.31
Release: 3%{?dist}
2018-07-18 17:47:11 +00:00
Summary: Regulatory database for 802.11 wireless networking
Group: System Environment/Base
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
BuildRequires: systemd-devel
2018-07-18 17:47:11 +00:00
# Temporarily disable Provides so as to prevent unintended upgrades
#Provides: crda = 3.18_2018.05.31-3
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
* 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 17:47:11 +00:00
* Fri Jul 06 2018 John W. Linville <linville@redhat.com> - 2018.05.31-1
- Initial build