2013-08-05 14:26:08 +00:00
|
|
|
#
|
2013-09-09 09:13:24 +00:00
|
|
|
# spec file for package geoclue2
|
2013-08-05 14:26:08 +00:00
|
|
|
#
|
2017-01-27 16:56:39 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-08-05 14:26:08 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2013-09-09 09:13:24 +00:00
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%define _name geoclue
|
2013-09-09 09:13:24 +00:00
|
|
|
%define dbus_user srvGeoClue
|
2015-02-13 20:58:44 +00:00
|
|
|
Name: geoclue2
|
2017-01-27 16:56:39 +00:00
|
|
|
Version: 2.4.5
|
2013-09-09 09:13:24 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: GeoLocation Framework
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://people.freedesktop.org/~zeenix/releases/
|
2015-12-23 15:16:33 +00:00
|
|
|
Source: http://www.freedesktop.org/software/geoclue/releases/2.4/%{_name}-%{version}.tar.xz
|
2016-06-01 14:37:14 +00:00
|
|
|
Source99: geoclue2-rpmlintrc
|
2014-08-08 19:10:30 +00:00
|
|
|
# PATCH-FIX-UPSTREAM geoclue2-permit-gnome-maps.patch dimstar@opensuse.org -- Allow gnome-maps to access geoclue
|
|
|
|
Patch0: geoclue2-permit-gnome-maps.patch
|
2017-03-01 18:51:15 +00:00
|
|
|
# PATCH-FIX-UPSTREAM geoclue2-permit-Night-Light.patch zaitor@opensuse.org -- Add "Night Light" functionality to the whitelist
|
|
|
|
Patch1: geoclue2-permit-Night-Light.patch
|
2015-09-28 16:13:16 +00:00
|
|
|
BuildRequires: gtk-doc
|
2013-09-09 09:13:24 +00:00
|
|
|
BuildRequires: intltool >= 0.40.0
|
2015-09-28 16:13:16 +00:00
|
|
|
BuildRequires: pkg-config
|
2015-02-13 20:58:44 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: perl(XML::Parser)
|
2015-09-28 16:13:16 +00:00
|
|
|
BuildRequires: pkgconfig(avahi-client) >= 0.6.10
|
|
|
|
BuildRequires: pkgconfig(avahi-glib) >= 0.6.10
|
2013-09-09 09:13:24 +00:00
|
|
|
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
|
2015-12-23 15:16:33 +00:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2013-09-09 09:13:24 +00:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= 0.14
|
2015-04-17 09:07:10 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
|
2014-04-04 18:54:52 +00:00
|
|
|
BuildRequires: pkgconfig(mm-glib) >= 1.0
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2013-09-09 09:13:24 +00:00
|
|
|
# we require shadow for useradd
|
|
|
|
Requires(pre): shadow
|
2015-02-13 20:58:44 +00:00
|
|
|
# Virtual provides for the dbus service
|
|
|
|
Provides: dbus(org.freedesktop.GeoClue2) = %{version}
|
2013-08-05 14:26:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-12-23 15:16:33 +00:00
|
|
|
%{?systemd_requires}
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2015-12-23 15:16:33 +00:00
|
|
|
%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
|
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%package devel
|
2013-09-09 09:13:24 +00:00
|
|
|
Summary: GeoLocation Framework -- Development files
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
2015-12-23 15:16:33 +00:00
|
|
|
Requires: typelib-1_0-Geoclue-2_0 = %{version}
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%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}
|
2014-08-08 19:10:30 +00:00
|
|
|
%patch0 -p1
|
2017-03-01 18:51:15 +00:00
|
|
|
%patch1 -p1
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%build
|
2013-09-09 09:13:24 +00:00
|
|
|
%configure \
|
|
|
|
--disable-geoip-server \
|
2015-12-23 15:16:33 +00:00
|
|
|
--enable-introspection \
|
2013-09-09 09:13:24 +00:00
|
|
|
--with-dbus-service-user=%{dbus_user}
|
2015-09-28 16:13:16 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%install
|
2015-02-13 20:58:44 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2013-10-08 09:48:19 +00:00
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/%{dbus_user}
|
2015-12-23 15:16:33 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-06-01 14:37:14 +00:00
|
|
|
# Remove desktop file, we do not build the demos
|
|
|
|
find %{buildroot} -type f -name "geoclue-demo-agent.desktop" -delete -print
|
2013-08-05 14:26:08 +00:00
|
|
|
|
2013-09-09 09:13:24 +00:00
|
|
|
%pre
|
2015-02-13 20:58:44 +00:00
|
|
|
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}
|
2014-04-04 18:54:52 +00:00
|
|
|
|
2016-05-31 06:50:03 +00:00
|
|
|
# note: do not use systemd macros for geoclue2.service, they are not meant for dbus unit files.
|
2013-08-06 08:55:49 +00:00
|
|
|
|
2016-06-01 14:37:14 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-09-10 09:11:07 +00:00
|
|
|
%doc README COPYING
|
2015-12-23 15:16:33 +00:00
|
|
|
# Not split per SLPP as the interface to the underlying daemon is
|
|
|
|
# too strict to allow parallel installations
|
|
|
|
%{_libdir}/libgeoclue-2.so.*
|
2013-08-05 14:26:08 +00:00
|
|
|
%{_libexecdir}/geoclue
|
2014-04-04 18:54:52 +00:00
|
|
|
%dir %{_libexecdir}/geoclue-2.0/
|
|
|
|
%{_libexecdir}/geoclue-2.0/demos/
|
|
|
|
%{_datadir}/applications/geoclue-where-am-i.desktop
|
2013-08-05 14:26:08 +00:00
|
|
|
%dir %{_datadir}/dbus-1
|
2015-12-23 15:16:33 +00:00
|
|
|
%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
|
2013-09-09 09:13:24 +00:00
|
|
|
%dir %{_datadir}/dbus-1/system-services
|
2013-09-11 18:07:22 +00:00
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
|
2013-09-09 09:13:24 +00:00
|
|
|
%dir %{_sysconfdir}/dbus-1
|
|
|
|
%dir %{_sysconfdir}/dbus-1/system.d
|
2014-04-04 18:54:52 +00:00
|
|
|
%dir %{_sysconfdir}/geoclue/
|
|
|
|
%config %{_sysconfdir}/geoclue/geoclue.conf
|
2013-09-11 18:07:22 +00:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
|
2014-04-04 18:54:52 +00:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
|
2013-10-08 09:48:19 +00:00
|
|
|
%attr(0700,%{dbus_user},root) %{_localstatedir}/lib/%{dbus_user}
|
2014-04-04 18:54:52 +00:00
|
|
|
%{_unitdir}/geoclue.service
|
2013-08-05 14:26:08 +00:00
|
|
|
|
2015-12-23 15:16:33 +00:00
|
|
|
%files -n typelib-1_0-Geoclue-2_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
|
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2015-02-13 20:58:44 +00:00
|
|
|
%doc README COPYING
|
2015-12-23 15:16:33 +00:00
|
|
|
%{_includedir}/libgeoclue-2.0/
|
|
|
|
%{_libdir}/*.so
|
2013-09-09 09:13:24 +00:00
|
|
|
%{_libdir}/pkgconfig/geoclue-2.0.pc
|
2015-12-23 15:16:33 +00:00
|
|
|
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
|
2014-08-08 19:10:30 +00:00
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml
|
2015-12-23 15:16:33 +00:00
|
|
|
%{_datadir}/gir-1.0/Geoclue-2.0.gir
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%changelog
|