Accepting request 138488 from openSUSE:Factory:Staging:Systemd

- Fix build with udev rules directory new location.

OBS-URL: https://build.opensuse.org/request/show/138488
OBS-URL: https://build.opensuse.org/package/show/hardware/crda?expand=0&rev=20
This commit is contained in:
Andreas Jaeger 2012-10-18 07:21:14 +00:00 committed by Git OBS Bridge
parent 9bea5caabb
commit 5f429da8e0
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 17 11:19:13 UTC 2012 - fcrozat@suse.com
- Fix build with udev rules directory new location.
-------------------------------------------------------------------
Thu Sep 13 11:11:28 UTC 2012 - cfarrell@suse.com

View File

@ -16,6 +16,13 @@
#
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif
Url: http://linuxwireless.org/en/developers/Regulatory/CRDA
Name: crda
@ -47,7 +54,7 @@ through udev.
make all_noverify %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir}/ install
make DESTDIR=$RPM_BUILD_ROOT SBINDIR=%{_sbindir}/ UDEV_RULE_DIR=%{_udevrulesdir} install
#UsrMerge
mkdir $RPM_BUILD_ROOT/sbin
ln -sf %{_sbindir}/{crda,regdbdump} $RPM_BUILD_ROOT/sbin
@ -61,7 +68,7 @@ ln -sf %{_sbindir}/{crda,regdbdump} $RPM_BUILD_ROOT/sbin
/sbin/crda
/sbin/regdbdump
#EndUserMerge
/lib/udev/rules.d/85-regulatory.rules
%{_udevrulesdir}/85-regulatory.rules
%{_mandir}/man8/crda.8.gz
%{_mandir}/man8/regdbdump.8.gz