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 Name: crda
Version: 4.14 Version: 4.14
Release: 2mamba Release: 3mamba
Summary: The udev helper for communication between the kernel and userspace for regulatory compliance Summary: The udev helper for communication between the kernel and userspace for regulatory compliance
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
@ -24,7 +24,6 @@ BuildRequires: python-typing-py3
BuildRequires: python-pycryptodomex-py3 BuildRequires: python-pycryptodomex-py3
BuildRequires: wireless-regdb BuildRequires: wireless-regdb
Requires: wireless-regdb Requires: wireless-regdb
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install \ make install \
PREFIX=%{buildroot} \ PREFIX=%{buildroot}%{_prefix} \
SBINDIR=%{buildroot}/sbin/ \ SBINDIR=%{buildroot}%{_sbindir} \
LIBDIR=%{buildroot}/%{_lib}/ \ LIBDIR=%{buildroot}%{_libdir} \
INCLUDE_DIR=%{buildroot}%{_includedir}/reglib \ INCLUDE_DIR=%{buildroot}%{_includedir}/reglib \
MANDIR=%{buildroot}%{_mandir} \ 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/%{_lib}/libreg.so %{_sbindir}/crda
%{_sbindir}/regdbdump
%{_udevrulesdir}/85-regulatory.rules %{_udevrulesdir}/85-regulatory.rules
/sbin/crda %{_libdir}/libreg.so
/sbin/regdbdump
%{_mandir}/man8/crda.8* %{_mandir}/man8/crda.8*
%{_mandir}/man8/regdbdump.8* %{_mandir}/man8/regdbdump.8*
%doc LICENSE %doc LICENSE
@ -80,6 +79,9 @@ sed -i "s|%{buildroot}||" %{buildroot}/lib/udev/rules.d/85-regulatory.rules
%{_includedir}/reglib/*.h %{_includedir}/reglib/*.h
%changelog %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 * Mon Dec 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14-2mamba
- rebuilt with debug package and patch to use python3 - rebuilt with debug package and patch to use python3