From 5f0812a435df42d160cfc22cbb82cac94eab2e3a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:33:38 +0100 Subject: [PATCH] rebuilt under %_prefix [release 4.14-3mamba;Mon Mar 08 2021] --- crda.spec | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/crda.spec b/crda.spec index ded28d3..9820730 100644 --- a/crda.spec +++ b/crda.spec @@ -1,6 +1,6 @@ Name: crda Version: 4.14 -Release: 2mamba +Release: 3mamba Summary: The udev helper for communication between the kernel and userspace for regulatory compliance Group: System/Kernel and Hardware Vendor: openmamba @@ -24,7 +24,6 @@ BuildRequires: python-typing-py3 BuildRequires: python-pycryptodomex-py3 BuildRequires: wireless-regdb Requires: wireless-regdb -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description CRDA acts as the udev helper for communication between the kernel and userspace for regulatory compliance. It relies on nl80211 for communication. CRDA is intended to be run only through udev communication from the kernel. The user should never have to run it manually except if debugging udev issues. @@ -51,24 +50,24 @@ sed -i "s| python | %{__python3} |" Makefile %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" make install \ - PREFIX=%{buildroot} \ - SBINDIR=%{buildroot}/sbin/ \ - LIBDIR=%{buildroot}/%{_lib}/ \ + PREFIX=%{buildroot}%{_prefix} \ + SBINDIR=%{buildroot}%{_sbindir} \ + LIBDIR=%{buildroot}%{_libdir} \ INCLUDE_DIR=%{buildroot}%{_includedir}/reglib \ MANDIR=%{buildroot}%{_mandir} \ - UDEV_RULE_DIR=%{buildroot}/lib/udev/rules.d/ + UDEV_RULE_DIR=%{buildroot}%{_udevrulesdir} -sed -i "s|%{buildroot}||" %{buildroot}/lib/udev/rules.d/85-regulatory.rules +sed -i "s|%{buildroot}||" %{buildroot}%{_udevrulesdir}/85-regulatory.rules %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) -/%{_lib}/libreg.so +%{_sbindir}/crda +%{_sbindir}/regdbdump %{_udevrulesdir}/85-regulatory.rules -/sbin/crda -/sbin/regdbdump +%{_libdir}/libreg.so %{_mandir}/man8/crda.8* %{_mandir}/man8/regdbdump.8* %doc LICENSE @@ -80,6 +79,9 @@ sed -i "s|%{buildroot}||" %{buildroot}/lib/udev/rules.d/85-regulatory.rules %{_includedir}/reglib/*.h %changelog +* Mon Mar 08 2021 Silvan Calarco 4.14-3mamba +- rebuilt under %_prefix + * Mon Dec 07 2020 Silvan Calarco 4.14-2mamba - rebuilt with debug package and patch to use python3