# # spec file for package geoclue2 # # Copyright (c) 2013 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: 1.99.3 Release: 0 Summary: GeoLocation Framework License: GPL-2.0+ Group: System/Libraries Url: http://people.freedesktop.org/~zeenix/releases/ Source: http://people.freedesktop.org/~zeenix/releases/%{_name}-%{version}.tar.xz Patch0: geoclue2-no-root.patch BuildRequires: intltool >= 0.40.0 BuildRequires: libtool 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) # Virtual provides for the dbus service Provides: dbus(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} # seems patch does not rename files... so let's do what the patch should do %patch0 -p1 mv data/org.freedesktop.GeoClue2.conf data/org.freedesktop.GeoClue2.conf.in # patching completed %build autoreconf -fiv %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 # hack around the missing security review bnc#838360 - The geoclue service will not work, but we can build against it rm %{buildroot}%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service rm %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf # End security workaround hack %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} %files %defattr(-,root,root) %doc README COPYING %{_libexecdir}/geoclue %dir %{_datadir}/dbus-1 %dir %{_datadir}/dbus-1/system-services #{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service %{_datadir}/geoclue-2.0/ %dir %{_sysconfdir}/dbus-1 %dir %{_sysconfdir}/dbus-1/system.d #config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf %files devel %defattr(-,root,root) %{_libdir}/pkgconfig/geoclue-2.0.pc %changelog