diff --git a/geoclue2.spec b/geoclue2.spec index 106b772..8528631 100644 --- a/geoclue2.spec +++ b/geoclue2.spec @@ -1,13 +1,15 @@ Name: geoclue2 -Version: 2.2.0 -Release: 2%{?dist} +Version: 2.4.0 +Release: 1%{?dist} Summary: Geolocation service License: GPLv2+ URL: http://www.freedesktop.org/wiki/Software/GeoClue/ -Source0: http://www.freedesktop.org/software/geoclue/releases/2.2/geoclue-%{version}.tar.xz +Source0: http://www.freedesktop.org/software/geoclue/releases/2.4/geoclue-%{version}.tar.xz +BuildRequires: avahi-glib-devel BuildRequires: glib2-devel +BuildRequires: gobject-introspection-devel BuildRequires: intltool BuildRequires: itstool BuildRequires: json-glib-devel @@ -29,14 +31,26 @@ simple as possible, while the secondary goal is to ensure that no application can access location information without explicit permission from user. +%package libs +Summary: Geoclue client library +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description libs +The %{name}-libs package contains a convenience library to interact with +Geoclue service. + + %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains files for developing applications that use %{name}. + %package demos Summary: Demo applications for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -59,6 +73,8 @@ make %{?_smp_mflags} V=1 %install %make_install +find $RPM_BUILD_ROOT -name '*.la' -delete + # Home directory for the 'geoclue' user mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue @@ -83,6 +99,10 @@ exit 0 %postun %systemd_postun_with_restart geoclue.service +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + %files %doc COPYING NEWS @@ -94,9 +114,18 @@ exit 0 %{_unitdir}/geoclue.service %attr(755,geoclue,geoclue) %dir /var/lib/geoclue +%files libs +%license COPYING.LIB +%{_libdir}/girepository-1.0/Geoclue-2.0.typelib +%{_libdir}/libgeoclue-2.so.0* + %files devel %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml +%{_datadir}/gir-1.0/Geoclue-2.0.gir +%{_includedir}/libgeoclue-2.0/ %{_libdir}/pkgconfig/geoclue-2.0.pc +%{_libdir}/pkgconfig/libgeoclue-2.0.pc +%{_libdir}/libgeoclue-2.so %files demos %{_libexecdir}/geoclue-2.0/demos/where-am-i @@ -105,6 +134,10 @@ exit 0 %{_datadir}/applications/geoclue-where-am-i.desktop %changelog +* Wed Nov 04 2015 Kalev Lember - 2.4.0-1 +- Update to 2.4.0 +- Package new libgeoclue-2.0 library in -libs subpackage + * Wed Jun 17 2015 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 9dd9679..ec5ba9d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c1970e4ec6f2af6591a75294fc6fb4fa geoclue-2.2.0.tar.xz +09ca621acd0bfef3873a2cec00fceebc geoclue-2.4.0.tar.xz