# # spec file for package # # 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 Version: 0.0.1 Release: 0 License: LGPL-2.1+ Summary: GeoLocation Framework Url: http://people.freedesktop.org/~zeenix/releases/ Group: System/Libraries BuildRequires: libtool BuildRequires: intltool >= 0.40.0 BuildRequires: gobject-introspection-devel >= 0.9.6 BuildRequires: yelp-tools BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 BuildRequires: pkgconfig(gio-2.0) >= 2.32.0 BuildRequires: pkgconfig(gio-unix-2.0) >= 2.32.0 BuildRequires: pkgconfig(geocode-glib-1.0) >= 0.99.1 # Virtual provides for the dbus service Provides: dbus(GeoClue2) = %{version} Source: http://people.freedesktop.org/~zeenix/releases/%{_name}-%{version}.tar.xz 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 -n libgeoclue-1_0-0 Summary: GeoLocation Framework Group: System/Libraries # The main functionality is in the dbus service Requires: dbus(GeoClue2) >= %{version} %description -n libgeoclue-1_0-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 -n typelib-1_0-GeoClue-1_0 Group: System/Libraries summary: GeoLocation Framework -- Introspection bindings %description -n typelib-1_0-GeoClue-1_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: libgeoclue-1_0-0 = %{version} Requires: typelib-1_0-GeoClue-1_0 = %{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} %build %configure make %{?_smp_mflags} %install %make_install find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print %post -n libgeoclue-1_0-0 -p /sbin/ldconfig %postun -n libgeoclue-1_0-0 -p /sbin/ldconfig %files %defattr(-,root,root) %doc README %{_libexecdir}/geoclue %dir %{_datadir}/dbus-1 %dir %{_datadir}/dbus-1/services %{_datadir}/dbus-1/services/org.freedesktop.GeoClue2.service %files -n libgeoclue-1_0-0 %defattr(-,root,root) %{_libdir}/libgeoclue-1.0.so.0 %{_libdir}/libgeoclue-1.0.so.0.0.0 %files -n typelib-1_0-GeoClue-1_0 %defattr(-,root,root) %{_libdir}/girepository-1.0/Geoclue-1.0.typelib %files devel %defattr(-,root,root) %{_includedir}/geoclue-1.0/ %{_libdir}/libgeoclue-1.0.so %{_libdir}/pkgconfig/geoclue-1.0.pc %{_datadir}/gir-1.0/Geoclue-1.0.gir %changelog