LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File geoclue.spec of Package geoclue (Project Application:Geo)

#
# spec file for package geoclue
#
# Copyright (c) 2012 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.12.99
Release:        0
Summary:        Modular Geoinformation Service
License:        LGPL-2.0
Group:          Development/Libraries/Other
Url:            http://geoclue.freedesktop.org/
Source0:        %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
BuildRequires:  NetworkManager-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  libgypsy-devel
BuildRequires:  libsoup-devel
BuildRequires:  libtool
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
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
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 gsmloc
Summary:        Modular Geoinformation Service - GSM backend
Group:          Development/Libraries/Other

%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 ofono and opencellid.org.

%package gypsy
Summary:        Modular Geoinformation Service - GPS (gypsy) backend
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
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
Group:          Development/Libraries/Other
Requires:       dbus-1-glib-devel
Requires:       libgeoclue0 = %{version}
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

%build
%if 0%{?suse_version} > 1120
autoreconf -fi
%endif

%configure \
    --disable-static \
    --enable-networkmanager=yes \
    --enable-gypsy=yes \
    --enable-gpsd=no \
%if 0%{?suse_version} > 1120
    --enable-skyhook=yes
%else
    --enable-skyhook=no
%endif

make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
# Install the test gui as it seems the test isn't installed any more
mkdir %{buildroot}%{_bindir}
cp test/.libs/geoclue-test-gui %{buildroot}%{_bindir}/

%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
%{_datadir}/GConf/gsettings/geoclue
%{_datadir}/glib-2.0/schemas/org.freedesktop.Geoclue.gschema.xml

%files recommended
%defattr(-, root, root)
%{_libexecdir}/geoclue-geonames
%{_libexecdir}/geoclue-hostip
%{_libexecdir}/geoclue-localnet
%{_libexecdir}/geoclue-manual
%{_libexecdir}/geoclue-nominatim
%{_libexecdir}/geoclue-plazes
%if 0%{?suse_version} > 1120
%{_libexecdir}/geoclue-skyhook
%endif
%{_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-nominatim.provider
%{_datadir}/geoclue-providers/geoclue-plazes.provider
%if 0%{?suse_version} > 1120
%{_datadir}/geoclue-providers/geoclue-skyhook.provider
%endif
%{_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.Nominatim.service
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service
%if 0%{?suse_version} > 1120
%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Skyhook.service
%endif
%{_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 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