+%bcond_with gps
Summary: A modular geoinformation service
Summary(pl.UTF-8): Modularna usługa geoinformacyjna
Name: geoclue
Version: 0.12.0
-Release: 4
+Release: 11
License: LGPL v2
Group: Applications
Source0: http://folks.o-hand.com/jku/geoclue-releases/%{name}-%{version}.tar.gz
# Source0-md5: 33af8307f332e0065af056ecba65fec2
Patch0: %{name}-configure.patch
Patch1: %{name}-libsoup.patch
+Patch2: %{name}-nm09.patch
+Patch3: geoclue-unused-var.patch
URL: http://geoclue.freedesktop.org/
BuildRequires: GConf2-devel >= 2.0
BuildRequires: NetworkManager-devel
BuildRequires: dbus-glib-devel >= 0.60
BuildRequires: docbook-dtd412-xml
BuildRequires: glib2-devel >= 1:2.0
-BuildRequires: gpsd-devel >= 2.91
+%{?with_gps:BuildRequires: gpsd-devel >= 2.91}
BuildRequires: gtk+2-devel >= 1:2.0
BuildRequires: gtk-doc >= 1.0
BuildRequires: gypsy-devel
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
%{__gtkdocize}
%configure \
--enable-gtk-doc \
--disable-conic \
- --enable-gpsd \
+ --enable-gpsd%{?!with_gps:=no} \
--enable-gypsy \
--enable-networkmanager \
--enable-skyhook \
%defattr(644,root,root,755)
%{_gtkdocdir}/geoclue
+%if %{with gps}
%files gpsd
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/geoclue-gpsd
%{_datadir}/geoclue-providers/geoclue-gpsd.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gpsd.service
+%endif
%files gypsy
%defattr(644,root,root,755)