Blame SPECS/geoclue2.spec

8c8af5
Name:           geoclue2
8c8af5
Version:        2.1.10
0ad046
Release:        5%{?dist}
8c8af5
Summary:        Geolocation service
8c8af5
8c8af5
License:        GPLv2+
8c8af5
URL:            http://www.freedesktop.org/wiki/Software/GeoClue/
8c8af5
Source0:        http://www.freedesktop.org/software/geoclue/releases/2.1/geoclue-%{version}.tar.xz
8c8af5
8c8af5
# Fixes from 2.2.0
8c8af5
Patch01: locator-Correct-source-accuracy-comparison.patch
8c8af5
Patch02: service-client-Delay-unrefing-ServiceLocation.patch
8c8af5
Patch03: modem-gps-Fix-GPS-coordinates-parsing.patch
8c8af5
Patch04: service-client-Gracefully-handle-NULL-agent.patch
8c8af5
Patch05: modem-manager-Don-t-enable-the-modem.patch
8c8af5
Patch06: wifi-Remove-a-redundant-condition.patch
8c8af5
Patch07: modem-manager-Wait-for-modem-to-be-enabled.patch
8c8af5
8c8af5
BuildRequires:  glib2-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
8c8af5
%package        devel
8c8af5
Summary:        Development files for %{name}
8c8af5
Requires:       %{name}%{?_isa} = %{version}-%{release}
8c8af5
8c8af5
%description    devel
8c8af5
The %{name}-devel package contains files for developing applications that
8c8af5
use %{name}.
8c8af5
8c8af5
8c8af5
%prep
8c8af5
%setup -q -n geoclue-%{version}
8c8af5
8c8af5
%patch01 -p1 -b .locator-Correct-source-accuracy-comparison
8c8af5
%patch02 -p1 -b .service-client-Delay-unrefing-ServiceLocation
8c8af5
%patch03 -p1 -b .modem-gps-Fix-GPS-coordinates-parsing
8c8af5
%patch04 -p1 -b .service-client-Gracefully-handle-NULL-agent
8c8af5
%patch05 -p1 -b .modem-manager-Don-t-enable-the-modem
8c8af5
%patch06 -p1 -b .wifi-Remove-a-redundant-condition
8c8af5
%patch07 -p1 -b .modem-manager-Wait-for-modem-to-be-enabled
8c8af5
8c8af5
%build
8c8af5
%configure --with-dbus-service-user=geoclue
8c8af5
make %{?_smp_mflags} V=1
8c8af5
8c8af5
8c8af5
%install
8c8af5
%make_install
8c8af5
8c8af5
# Home directory for the 'geoclue' user
8c8af5
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
8c8af5
8c8af5
# Remove demo files
8c8af5
rm $RPM_BUILD_ROOT%{_datadir}/applications/geoclue-demo-agent.desktop
8c8af5
rm $RPM_BUILD_ROOT%{_datadir}/applications/geoclue-where-am-i.desktop
8c8af5
rm $RPM_BUILD_ROOT%{_libexecdir}/geoclue-2.0/demos/where-am-i
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
8c8af5
8c8af5
%files
8c8af5
%doc COPYING 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
8c8af5
%files devel
8c8af5
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
8c8af5
%{_libdir}/pkgconfig/geoclue-2.0.pc
8c8af5
8c8af5
8c8af5
%changelog
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