Blame SPECS/geoclue2.spec

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