summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 19:23:18 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 19:24:09 +0200
commit5c4d3e0c1ab7787ce01b90338d013a1f6b7d28e6 (patch)
tree70bf968cfea6267c8ce449d2a2e0e215d9ff7fc2
parent3d6794e8012ad284a3ad14c4dafd5466f808f986 (diff)
downloadgps-devices-package-5c4d3e0c1ab7787ce01b90338d013a1f6b7d28e6.tar.gz
gps-devices-package-5c4d3e0c1ab7787ce01b90338d013a1f6b7d28e6.tar.xz
gps-devices-package-5c4d3e0c1ab7787ce01b90338d013a1f6b7d28e6.zip
0.0.7: dummy-device in %files
-rw-r--r--gpsd-devices.spec9
1 files changed, 5 insertions, 4 deletions
diff --git a/gpsd-devices.spec b/gpsd-devices.spec
index f2223db..061aa7f 100644
--- a/gpsd-devices.spec
+++ b/gpsd-devices.spec
@@ -1,5 +1,5 @@
Name: gpsd-devices
-Version: 0.0.6
+Version: 0.0.7
Release: 0%{?dist}
Summary: GPS Devices for navigation
@@ -59,6 +59,9 @@ install %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/"
install -d "%{buildroot}/usr/share/selinux/targeted"
install gps-device.pp gpsd-devices.pp "%{buildroot}/usr/share/selinux/targeted/"
+install -d "%{buildroot}%{_datadir}/gpsd"
+mkfifo "%{buildroot}%{_datadir}/gpsd/dummy-device"
+
%pre
getent group gps >/dev/null || groupadd -r gps
@@ -67,9 +70,6 @@ exit 0
%post
semodule -u gps-device gpsd-devices
-[ -p "%{_datadir}/gpsd/dummy-device" ] || mkfifo "%{_datadir}/gpsd/dummy-device"
-chown root.gps "%{_datadir}/gpsd/dummy-device"
-chmod 0644 "%{_datadir}/gpsd/dummy-device"
exit 0
@@ -90,6 +90,7 @@ rm -rf "%{buildroot}"
%{_datadir}/hal/fdi/policy/gpsd-devices-policy.fdi
%{_datadir}/selinux/targeted/gps-device.pp
%{_datadir}/selinux/targeted/gpsd-devices.pp
+%attr(0644,root,gps) %{_datadir}/gpsd/dummy-device
%changelog