Accepting request 314277 from home:seife:testing
update to version 3.18 make crda work at all with newer wireless-regdb OBS-URL: https://build.opensuse.org/request/show/314277 OBS-URL: https://build.opensuse.org/package/show/hardware/crda?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
df4d026466
commit
9732a1760c
21
crda.spec
21
crda.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package crda
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,11 +22,11 @@ Url: http://linuxwireless.org/en/developers/Regulatory/CRDA
|
||||
|
||||
Name: crda
|
||||
Summary: 802.11 central regulatory domain agent
|
||||
License: ISC
|
||||
License: copyleft-next-0.3.0
|
||||
Group: Hardware/Wifi
|
||||
Version: 1.1.3
|
||||
Version: 3.18
|
||||
Release: 0
|
||||
Source: http://linuxwireless.org/download/%{name}/%{name}-%{version}.tar.bz2
|
||||
Source: http://kernel.org/pub/software/network/crda/crda-%{version}.tar.xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: pkg-config
|
||||
@@ -44,21 +44,30 @@ through udev.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# make install calls 'ldconfig' and fails if it cannot run it...
|
||||
ln -s /bin/true ldconfig
|
||||
|
||||
%build
|
||||
make all_noverify %{?_smp_mflags}
|
||||
export CFLAGS="%{optflags}"
|
||||
make all_noverify %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir}/ UDEV_RULE_DIR=%{_udevrulesdir} install
|
||||
# to find ldconfig...
|
||||
export PATH=.:$PATH
|
||||
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir}/ UDEV_RULE_DIR=%{_udevrulesdir} LIBDIR=%{_libdir} install
|
||||
#UsrMerge
|
||||
mkdir $RPM_BUILD_ROOT/sbin
|
||||
ln -sf %{_sbindir}/{crda,regdbdump} $RPM_BUILD_ROOT/sbin
|
||||
#EndUserMerge
|
||||
|
||||
# clean up unneeded stuff...
|
||||
rm -r %{buildroot}/usr/include/reglib
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%_sbindir/crda
|
||||
%_sbindir/regdbdump
|
||||
%_libdir/libreg.so
|
||||
#UsrMerge
|
||||
/sbin/crda
|
||||
/sbin/regdbdump
|
||||
|
Reference in New Issue
Block a user