Accepting request 350540 from GNOME:Next

- Enable GObject introspection (required by gnome-weather 3.19+):
  + Pass --enable-introspection to configure.
  + Add pkgconfig(gobject-introspection-1.0) BuildRequires.
  + Split typelib-1_0-Geoclue-2_0 subpackage.

- Update to version 2.4.0:
  + Add a convenience library to make interacting with Geoclue very
    easy.
  + Put each D-Bus interface description in it's own file. Unified
    interface file still provided for backwards compatibility.

OBS-URL: https://build.opensuse.org/request/show/350540
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/geoclue2?expand=0&rev=41
This commit is contained in:
Martin Pluskal 2015-12-23 15:16:33 +00:00 committed by Git OBS Bridge
parent 9b47b6481e
commit 5b45d09fd5
4 changed files with 51 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d17a3fc275c1437b75f937643eca64857b98b9275e7581c9379eb37f2c7bc26
size 338560

3
geoclue-2.4.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4dffe200a351c9c39d705e70be7bfa2ad122440ec8d9da98af1e62eaf4effca
size 389528

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Wed Dec 23 15:05:56 UTC 2015 - dimstar@opensuse.org
- Enable GObject introspection (required by gnome-weather 3.19+):
+ Pass --enable-introspection to configure.
+ Add pkgconfig(gobject-introspection-1.0) BuildRequires.
+ Split typelib-1_0-Geoclue-2_0 subpackage.
-------------------------------------------------------------------
Tue Nov 24 02:08:50 UTC 2015 - zaitor@opensuse.org
- Update to version 2.4.0:
+ Add a convenience library to make interacting with Geoclue very
easy.
+ Put each D-Bus interface description in it's own file. Unified
interface file still provided for backwards compatibility.
-------------------------------------------------------------------
Thu Nov 5 21:32:00 UTC 2015 - zaitor@opensuse.org

View File

@ -19,13 +19,13 @@
%define _name geoclue
%define dbus_user srvGeoClue
Name: geoclue2
Version: 2.3.0
Version: 2.4.0
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.3/%{_name}-%{version}.tar.xz
Source: http://www.freedesktop.org/software/geoclue/releases/2.4/%{_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: gtk-doc
@ -38,26 +38,37 @@ BuildRequires: pkgconfig(avahi-glib) >= 0.6.10
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(gobject-introspection-1.0)
BuildRequires: pkgconfig(json-glib-1.0) >= 0.14
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
BuildRequires: pkgconfig(mm-glib) >= 1.0
BuildRequires: pkgconfig(systemd)
%{?systemd_requires}
# we require shadow for useradd
Requires(pre): shadow
# Virtual provides for the dbus service
Provides: dbus(org.freedesktop.GeoClue2) = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%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 -n typelib-1_0-Geoclue-2_0
Summary: GeoLocation Framework --GObject Introspection
Group: System/Libraries
%description -n typelib-1_0-Geoclue-2_0
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}
Requires: typelib-1_0-Geoclue-2_0 = %{version}
%description devel
GeoClue is a software framework which can be used to enable geospatial
@ -71,6 +82,7 @@ communication mechanism to provide location information
%build
%configure \
--disable-geoip-server \
--enable-introspection \
--with-dbus-service-user=%{dbus_user}
make %{?_smp_mflags} V=1
@ -80,6 +92,7 @@ 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
find %{buildroot} -type f -name "*.la" -delete -print
%pre
getent passwd %{dbus_user} > /dev/null || useradd -r -g nogroup -d %{_localstatedir}/lib/%{dbus_user} -s /sbin/nologin -c "User for GeoClue D-Bus service" %{dbus_user}
@ -97,12 +110,19 @@ getent passwd %{dbus_user} > /dev/null || useradd -r -g nogroup -d %{_localstate
%files
%defattr(-,root,root)
%doc README COPYING
# Not split per SLPP as the interface to the underlying daemon is
# too strict to allow parallel installations
%{_libdir}/libgeoclue-2.so.*
%{_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/interfaces
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Client.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Location.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml
%dir %{_datadir}/dbus-1/system-services
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%dir %{_sysconfdir}/dbus-1
@ -115,11 +135,19 @@ getent passwd %{dbus_user} > /dev/null || useradd -r -g nogroup -d %{_localstate
%{_sbindir}/rcgeoclue
%{_unitdir}/geoclue.service
%files -n typelib-1_0-Geoclue-2_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
%files devel
%defattr(-,root,root)
%doc README COPYING
%{_includedir}/libgeoclue-2.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/geoclue-2.0.pc
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml
%{_datadir}/gir-1.0/Geoclue-2.0.gir
%changelog