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
|
|
|
#
|
2019-01-08 22:30:32 +00:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2018-12-12 19:18:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-08-05 14:26:08 +00:00
|
|
|
#
|
|
|
|
|
2013-09-09 09:13:24 +00:00
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%define _name geoclue
|
2015-02-13 20:58:44 +00:00
|
|
|
Name: geoclue2
|
2019-01-08 22:30:32 +00:00
|
|
|
Version: 2.5.2
|
2013-09-09 09:13:24 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: GeoLocation Framework
|
2018-02-28 19:53:57 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-04-07 10:50:21 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-01-08 22:30:32 +00:00
|
|
|
URL: https://gitlab.freedesktop.org/geoclue/geoclue
|
|
|
|
Source0: %{url}/-/archive/%{version}/geoclue-%{version}.tar.bz2
|
2017-03-24 16:26:23 +00:00
|
|
|
Source1: srvGeoClue.conf
|
2016-06-01 14:37:14 +00:00
|
|
|
Source99: geoclue2-rpmlintrc
|
2018-05-10 07:03:41 +00:00
|
|
|
|
2013-09-09 09:13:24 +00:00
|
|
|
BuildRequires: intltool >= 0.40.0
|
2018-12-13 05:21:09 +00:00
|
|
|
BuildRequires: meson >= 0.47.2
|
2018-02-28 19:53:57 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-02-13 20:58:44 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2017-03-24 16:26:23 +00:00
|
|
|
BuildRequires: sysuser-tools
|
2018-07-28 16:07:27 +00:00
|
|
|
BuildRequires: vala
|
2015-02-13 20:58:44 +00:00
|
|
|
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
|
2019-01-08 22:30:32 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.44.0
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.44.0
|
2018-07-28 16:07:27 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.44.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
|
2018-05-03 10:35:36 +00:00
|
|
|
BuildRequires: pkgconfig(libnotify)
|
2015-04-17 09:07:10 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
|
2018-04-13 07:54:37 +00:00
|
|
|
BuildRequires: pkgconfig(mm-glib) >= 1.6
|
2014-04-04 18:54:52 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2017-03-24 16:26:23 +00:00
|
|
|
# This daemon runs as srvGeoClue
|
|
|
|
Requires: user(srvGeoClue)
|
2018-02-28 19:53:57 +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}
|
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
|
|
|
|
|
2017-03-24 16:26:23 +00:00
|
|
|
%package -n system-user-srvGeoClue
|
|
|
|
Summary: System user for the geoclue service
|
2017-04-07 10:50:21 +00:00
|
|
|
Group: System/Base
|
2017-03-24 16:26:23 +00:00
|
|
|
%sysusers_requires
|
|
|
|
|
|
|
|
%description -n system-user-srvGeoClue
|
|
|
|
System user for use by the geoclue service
|
|
|
|
|
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
|
2018-05-10 07:03:41 +00:00
|
|
|
%autosetup -n %{_name}-%{version} -p1
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%build
|
2018-12-12 19:18:10 +00:00
|
|
|
%meson \
|
|
|
|
-Dgtk-doc=false \
|
|
|
|
-Ddbus-srv-user=srvGeoClue \
|
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2017-03-24 16:26:23 +00:00
|
|
|
%sysusers_generate_pre %{SOURCE1} srvGeoClue
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%install
|
2018-12-12 19:18:10 +00:00
|
|
|
%meson_install
|
2017-03-24 16:26:23 +00:00
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/srvGeoClue
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-srvGeoClue.conf
|
2018-12-12 19:18:10 +00:00
|
|
|
|
2018-07-28 16:07:27 +00:00
|
|
|
# Remove desktop file, we do not build the demos # Upstream is explicitly asking us to package these, so lets give it a go.
|
|
|
|
#find %%{buildroot} -type f -name "geoclue-demo-agent.desktop" -delete -print
|
2013-08-05 14:26:08 +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
|
|
|
|
2017-03-24 16:26:23 +00:00
|
|
|
%pre -n system-user-srvGeoClue -f srvGeoClue.pre
|
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
|
2018-02-28 19:53:57 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
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
|
|
|
|
%{_unitdir}/geoclue.service
|
2018-07-28 16:07:27 +00:00
|
|
|
# Upstream is explicitly asking us to package these, so lets give it a go.
|
|
|
|
%{_sysconfdir}/xdg/autostart/geoclue-demo-agent.desktop
|
|
|
|
%{_datadir}/applications/geoclue-demo-agent.desktop
|
2013-08-05 14:26:08 +00:00
|
|
|
|
2017-03-24 16:26:23 +00:00
|
|
|
%files -n system-user-srvGeoClue
|
|
|
|
%attr(0700,srvGeoClue,root) %{_localstatedir}/lib/srvGeoClue
|
|
|
|
%{_sysusersdir}/system-user-srvGeoClue.conf
|
|
|
|
|
2015-12-23 15:16:33 +00:00
|
|
|
%files -n typelib-1_0-Geoclue-2_0
|
|
|
|
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
|
|
|
|
|
2013-08-05 14:26:08 +00:00
|
|
|
%files devel
|
2018-02-28 19:53:57 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
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
|
2018-07-28 16:07:27 +00:00
|
|
|
%{_datadir}/vala/vapi/libgeoclue-2.0.*
|
2013-08-05 14:26:08 +00:00
|
|
|
|
|
|
|
%changelog
|