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