summaryrefslogtreecommitdiffstats
path: root/gps-devices.spec
blob: 786f0aef78d3501c285d07013f051219bfa2a25e (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Name:		gps-devices
Version:	0.1.0
Release:	0.1%{?dist}
Summary:	GPS Devices for navigation

Group:		System Environment/Daemons
License:	GPLv2+
URL:		http://fedorapeople.org/gitweb?p=ndim/public_git/gps-devices-package.git
Source0:	gps-devices-information.fdi
Source1:	gps-devices-policy.fdi
Source30:	README
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildArch:	noarch

Requires:	hal
Requires(pre):	shadow-utils


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


%prep
%setup -c -T
cp %{SOURCE30} .


%build


%install
rm -rf "%{buildroot}"

install -d -m 0755 "%{buildroot}/usr/share/hal/fdi/information/20thirdparty"
install -p -m 0644 %{SOURCE0} "%{buildroot}/usr/share/hal/fdi/information/20thirdparty/10-gps-devices.fdi"

install -d -m 0755 "%{buildroot}/usr/share/hal/fdi/policy/20thirdparty"
install -p -m 0644 %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/20thirdparty/10-gps-devices.fdi"


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


%post
service haldaemon restart
exit 0


%preun
exit 0


%postun
service haldaemon restart
exit 0


%clean
rm -rf "%{buildroot}"


%files
%defattr(-,root,root,-)
%doc README
%{_datadir}/hal/fdi/information/20thirdparty/10-gps-devices.fdi
%{_datadir}/hal/fdi/policy/20thirdparty/10-gps-devices.fdi


%changelog
* Tue Jul 21 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.1.0-0.1
- Use real URL: tag

* Sat Jul 11 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.1.0-0
- initial package