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