Blame SPECS/geoclue2.spec

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