]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gps # GPS support via gpsd | |
4 | ||
5 | Summary: A modular geoinformation service | |
6 | Summary(pl.UTF-8): Modularna usługa geoinformacyjna | |
7 | Name: geoclue | |
8 | Version: 0.12.99 | |
9 | Release: 4 | |
10 | License: LGPL v2+ | |
11 | Group: Applications | |
12 | Source0: http://freedesktop.org/~hadess/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 779245045bfeeec4853da8baaa3a18e6 | |
14 | Patch0: %{name}-libsoup.patch | |
15 | Patch1: %{name}-gpsd.patch | |
16 | URL: http://geoclue.freedesktop.org/ | |
17 | BuildRequires: GConf2-devel >= 2.0 | |
18 | BuildRequires: NetworkManager-devel | |
19 | BuildRequires: autoconf >= 2.59 | |
20 | BuildRequires: automake >= 1:1.9 | |
21 | BuildRequires: dbus-glib-devel >= 0.86 | |
22 | BuildRequires: docbook-dtd412-xml | |
23 | BuildRequires: glib2-devel >= 1:2.26 | |
24 | %{?with_gps:BuildRequires: gpsd-devel >= 3} | |
25 | BuildRequires: gtk+2-devel >= 1:2.0 | |
26 | BuildRequires: gtk-doc >= 1.0 | |
27 | BuildRequires: gypsy-devel >= 0.7.1 | |
28 | BuildRequires: libsoup-devel >= 2.4.0 | |
29 | BuildRequires: libtool | |
30 | BuildRequires: libxml2-devel >= 2.0 | |
31 | BuildRequires: libxslt-progs | |
32 | Requires: %{name}-libs = %{version}-%{release} | |
33 | Requires: dbus | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Geoclue is a modular geoinformation service built on top of the D-Bus | |
38 | messaging system. The goal of the Geoclue project is to make creating | |
39 | location-aware applications as simple as possible. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Geoclue to modularna usługa geoinformacyjna zbudowana w oparciu o | |
43 | system komunikacji D-Bus. Celem projektu jest jak największe | |
44 | ułatwienie tworzenia aplikacji uwzględniających lokalizację. | |
45 | ||
46 | %package libs | |
47 | Summary: Geoclue modular geoinformation service library | |
48 | Summary(pl.UTF-8): Biblioteka geoclue - modularnej usługi geoinformacyjnej | |
49 | Group: Libraries | |
50 | Requires: dbus-glib >= 0.86 | |
51 | Requires: glib2 >= 1:2.26 | |
52 | Conflicts: geoclue < 0.12.0-3 | |
53 | ||
54 | %description libs | |
55 | geoclue modular geoinformation service library. | |
56 | ||
57 | %description libs -l pl.UTF-8 | |
58 | Biblioteka geoclue - modularnej usługi geoinformacyjnej. | |
59 | ||
60 | %package devel | |
61 | Summary: Development package for geoclue | |
62 | Summary(pl.UTF-8): Pakiet programistyczny geoclue | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-libs = %{version}-%{release} | |
65 | Requires: dbus-glib-devel >= 0.86 | |
66 | Requires: glib2-devel >= 1:2.26 | |
67 | Requires: libxml2-devel >= 2.0 | |
68 | ||
69 | %description devel | |
70 | Header files for development with geoclue. | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Pliki nagłówkowe do programowania z użyciem geoclue. | |
74 | ||
75 | %package static | |
76 | Summary: Static geoclue library | |
77 | Summary(pl.UTF-8): Statyczna biblioteka geoclue | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
80 | ||
81 | %description static | |
82 | Static geoclue library. | |
83 | ||
84 | %description static -l pl.UTF-8 | |
85 | Statyczna biblioteka geoclue. | |
86 | ||
87 | %package apidocs | |
88 | Summary: Developer documentation for geoclue | |
89 | Summary(pl.UTF-8): Dokumentacja programisty do geoclue | |
90 | Group: Development/Libraries | |
91 | Requires: gtk-doc-common | |
92 | %if "%{_rpmversion}" >= "5" | |
93 | BuildArch: noarch | |
94 | %endif | |
95 | ||
96 | %description apidocs | |
97 | Developer documentation for geoclue. | |
98 | ||
99 | %description apidocs -l pl.UTF-8 | |
100 | Dokumentacja programisty do geoclue. | |
101 | ||
102 | %package gpsd | |
103 | Summary: gpsd provider for geoclue | |
104 | Summary(pl.UTF-8): Interfejs geoclue do gpsd | |
105 | Group: Applications | |
106 | Requires: %{name} = %{version}-%{release} | |
107 | Requires: gpsd >= 3 | |
108 | ||
109 | %description gpsd | |
110 | A gpsd provider for geoclue. | |
111 | ||
112 | %description gpsd -l pl.UTF-8 | |
113 | Interfejs geoclue do gpsd. | |
114 | ||
115 | %package gypsy | |
116 | Summary: gypsy provider for geoclue | |
117 | Summary(pl.UTF-8): Interfejs geoclue do gypsy | |
118 | Group: Applications | |
119 | Requires: %{name} = %{version}-%{release} | |
120 | Requires: gypsy >= 0.7.1 | |
121 | ||
122 | %description gypsy | |
123 | A gypsy provider for geoclue. | |
124 | ||
125 | %description gypsy -l pl.UTF-8 | |
126 | Interfejs geoclue do gypsy. | |
127 | ||
128 | %prep | |
129 | %setup -q | |
130 | %patch0 -p1 | |
131 | %patch1 -p1 | |
132 | ||
133 | %build | |
134 | %{__gtkdocize} | |
135 | %{__libtoolize} | |
136 | %{__aclocal} | |
137 | %{__autoconf} | |
138 | %{__autoheader} | |
139 | %{__automake} | |
140 | %configure \ | |
141 | --enable-gtk-doc \ | |
142 | --disable-conic \ | |
143 | --enable-gpsd%{!?with_gps:=no} \ | |
144 | --enable-gypsy \ | |
145 | --enable-networkmanager \ | |
146 | --disable-silent-rules \ | |
147 | --enable-skyhook \ | |
148 | --with-html-dir=%{_gtkdocdir} | |
149 | ||
150 | %{__make} | |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %{__make} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | ||
158 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
159 | ||
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %post libs -p /sbin/ldconfig | |
164 | %postun libs -p /sbin/ldconfig | |
165 | ||
166 | %files | |
167 | %defattr(644,root,root,755) | |
168 | %doc AUTHORS README | |
169 | %attr(755,root,root) %{_libexecdir}/geoclue-example | |
170 | %attr(755,root,root) %{_libexecdir}/geoclue-geonames | |
171 | %attr(755,root,root) %{_libexecdir}/geoclue-gsmloc | |
172 | %attr(755,root,root) %{_libexecdir}/geoclue-hostip | |
173 | %attr(755,root,root) %{_libexecdir}/geoclue-localnet | |
174 | %attr(755,root,root) %{_libexecdir}/geoclue-manual | |
175 | %attr(755,root,root) %{_libexecdir}/geoclue-master | |
176 | %attr(755,root,root) %{_libexecdir}/geoclue-nominatim | |
177 | %attr(755,root,root) %{_libexecdir}/geoclue-plazes | |
178 | %attr(755,root,root) %{_libexecdir}/geoclue-skyhook | |
179 | %attr(755,root,root) %{_libexecdir}/geoclue-yahoo | |
180 | %dir %{_datadir}/geoclue-providers | |
181 | %{_datadir}/GConf/gsettings/geoclue | |
182 | %{_datadir}/geoclue-providers/geoclue-example.provider | |
183 | %{_datadir}/geoclue-providers/geoclue-geonames.provider | |
184 | %{_datadir}/geoclue-providers/geoclue-gsmloc.provider | |
185 | %{_datadir}/geoclue-providers/geoclue-hostip.provider | |
186 | %{_datadir}/geoclue-providers/geoclue-localnet.provider | |
187 | %{_datadir}/geoclue-providers/geoclue-manual.provider | |
188 | %{_datadir}/geoclue-providers/geoclue-nominatim.provider | |
189 | %{_datadir}/geoclue-providers/geoclue-plazes.provider | |
190 | %{_datadir}/geoclue-providers/geoclue-skyhook.provider | |
191 | %{_datadir}/geoclue-providers/geoclue-yahoo.provider | |
192 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Geoclue.gschema.xml | |
193 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Master.service | |
194 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Example.service | |
195 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Geonames.service | |
196 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gsmloc.service | |
197 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Hostip.service | |
198 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Localnet.service | |
199 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Manual.service | |
200 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service | |
201 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service | |
202 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Skyhook.service | |
203 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Yahoo.service | |
204 | ||
205 | %files libs | |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/libgeoclue.so.*.*.* | |
208 | %attr(755,root,root) %ghost %{_libdir}/libgeoclue.so.0 | |
209 | ||
210 | %files devel | |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_libdir}/libgeoclue.so | |
213 | %{_includedir}/geoclue | |
214 | %{_pkgconfigdir}/geoclue.pc | |
215 | ||
216 | %files static | |
217 | %defattr(644,root,root,755) | |
218 | %{_libdir}/libgeoclue.a | |
219 | ||
220 | %files apidocs | |
221 | %defattr(644,root,root,755) | |
222 | %{_gtkdocdir}/geoclue | |
223 | ||
224 | %if %{with gps} | |
225 | %files gpsd | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{_libexecdir}/geoclue-gpsd | |
228 | %{_datadir}/geoclue-providers/geoclue-gpsd.provider | |
229 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gpsd.service | |
230 | %endif | |
231 | ||
232 | %files gypsy | |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_libexecdir}/geoclue-gypsy | |
235 | %{_datadir}/geoclue-providers/geoclue-gypsy.provider | |
236 | %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gypsy.service |