summaryrefslogtreecommitdiffstats
path: root/gpsd-devices.spec
blob: 29bd980396a0513070cda194538aa5f9e37fabdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Name:		gps-devices
Version:	0.0.0
Release:	1%{?dist}
Summary:	GPS Devices for navigation

Group:		What/Ever
License:	Something
URL:		http://none/
Source0:	gps-devices-information.fdi
Source1:	gps-devices-policy.fdi
#Source2:	
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:	selinux-policy
Requires:	hal
Requires:	gpsd >= 2.39-3.0.1
Requires(pre):	shadow-utils


%description
Automatic setup and use of GPS devices (Global Positioning System)
for navigational purposes.

Set up gpsd such that it is run as a system service. USB devices will
be added to and removed from gpsd automatically.


%prep


%build
make -f /usr/share/selinux/devel/Makefile


%install
rm -rf "$RPM_BUILD_ROOT"
make install DESTDIR="$RPM_BUILD_ROOT"


%pre
getent group gps >/dev/null || groupadd -r gps
exit 0


%post
mkfifo "%{_datadir}/gpsd/dummy-device"
chown root.gps "%{_datadir}/gpsd/dummy-device"
chmod 0644 "%{_datadir}/gpsd/dummy-device"


%preun
rm -f "%{_datadir}/gpsd/dummy-device"


%clean
rm -rf "%{buildroot}"


%files
%defattr(-,root,root,-)
%doc README


%changelog