%global _firmwarepath /usr/lib/firmware Name: wireless-regdb Version: 2018.05.31 Release: 3.1%{?dist} 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 # This package should replace crda, for now use Conflicts to ensure # that only one or the other is installed... Conflicts: crda #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 * Thu Aug 02 2018 John W. Linville - 2018.05.31-3.1 - Replace Obsoletes with Conflicts for desired installation behavior * Wed Jul 18 2018 John W. Linville - 2018.05.31-3 - Fix-up changelog typos and bump Release * Wed Jul 18 2018 John W. Linville - 2018.05.31-2 - Add BuildRequires for systemd-devel to provide _udevrulesdir definition * Fri Jul 06 2018 John W. Linville - 2018.05.31-1 - Initial build