Blame SPECS/geoclue2.spec

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