c851a9
Name:           geoclue2
c851a9
Version:        2.4.8
c851a9
Release:        1%{?dist}
c851a9
Summary:        Geolocation service
c851a9
c851a9
License:        GPLv2+
c851a9
URL:            http://www.freedesktop.org/wiki/Software/GeoClue/
c851a9
Source0:        http://www.freedesktop.org/software/geoclue/releases/2.4/geoclue-%{version}.tar.xz
c851a9
c851a9
BuildRequires:  avahi-glib-devel
c851a9
BuildRequires:  glib2-devel
c851a9
BuildRequires:  gobject-introspection-devel
c851a9
BuildRequires:  intltool
c851a9
BuildRequires:  itstool
c851a9
BuildRequires:  json-glib-devel
c851a9
BuildRequires:  libsoup-devel
c851a9
BuildRequires:  ModemManager-glib-devel
c851a9
BuildRequires:  systemd
c851a9
Requires(pre):  shadow-utils
c851a9
Requires(post): systemd
c851a9
Requires(preun): systemd
c851a9
Requires(postun): systemd
c851a9
Requires:       dbus
c851a9
c851a9
Obsoletes:      geoclue2-server < 2.1.8
c851a9
c851a9
%description
c851a9
Geoclue is a D-Bus service that provides location information. The primary goal
c851a9
of the Geoclue project is to make creating location-aware applications as
c851a9
simple as possible, while the secondary goal is to ensure that no application
c851a9
can access location information without explicit permission from user.
c851a9
c851a9
c851a9
%package        libs
c851a9
Summary:        Geoclue client library
c851a9
License:        LGPLv2+
c851a9
Requires:       %{name}%{?_isa} = %{version}-%{release}
c851a9
c851a9
%description    libs
c851a9
The %{name}-libs package contains a convenience library to interact with
c851a9
Geoclue service.
c851a9
c851a9
c851a9
%package        devel
c851a9
Summary:        Development files for %{name}
c851a9
Requires:       %{name}%{?_isa} = %{version}-%{release}
c851a9
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
c851a9
c851a9
%description    devel
c851a9
The %{name}-devel package contains files for developing applications that
c851a9
use %{name}.
c851a9
c851a9
c851a9
%package        demos
c851a9
Summary:        Demo applications for %{name}
c851a9
Requires:       %{name}%{?_isa} = %{version}-%{release}
c851a9
BuildRequires:  libnotify-devel
c851a9
c851a9
%description    demos
c851a9
The %{name}-demos package contains demo applications that use %{name}.
c851a9
c851a9
c851a9
%prep
c851a9
%setup -q -n geoclue-%{version}
c851a9
c851a9
c851a9
%build
c851a9
%configure --with-dbus-service-user=geoclue --enable-demo-agent
c851a9
make %{?_smp_mflags} V=1
c851a9
c851a9
c851a9
%install
c851a9
%make_install
c851a9
c851a9
find $RPM_BUILD_ROOT -name '*.la' -delete
c851a9
c851a9
# Home directory for the 'geoclue' user
c851a9
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
c851a9
c851a9
c851a9
%pre
c851a9
# Update the home directory for existing users
c851a9
getent passwd geoclue >/dev/null && \
c851a9
    usermod -d /var/lib/geoclue geoclue &>/dev/null
c851a9
# Create a new user and group if they don't exist
c851a9
getent group geoclue >/dev/null || groupadd -r geoclue
c851a9
getent passwd geoclue >/dev/null || \
c851a9
    useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
c851a9
    -c "User for geoclue" geoclue
c851a9
exit 0
c851a9
c851a9
%post
c851a9
%systemd_post geoclue.service
c851a9
c851a9
%preun
c851a9
%systemd_preun geoclue.service
c851a9
c851a9
%postun
c851a9
%systemd_postun_with_restart geoclue.service
c851a9
c851a9
%post libs -p /sbin/ldconfig
c851a9
c851a9
%postun libs -p /sbin/ldconfig
c851a9
c851a9
c851a9
%files
c851a9
%license COPYING
c851a9
%doc NEWS
c851a9
%config %{_sysconfdir}/geoclue/
c851a9
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
c851a9
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
c851a9
%{_libexecdir}/geoclue
c851a9
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
c851a9
%{_unitdir}/geoclue.service
c851a9
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
c851a9
c851a9
%files libs
c851a9
%license COPYING.LIB
c851a9
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
c851a9
%{_libdir}/libgeoclue-2.so.0*
c851a9
c851a9
%files devel
c851a9
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
c851a9
%{_datadir}/gir-1.0/Geoclue-2.0.gir
c851a9
%{_includedir}/libgeoclue-2.0/
c851a9
%{_libdir}/pkgconfig/geoclue-2.0.pc
c851a9
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
c851a9
%{_libdir}/libgeoclue-2.so
c851a9
c851a9
%files demos
c851a9
%dir %{_libexecdir}/geoclue-2.0
c851a9
%dir %{_libexecdir}/geoclue-2.0/demos
c851a9
%{_libexecdir}/geoclue-2.0/demos/where-am-i
c851a9
%{_libexecdir}/geoclue-2.0/demos/agent
c851a9
%{_datadir}/applications/geoclue-demo-agent.desktop
c851a9
%{_datadir}/applications/geoclue-where-am-i.desktop
c851a9
c851a9
%changelog
c851a9
* Thu Apr 12 2018 Kalev Lember <klember@redhat.com> - 2.4.8-1
c851a9
- Update to 2.4.8
c851a9
- Resolves: #1576541
c851a9
c851a9
* Fri Jan 27 2017 Kalev Lember <klember@redhat.com> - 2.4.5-1
c851a9
- Update to 2.4.5
c851a9
- Resolves: #1386867
c851a9
c851a9
* Wed Apr 27 2016 Zeeshan Ali <zeenix@redhat.com> 2.1.10-5
c851a9
- Don't obsolete geoclue1 (rhbz#1285479).
c851a9
c851a9
* Wed Jul 15 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-4
c851a9
- Obsolete all of geoclue1 packages (rhbz#1221940).
c851a9
c851a9
* Tue Jul 14 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-3
c851a9
- Obsolete geoclue1 (rhbz#1221940).
c851a9
c851a9
* Fri Apr 17 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-2
c851a9
- Backport fixes from 2.2.0.
c851a9
c851a9
* Wed Apr  1 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-1
c851a9
- Update to 2.1.10
c851a9
c851a9
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-2
c851a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c851a9
c851a9
* Sat Jun 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.9-1
c851a9
- Update to 2.1.9
c851a9
c851a9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.8-2
c851a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c851a9
c851a9
* Wed Apr 16 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.8-1
c851a9
- Update to 2.1.8
c851a9
- Remove and obsolete the -server subpackage
c851a9
c851a9
* Wed Mar 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.7-1
c851a9
- Update to 2.1.7
c851a9
c851a9
* Fri Mar 07 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.6-1
c851a9
- Update to 2.1.6
c851a9
c851a9
* Thu Feb 06 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.2-2
c851a9
- Add systemd rpm scripts
c851a9
- Don't install the demo .desktop files
c851a9
c851a9
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.1.2-1
c851a9
- Update to 2.1.2
c851a9
c851a9
* Sun Oct 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.0.0-1
c851a9
- Update to 2.0.0
c851a9
- Create a home directory for the 'geoclue' user
c851a9
c851a9
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
c851a9
- Run the service as 'geoclue' user
c851a9
c851a9
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
c851a9
- Update to 1.99.4
c851a9
c851a9
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.3-1
c851a9
- Update to 1.99.3
c851a9
c851a9
* Sun Aug 25 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-3
c851a9
- Update -devel subpackage description (#999153)
c851a9
c851a9
* Sat Aug 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-2
c851a9
- Review fixes (#999153)
c851a9
- Drop ldconfig calls that are unnecessary now that the shared library is gone
c851a9
- Drop the build dep on gobject-introspection-devel
c851a9
- Include API-Documentation.txt in the -server subpackage
c851a9
c851a9
* Fri Aug 23 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-1
c851a9
- Update to 1.99.2
c851a9
- The shared library is gone in this release and all users should use the
c851a9
  dbus service directly
c851a9
c851a9
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-3
c851a9
- Include geoip-lookup in the -server subpackage as well
c851a9
c851a9
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-2
c851a9
- Ship geoip-update in -server subpackage
c851a9
c851a9
* Tue Aug 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-1
c851a9
- Initial Fedora packaging