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