Accepting request 138917 from openSUSE:Factory:Staging:Systemd

fix build with new udev location

OBS-URL: https://build.opensuse.org/request/show/138917
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=75
This commit is contained in:
Angelos Tzotsos
2012-10-22 16:01:21 +00:00
committed by Git OBS Bridge
parent 2f7c72c4b4
commit a81f236cb2
3 changed files with 24 additions and 13 deletions

View File

@@ -16,6 +16,12 @@
#
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevdir /usr/lib/udev/
%else
%define _udevdir /lib/udev/
%endif
Name: gpsd
Summary: Service daemon for mediating access to a GPS
License: BSD-3-Clause
@@ -224,12 +230,12 @@ scons prefix=%{_prefix} libdir=%{_libdir} strip=False
%install
DESTDIR=%{buildroot} scons prefix=%{_prefix} libdir=%{_libdir} strip=False install
install -d -m 755 %{buildroot}/lib/udev
install -d -m 755 %{buildroot}/lib/udev/rules.d
install -d -m 755 %{buildroot}%{_udevdir}
install -d -m 755 %{buildroot}%{_udevdir}/rules.d
install -d -m 755 %{buildroot}/var/adm/fillup-templates
install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -m 644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/51-gpsd.rules
install -m 755 %{SOURCE2} %{buildroot}/lib/udev/gpsd.sh
install -m 644 %{SOURCE1} %{buildroot}%{_udevdir}/rules.d/51-gpsd.rules
install -m 755 %{SOURCE2} %{buildroot}%{_udevdir}/gpsd.sh
install -m 644 %{SOURCE3} %{buildroot}/var/adm/fillup-templates
if [ -f %{buildroot}%{python_sitearch}/*.egg-info ] ; then
rm -f %{buildroot}%{python_sitearch}/*.egg-info
@@ -270,8 +276,8 @@ rm -rf %{buildroot}
%{_mandir}/man?/gpsd.*
%{_mandir}/man?/gpsdctl.*
%{_mandir}/man?/gpsctl.*
/lib/udev/gpsd.sh
/lib/udev/rules.d/*
%{_udevdir}/gpsd.sh
%{_udevdir}/rules.d/*
%{_sbindir}/gpsd
%{_sbindir}/gpsdctl
%{_bindir}/gpsctl