File geoclue.spec of Package geoclue
#
# spec file for package geoclue (Version 0.11.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: geoclue
Version: 0.11.1
Release: 1
License: LGPL v2.0 only
Summary: Modular Geoinformation Service
Url: http://geoclue.freedesktop.org/
Group: Development/Libraries/Other
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM geoclue-gammu-api.patch fdo20865 vuntz@novell.com -- Update for gammu API change
Patch0: geoclue-gammu-api.patch
BuildRequires: NetworkManager-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: gammu-devel
BuildRequires: glib2-devel
BuildRequires: gconf2-devel
BuildRequires: gtk2-devel
BuildRequires: gpsd-devel
BuildRequires: libgypsy-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt
Recommends: %{name}-recommended = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%package recommended
Summary: Modular Geoinformation Service - Recommended providers
License: LGPL v2.0 only
Group: Development/Libraries/Other
%description recommended
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package contains providers that do not require external
dependencies.
%package example
Summary: Modular Geoinformation Service - Example backend
License: LGPL v2.0 only
Group: Development/Libraries/Other
%description example
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides an example backend.
%package gpsd
Summary: Modular Geoinformation Service - GPS (gpsd) backend
License: LGPL v2.0 only
Group: Development/Libraries/Other
Supplements: packageand(libgeoclue0:gpsd)
%description gpsd
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides a backend, using information coming from a GPS
device (through gpsd).
%package gsmloc
Summary: Modular Geoinformation Service - GSM backend
License: LGPL v2.0 only
Group: Development/Libraries/Other
Supplements: packageand(libgeoclue0:gammu)
%description gsmloc
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides a backend, using information coming from a GSM
(cellular) device through gammu and opencellid.org.
%package gypsy
Summary: Modular Geoinformation Service - GPS (gypsy) backend
License: LGPL v2.0 only
Group: Development/Libraries/Other
Supplements: packageand(libgeoclue0:gypsy)
%description gypsy
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
This package provides a backend, using information coming from a GPS
device (through gypsy).
%package -n libgeoclue0
Summary: Modular Geoinformation Service - Library
License: LGPL v2.0 only
Group: Development/Libraries/Other
%description -n libgeoclue0
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%package -n libgeoclue-devel
Summary: Modular Geoinformation Service - Development Files
License: LGPL v2.0 only
Group: Development/Libraries/Other
Requires: libgeoclue0 = %{version}
Requires: dbus-1-glib-devel
Requires: libxml2-devel
%description -n libgeoclue-devel
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system. The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.
%prep
%setup -q
%if %suse_version > 1110
%patch0 -p1
%endif
%build
# disable as-needed to fix build
export SUSE_ASNEEDED=0
%configure --disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%clean
%{__rm} -rf %{buildroot}
%post -n libgeoclue0 -p /sbin/ldconfig
%postun -n libgeoclue0 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_bindir}/geoclue-test-gui
%{_libexecdir}/geoclue-master
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Master.service
%files recommended
%defattr(-, root, root)
%{_libexecdir}/geoclue-geonames
%{_libexecdir}/geoclue-hostip
%{_libexecdir}/geoclue-localnet
%{_libexecdir}/geoclue-manual
%{_libexecdir}/geoclue-plazes
%{_libexecdir}/geoclue-yahoo
%{_datadir}/geoclue-providers/geoclue-geonames.provider
%{_datadir}/geoclue-providers/geoclue-hostip.provider
%{_datadir}/geoclue-providers/geoclue-localnet.provider
%{_datadir}/geoclue-providers/geoclue-manual.provider
%{_datadir}/geoclue-providers/geoclue-plazes.provider
%{_datadir}/geoclue-providers/geoclue-yahoo.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Geonames.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Hostip.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Localnet.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Manual.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Yahoo.service
%files example
%defattr(-, root, root)
%{_libexecdir}/geoclue-example
%{_datadir}/geoclue-providers/geoclue-example.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Example.service
%files gpsd
%defattr(-, root, root)
%{_libexecdir}/geoclue-gpsd
%{_datadir}/geoclue-providers/geoclue-gpsd.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gpsd.service
%files gsmloc
%defattr(-, root, root)
%{_libexecdir}/geoclue-gsmloc
%{_datadir}/geoclue-providers/geoclue-gsmloc.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gsmloc.service
%files gypsy
%defattr(-, root, root)
%{_libexecdir}/geoclue-gypsy
%{_datadir}/geoclue-providers/geoclue-gypsy.provider
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gypsy.service
%files -n libgeoclue0
%defattr(-, root, root)
%dir %{_datadir}/geoclue-providers
%{_libdir}/*.so.*
%files -n libgeoclue-devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/geoclue
%{_datadir}/gtk-doc/html/geoclue
%changelog