]> git.pld-linux.org Git - packages/geoclue.git/blame - geoclue.spec
- unconditional noarch subpackages
[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
a7ac9639 12Release: 7
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 100BuildArch: noarch
f419b210
PZ
101
102%description apidocs
56780d4b
JB
103Developer documentation for geoclue.
104
105%description apidocs -l pl.UTF-8
106Dokumentacja programisty do geoclue.
f419b210
PZ
107
108%package gpsd
109Summary: gpsd provider for geoclue
56780d4b
JB
110Summary(pl.UTF-8): Interfejs geoclue do gpsd
111Group: Applications
f419b210 112Requires: %{name} = %{version}-%{release}
f2294add 113Requires: gpsd >= 3.18
f419b210
PZ
114
115%description gpsd
56780d4b
JB
116A gpsd provider for geoclue.
117
118%description gpsd -l pl.UTF-8
119Interfejs geoclue do gpsd.
f419b210
PZ
120
121%package gypsy
122Summary: gypsy provider for geoclue
56780d4b
JB
123Summary(pl.UTF-8): Interfejs geoclue do gypsy
124Group: Applications
f419b210 125Requires: %{name} = %{version}-%{release}
dbb8bacc 126Requires: gypsy >= 0.7.1
f419b210
PZ
127
128%description gypsy
56780d4b
JB
129A gypsy provider for geoclue.
130
131%description gypsy -l pl.UTF-8
132Interfejs geoclue do gypsy.
f419b210
PZ
133
134%prep
6f3b03fc 135%setup -q
b10f8104 136%patch0 -p1
dbb8bacc 137%patch1 -p1
e3270c1f 138%patch2 -p1
f2294add 139%patch3 -p1
f419b210
PZ
140
141%build
142%{__gtkdocize}
143%{__libtoolize}
144%{__aclocal}
f419b210 145%{__autoconf}
56780d4b 146%{__autoheader}
f419b210
PZ
147%{__automake}
148%configure \
f419b210 149 --enable-gtk-doc \
f2294add
JB
150 --enable-conic%{!?with_conic:=no} \
151 --enable-connman%{!?with_connman:=no} \
dbb8bacc 152 --enable-gpsd%{!?with_gps:=no} \
56780d4b 153 --enable-gypsy \
f2294add 154 --enable-networkmanager%{!?with_nm:=no} \
dbb8bacc 155 --disable-silent-rules \
56780d4b 156 --enable-skyhook \
f419b210
PZ
157 --with-html-dir=%{_gtkdocdir}
158
159%{__make}
160
161%install
162rm -rf $RPM_BUILD_ROOT
6f3b03fc 163
f419b210
PZ
164%{__make} install \
165 DESTDIR=$RPM_BUILD_ROOT
166
4639f03a
MB
167%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
168
f419b210
PZ
169%clean
170rm -rf $RPM_BUILD_ROOT
171
56780d4b
JB
172%post libs -p /sbin/ldconfig
173%postun libs -p /sbin/ldconfig
f419b210
PZ
174
175%files
176%defattr(644,root,root,755)
6f3b03fc 177%doc AUTHORS README
56780d4b
JB
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
f419b210 189%dir %{_datadir}/geoclue-providers
29acf44b 190%{_datadir}/GConf/gsettings/geoclue
56780d4b
JB
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
29acf44b 201%{_datadir}/glib-2.0/schemas/org.freedesktop.Geoclue.gschema.xml
f419b210
PZ
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
b10f8104 205%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gsmloc.service
f419b210
PZ
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
30d37806 209%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service
f419b210 210%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service
b10f8104 211%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Skyhook.service
f419b210 212%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Yahoo.service
56780d4b
JB
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
f419b210
PZ
218
219%files devel
220%defattr(644,root,root,755)
6f3b03fc 221%attr(755,root,root) %{_libdir}/libgeoclue.so
f419b210
PZ
222%{_includedir}/geoclue
223%{_pkgconfigdir}/geoclue.pc
f419b210 224
56780d4b
JB
225%files static
226%defattr(644,root,root,755)
227%{_libdir}/libgeoclue.a
228
f419b210
PZ
229%files apidocs
230%defattr(644,root,root,755)
8270201b 231%{_gtkdocdir}/geoclue
f419b210 232
58b52510 233%if %{with gps}
f419b210
PZ
234%files gpsd
235%defattr(644,root,root,755)
6f3b03fc 236%attr(755,root,root) %{_libexecdir}/geoclue-gpsd
f419b210
PZ
237%{_datadir}/geoclue-providers/geoclue-gpsd.provider
238%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gpsd.service
58b52510 239%endif
f419b210
PZ
240
241%files gypsy
242%defattr(644,root,root,755)
6f3b03fc 243%attr(755,root,root) %{_libexecdir}/geoclue-gypsy
f419b210
PZ
244%{_datadir}/geoclue-providers/geoclue-gypsy.provider
245%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gypsy.service
This page took 0.141893 seconds and 5 git commands to generate.