rebuilt under %_prefix [release 4.14-3mamba;Mon Mar 08 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:33:38 +01:00
parent 9e621e8983
commit 5f0812a435

View File

@ -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 <silvan.calarco@mambasoft.it> 4.14-3mamba
- rebuilt under %_prefix
* Mon Dec 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14-2mamba
- rebuilt with debug package and patch to use python3