Blame SPECS/geoclue2.spec

ddc76b
Name:           geoclue2
49603e
Version:        2.5.5
393dcf
Release:        2%{?dist}
ddc76b
Summary:        Geolocation service
ddc76b
ddc76b
License:        GPLv2+
ddc76b
URL:            http://www.freedesktop.org/wiki/Software/GeoClue/
49603e
Source0:        https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
ddc76b
ddc76b
BuildRequires:  avahi-glib-devel
49603e
BuildRequires:  gettext
ddc76b
BuildRequires:  glib2-devel
ddc76b
BuildRequires:  gobject-introspection-devel
49603e
BuildRequires:  gtk-doc
ddc76b
BuildRequires:  json-glib-devel
ddc76b
BuildRequires:  libsoup-devel
49603e
BuildRequires:  meson
ddc76b
BuildRequires:  ModemManager-glib-devel
ddc76b
BuildRequires:  systemd
49603e
BuildRequires:  vala
ddc76b
Requires(pre):  shadow-utils
ddc76b
Requires(post): systemd
ddc76b
Requires(preun): systemd
ddc76b
Requires(postun): systemd
ddc76b
Requires:       dbus
ddc76b
ddc76b
Obsoletes:      geoclue2-server < 2.1.8
ddc76b
ddc76b
Obsoletes:      geoclue < 0.12.99-10
ddc76b
Obsoletes:      geoclue-devel < 0.12.99-10
ddc76b
Obsoletes:      geoclue-gsmloc < 0.12.99-10
ddc76b
Obsoletes:      geoclue-gui < 0.12.99-10
ddc76b
Obsoletes:      geoclue-gypsy < 0.12.99-10
ddc76b
ddc76b
%description
ddc76b
Geoclue is a D-Bus service that provides location information. The primary goal
ddc76b
of the Geoclue project is to make creating location-aware applications as
ddc76b
simple as possible, while the secondary goal is to ensure that no application
ddc76b
can access location information without explicit permission from user.
ddc76b
ddc76b
ddc76b
%package        libs
ddc76b
Summary:        Geoclue client library
ddc76b
License:        LGPLv2+
ddc76b
Requires:       %{name}%{?_isa} = %{version}-%{release}
ddc76b
ddc76b
%description    libs
ddc76b
The %{name}-libs package contains a convenience library to interact with
ddc76b
Geoclue service.
ddc76b
ddc76b
ddc76b
%package        devel
ddc76b
Summary:        Development files for %{name}
ddc76b
Requires:       %{name}%{?_isa} = %{version}-%{release}
ddc76b
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
ddc76b
ddc76b
%description    devel
ddc76b
The %{name}-devel package contains files for developing applications that
ddc76b
use %{name}.
ddc76b
ddc76b
ddc76b
%package        demos
ddc76b
Summary:        Demo applications for %{name}
ddc76b
Requires:       %{name}%{?_isa} = %{version}-%{release}
ddc76b
BuildRequires:  libnotify-devel
ddc76b
ddc76b
%description    demos
ddc76b
The %{name}-demos package contains demo applications that use %{name}.
ddc76b
ddc76b
ddc76b
%prep
ddc76b
%setup -q -n geoclue-%{version}
ddc76b
ddc76b
ddc76b
%build
49603e
%meson -Ddbus-srv-user=geoclue
49603e
%meson_build
ddc76b
ddc76b
%install
49603e
%meson_install
ddc76b
# Home directory for the 'geoclue' user
ddc76b
mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue
ddc76b
ddc76b
ddc76b
%pre
ddc76b
# Update the home directory for existing users
ddc76b
getent passwd geoclue >/dev/null && \
ddc76b
    usermod -d /var/lib/geoclue geoclue &>/dev/null
ddc76b
# Create a new user and group if they don't exist
ddc76b
getent group geoclue >/dev/null || groupadd -r geoclue
ddc76b
getent passwd geoclue >/dev/null || \
ddc76b
    useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
ddc76b
    -c "User for geoclue" geoclue
ddc76b
exit 0
ddc76b
ddc76b
%post
ddc76b
%systemd_post geoclue.service
ddc76b
ddc76b
%preun
ddc76b
%systemd_preun geoclue.service
ddc76b
ddc76b
%postun
ddc76b
%systemd_postun_with_restart geoclue.service
ddc76b
ddc76b
ddc76b
%files
ddc76b
%license COPYING
ddc76b
%doc NEWS
ddc76b
%config %{_sysconfdir}/geoclue/
ddc76b
%dir %{_libexecdir}/geoclue-2.0
ddc76b
%dir %{_libexecdir}/geoclue-2.0/demos
ddc76b
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
ddc76b
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
ddc76b
%{_sysconfdir}/xdg/autostart/geoclue-demo-agent.desktop
ddc76b
%{_libexecdir}/geoclue
ddc76b
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
ddc76b
%{_datadir}/applications/geoclue-demo-agent.desktop
49603e
%{_mandir}/man5/geoclue.5*
ddc76b
%{_unitdir}/geoclue.service
ddc76b
%{_libexecdir}/geoclue-2.0/demos/agent
ddc76b
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
ddc76b
ddc76b
%files libs
ddc76b
%license COPYING.LIB
49603e
%dir %{_libdir}/girepository-1.0
ddc76b
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
ddc76b
%{_libdir}/libgeoclue-2.so.0*
ddc76b
ddc76b
%files devel
ddc76b
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
49603e
%dir %{_datadir}/gir-1.0
ddc76b
%{_datadir}/gir-1.0/Geoclue-2.0.gir
49603e
%dir %{_datadir}/gtk-doc
49603e
%dir %{_datadir}/gtk-doc/html
49603e
%{_datadir}/gtk-doc/html/geoclue/
49603e
%{_datadir}/gtk-doc/html/libgeoclue/
49603e
%dir %{_datadir}/vala
49603e
%dir %{_datadir}/vala/vapi
49603e
%{_datadir}/vala/vapi/libgeoclue-2.0.*
ddc76b
%{_includedir}/libgeoclue-2.0/
ddc76b
%{_libdir}/pkgconfig/geoclue-2.0.pc
ddc76b
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
ddc76b
%{_libdir}/libgeoclue-2.so
ddc76b
ddc76b
%files demos
ddc76b
%{_libexecdir}/geoclue-2.0/demos/where-am-i
ddc76b
%{_datadir}/applications/geoclue-where-am-i.desktop
ddc76b
ddc76b
%changelog
393dcf
* Mon Jan 25 2021 Kalev Lember <klember@redhat.com> - 2.5.5-2
393dcf
- Fix multilib conflicts in -devel subpackage (#1853141)
393dcf
49603e
* Wed Oct 09 2019 David King <dking@redhat.com> - 2.5.5-1
49603e
- Rebase to 2.5.5 (#1748329)
49603e
ddc76b
* Thu May 03 2018 Bastien Nocera <bnocera@redhat.com> - 2.4.10-1
ddc76b
+ geoclue2-2.4.10-1
ddc76b
- Update to 2.4.10
ddc76b
ddc76b
* Thu Apr 12 2018 Kalev Lember <klember@redhat.com> - 2.4.8-1
ddc76b
- Update to 2.4.8
ddc76b
ddc76b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-4
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ddc76b
ddc76b
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4.7-3
ddc76b
- Switch to %%ldconfig_scriptlets
ddc76b
ddc76b
* Wed Nov 29 2017 Lubomir Rintel <lkundrak@v3.sk> - 2.4.7-2
ddc76b
- Obsolete old geoclue
ddc76b
ddc76b
* Tue Sep 05 2017 Kalev Lember <klember@redhat.com> - 2.4.7-1
ddc76b
- Update to 2.4.7
ddc76b
ddc76b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-6
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ddc76b
ddc76b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-5
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ddc76b
ddc76b
* Fri Mar 24 2017 Florian Müllner <fmuellner@redhat.com> - 32.4.5-4
ddc76b
- Add gnome-shell's weather integration to the whitelist
ddc76b
ddc76b
* Wed Mar 01 2017 Kalev Lember <klember@redhat.com> - 2.4.5-3
ddc76b
- Add "Night Light" functionality to the whitelist
ddc76b
ddc76b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-2
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ddc76b
ddc76b
* Fri Jan 27 2017 Kalev Lember <klember@redhat.com> - 2.4.5-1
ddc76b
- Update to 2.4.5
ddc76b
ddc76b
* Tue Sep 06 2016 Bastien Nocera <bnocera@redhat.com> - 2.4.4-1
ddc76b
- Update to 2.4.4
ddc76b
ddc76b
* Tue Mar 08 2016 Zeeshan Ali <zeenix@redhat.com> 2.4.3-1
ddc76b
- Update to 2.4.3.
ddc76b
ddc76b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ddc76b
ddc76b
* Tue Dec 08 2015 Kalev Lember <klember@redhat.com> - 2.4.1-1
ddc76b
- Update to 2.4.1
ddc76b
ddc76b
* Wed Nov 04 2015 Kalev Lember <klember@redhat.com> - 2.4.0-1
ddc76b
- Update to 2.4.0
ddc76b
- Package new libgeoclue-2.0 library in -libs subpackage
ddc76b
- Fix directory ownership for /usr/libexec/geoclue-2.0/demos/
ddc76b
- Use license macro for COPYING
ddc76b
ddc76b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ddc76b
ddc76b
* Thu Apr 16 2015 Zeeshan Ali <zeenix@redhat.com> 2.2.0-1
ddc76b
- Update to 2.2.0.
ddc76b
ddc76b
* Tue Apr  7 2015 Zeeshan Ali <zeenix@redhat.com> 2.1.10-2
ddc76b
- Package demo applications too.
ddc76b
ddc76b
* Tue Jan  6 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.1.10-1
ddc76b
- Update to 2.1.10
ddc76b
ddc76b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.9-2
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ddc76b
ddc76b
* Sat Jun 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.9-1
ddc76b
- Update to 2.1.9
ddc76b
ddc76b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.8-2
ddc76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ddc76b
ddc76b
* Wed Apr 16 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.8-1
ddc76b
- Update to 2.1.8
ddc76b
- Remove and obsolete the -server subpackage
ddc76b
ddc76b
* Wed Mar 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.7-1
ddc76b
- Update to 2.1.7
ddc76b
ddc76b
* Fri Mar 07 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.6-1
ddc76b
- Update to 2.1.6
ddc76b
ddc76b
* Thu Feb 06 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.2-2
ddc76b
- Add systemd rpm scripts
ddc76b
- Don't install the demo .desktop files
ddc76b
ddc76b
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.1.2-1
ddc76b
- Update to 2.1.2
ddc76b
ddc76b
* Sun Oct 06 2013 Kalev Lember <kalevlember@gmail.com> - 2.0.0-1
ddc76b
- Update to 2.0.0
ddc76b
- Create a home directory for the 'geoclue' user
ddc76b
ddc76b
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
ddc76b
- Run the service as 'geoclue' user
ddc76b
ddc76b
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
ddc76b
- Update to 1.99.4
ddc76b
ddc76b
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.3-1
ddc76b
- Update to 1.99.3
ddc76b
ddc76b
* Sun Aug 25 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-3
ddc76b
- Update -devel subpackage description (#999153)
ddc76b
ddc76b
* Sat Aug 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-2
ddc76b
- Review fixes (#999153)
ddc76b
- Drop ldconfig calls that are unnecessary now that the shared library is gone
ddc76b
- Drop the build dep on gobject-introspection-devel
ddc76b
- Include API-Documentation.txt in the -server subpackage
ddc76b
ddc76b
* Fri Aug 23 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.2-1
ddc76b
- Update to 1.99.2
ddc76b
- The shared library is gone in this release and all users should use the
ddc76b
  dbus service directly
ddc76b
ddc76b
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-3
ddc76b
- Include geoip-lookup in the -server subpackage as well
ddc76b
ddc76b
* Wed Aug 21 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-2
ddc76b
- Ship geoip-update in -server subpackage
ddc76b
ddc76b
* Tue Aug 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.1-1
ddc76b
- Initial Fedora packaging