106 lines
3.5 KiB
RPMSpec
106 lines
3.5 KiB
RPMSpec
Name: crda
|
|
Version: 4.14
|
|
Release: 2mamba
|
|
Summary: The udev helper for communication between the kernel and userspace for regulatory compliance
|
|
Group: System/Kernel and Hardware
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://drvbp1.linux-foundation.org/~mcgrof/rel-html/crda/
|
|
#URL: http://linuxwireless.org/en/developers/Regulatory/CRDA
|
|
Source: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/v%{version}/crda-%{version}.tar.bz2
|
|
#Source: http://kernel.org/pub/software/network/crda/crda-%{version}.tar.xz
|
|
#Source: http://linuxwireless.org/download/crda/crda-%{version}.tar.bz2
|
|
Patch0: %{name}-1.1.2-libnl-3.patch
|
|
Patch1: crda-4.14-python3.patch
|
|
License: ISC License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcrypt-devel
|
|
BuildRequires: libnl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python-M2Crypto-py3
|
|
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.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
sed -i "s|ldconfig|true|" Makefile
|
|
sed -i "s| python | %{__python3} |" Makefile
|
|
|
|
%build
|
|
%make -j1 REG_BIN=%{_prefix}/lib/crda/regulatory.bin
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
make install \
|
|
PREFIX=%{buildroot} \
|
|
SBINDIR=%{buildroot}/sbin/ \
|
|
LIBDIR=%{buildroot}/%{_lib}/ \
|
|
INCLUDE_DIR=%{buildroot}%{_includedir}/reglib \
|
|
MANDIR=%{buildroot}%{_mandir} \
|
|
UDEV_RULE_DIR=%{buildroot}/lib/udev/rules.d/
|
|
|
|
sed -i "s|%{buildroot}||" %{buildroot}/lib/udev/rules.d/85-regulatory.rules
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/%{_lib}/libreg.so
|
|
%{_udevrulesdir}/85-regulatory.rules
|
|
/sbin/crda
|
|
/sbin/regdbdump
|
|
%{_mandir}/man8/crda.8*
|
|
%{_mandir}/man8/regdbdump.8*
|
|
%doc LICENSE
|
|
# README
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/reglib
|
|
%{_includedir}/reglib/*.h
|
|
|
|
%changelog
|
|
* Mon Dec 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14-2mamba
|
|
- rebuilt with debug package and patch to use python3
|
|
|
|
* Sat Jul 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.14-1mamba
|
|
- update to 4.14
|
|
|
|
* Fri Feb 06 2015 Automatic Build System <autodist@mambasoft.it> 3.18-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Aug 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13-2mamba
|
|
- remove buildroot from 85-regulatory.rules file
|
|
|
|
* Tue Feb 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13-1mamba
|
|
- update to 3.13
|
|
|
|
* Mon Jan 21 2013 Automatic Build System <autodist@mambasoft.it> 1.1.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jul 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-2mamba
|
|
- rebuilt with libnl-3, added patch
|
|
|
|
* Wed Sep 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-1mamba
|
|
- package created by autospec
|