Blame SPECS/geoclue2.spec

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