geoclue2/geoclue2.spec
Ismail Dönmez b02a782a62 Accepting request 243933 from GNOME:Next
- Update to version 2.1.9:
  + Move from NetworkManager to direct use of wpa_supplicant to
    retreive WiFI data, for greater portability.
  + Port from opencellid.org to Mozilla Location Service for
    3G-geolocation.
  + Network data submission
    - Explicit option in config to enable submission.
    - Commandline options to enable network data submission and set
      nickname.
    - Submit 3G data.
    - Submit under 'geoclue' nick by default.
  + Fix a few crashes.
  + Drop now redundant workaround for pure geoip queries.
  + Ability to mark an app as system component in the config so
    that:
    - Agent can't decide its accuracy level nor agent is asked to
      authorize it. This mean automatic timezone in GNOME will
      continue working even if you disable geolocation.
    - App is not taken into account for 'InUse' property. That
      means you will no longer have to see location crosshair in
      gnome-shell's topbar forever just because you have automatic
      timezone enabled.
  + Exit demo app if geoclue deactivates it.
  + Improved debug log.
  + Many other internal changes and minor improvements.
- Changes from version 2.1.8:
  + Switch to Mozilla Location Service for geoip as well.
  + Allow specifying nickname to submit network data with.
  + Report actual available accuracy level and keep it up2date.
  + Add 'Active' property to indicate client state.

OBS-URL: https://build.opensuse.org/request/show/243933
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/geoclue2?expand=0&rev=29
2014-08-08 19:10:30 +00:00

119 lines
4.1 KiB
RPMSpec

#
# spec file for package geoclue2
#
# Copyright (c) 2014 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: geoclue2
%define _name geoclue
%define dbus_user srvGeoClue
Version: 2.1.9
Release: 0
Summary: GeoLocation Framework
License: GPL-2.0+
Group: System/Libraries
Url: http://people.freedesktop.org/~zeenix/releases/
Source: http://www.freedesktop.org/software/geoclue/releases/2.1/%{_name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM geoclue2-permit-gnome-maps.patch dimstar@opensuse.org -- Allow gnome-maps to access geoclue
Patch0: geoclue2-permit-gnome-maps.patch
BuildRequires: intltool >= 0.40.0
BuildRequires: pkgconfig(gio-2.0) >= 2.34.0
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.34.0
BuildRequires: pkgconfig(glib-2.0) >= 2.34.0
BuildRequires: pkgconfig(json-glib-1.0) >= 0.14
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(mm-glib) >= 1.0
BuildRequires: pkgconfig(systemd)
# Virtual provides for the dbus service
Provides: dbus(org.freedesktop.GeoClue2) = %{version}
# we require shadow for useradd
Requires(pre): shadow
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GeoClue is a software framework which can be used to enable geospatial
awareness in applications. GeoClue uses the D-Bus inter-process
communication mechanism to provide location information
%package devel
Summary: GeoLocation Framework -- Development files
Group: Development/Languages/C and C++
Requires: %{name} = %{version}
%description devel
GeoClue is a software framework which can be used to enable geospatial
awareness in applications. GeoClue uses the D-Bus inter-process
communication mechanism to provide location information
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
%build
%configure \
--disable-geoip-server \
--with-dbus-service-user=%{dbus_user}
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
install -d %{buildroot}%{_localstatedir}/lib/%{dbus_user}
# Create conveniance shortcut for rcgeoclue -> /usr/sbin/service
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcgeoclue
%pre
getent passwd %{dbus_user} > /dev/null || useradd -r -g nogroup -d /var/lib/%{dbus_user} -s /sbin/nologin -c "User for GeoClue D-Bus service" %{dbus_user}
%service_add_pre geoclue.service
%post
%service_add_post geoclue.service
%preun
%service_del_preun geoclue.service
%postun
%service_del_postun geoclue.service
%files
%defattr(-,root,root)
%doc README COPYING
%{_libexecdir}/geoclue
%dir %{_libexecdir}/geoclue-2.0/
%{_libexecdir}/geoclue-2.0/demos/
%{_datadir}/applications/geoclue-demo-agent.desktop
%{_datadir}/applications/geoclue-where-am-i.desktop
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/system-services
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%dir %{_sysconfdir}/dbus-1
%dir %{_sysconfdir}/dbus-1/system.d
%dir %{_sysconfdir}/geoclue/
%config %{_sysconfdir}/geoclue/geoclue.conf
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
%attr(0700,%{dbus_user},root) %{_localstatedir}/lib/%{dbus_user}
%{_sbindir}/rcgeoclue
%{_unitdir}/geoclue.service
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/geoclue-2.0.pc
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml
%changelog