summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 16:46:57 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 16:46:57 +0200
commit03a14c13aea1522d4f11f42b9e5b5d720b252713 (patch)
tree09e537ba186a1feb9d5a5be2ae1b7e208abfe714
parent1eb07a46b403c592c86100efdccf7a7e548de350 (diff)
downloadgps-devices-package-03a14c13aea1522d4f11f42b9e5b5d720b252713.tar.gz
gps-devices-package-03a14c13aea1522d4f11f42b9e5b5d720b252713.tar.xz
gps-devices-package-03a14c13aea1522d4f11f42b9e5b5d720b252713.zip
Make simple RPM build work
-rw-r--r--gpsd-devices.spec23
1 files changed, 19 insertions, 4 deletions
diff --git a/gpsd-devices.spec b/gpsd-devices.spec
index ea0da41..342fa1f 100644
--- a/gpsd-devices.spec
+++ b/gpsd-devices.spec
@@ -3,12 +3,18 @@ Version: 0.0.0
Release: 1%{?dist}
Summary: GPS Devices for navigation
-Group: What/Ever
+Group: System Environment/Daemons
License: Something
URL: http://none/
Source0: gps-devices-information.fdi
Source1: gpsd-devices-policy.fdi
-#Source2:
+Source11: gps-device.fc
+Source12: gps-device.if
+Source13: gps-device.te
+Source21: gpsd-devices.fc
+Source22: gpsd-devices.if
+Source23: gpsd-devices.te
+Source30: README
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: selinux-policy
@@ -26,6 +32,8 @@ be added to and removed from gpsd automatically.
%prep
+%setup -c -T
+cp %{SOURCE30} .
%build
@@ -33,8 +41,13 @@ make -f /usr/share/selinux/devel/Makefile
%install
-rm -rf "$RPM_BUILD_ROOT"
-make install DESTDIR="$RPM_BUILD_ROOT"
+rm -rf "%{buildroot}"
+
+install -d "%{buildroot}/usr/share/hal/fdi/information"
+install %{SOURCE0} "%{buildroot}/usr/share/hal/fdi/information/"
+
+install -d "%{buildroot}/usr/share/hal/fdi/policy"
+install %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/"
%pre
@@ -59,6 +72,8 @@ rm -rf "%{buildroot}"
%files
%defattr(-,root,root,-)
%doc README
+%{_datadir}/hal/fdi/information/gps-devices-information.fdi
+%{_datadir}/hal/fdi/policy/gpsd-devices-policy.fdi
%changelog