geoclue2/geoclue2.spec

122 lines
3.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:39:38 -04:00
Name: geoclue2
2020-07-25 17:09:32 +08:00
Version: 2.5.6
Release: 1
2019-09-30 10:39:38 -04:00
Summary: Geolocation service
2020-02-17 19:57:08 +08:00
License: GPLv2+ and LGPLv2+
2019-09-30 10:39:38 -04:00
URL: http://www.freedesktop.org/wiki/Software/GeoClue/
2020-07-25 17:09:32 +08:00
Source0: https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/2.5.6/geoclue-2.5.6.tar.bz2
2019-09-30 10:39:38 -04:00
BuildRequires: avahi-glib-devel glib2-devel gobject-introspection-devel intltool itstool json-glib-devel
2020-07-25 17:09:32 +08:00
BuildRequires: libsoup-devel ModemManager-glib-devel systemd vala libnotify-devel meson
BuildRequires: gettext gtk-doc
2019-09-30 10:39:38 -04:00
Requires: shadow-utils systemd dbus
Obsoletes: geoclue2-server < 2.1.8 geoclue < 0.12.99-10 geoclue-devel < 0.12.99-10 geoclue-gsmloc < 0.12.99-10
Obsoletes: geoclue-gui < 0.12.99-10 geoclue-gypsy < 0.12.99-10
2019-11-06 19:07:31 +08:00
Provides: %{name}-demos %{name}-libs %{name}-libs%{?_isa}
2019-09-30 10:39:38 -04:00
Obsoletes: %{name}-demos %{name}-libs
%description
Geoclue is a D-Bus service that provides location information. The primary goal
of the Geoclue project is to make creating location-aware applications as
simple as possible, while the secondary goal is to ensure that no application
can access location information without explicit permission from user.
geoclue2 also contains demo applications that use %{name}
%package devel
Summary: Development files for %{name} Geoclue client library
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains files for developing applications that
use %{name}.and contains a convenience library to interact with
Geoclue service.
%prep
%autosetup -n geoclue-%{version} -p1
%build
2020-07-25 17:09:32 +08:00
%meson -Ddbus-srv-user=geoclue
%meson_build
2019-09-30 10:39:38 -04:00
%install
2020-07-25 17:09:32 +08:00
%meson_install
2019-09-30 10:39:38 -04:00
find $RPM_BUILD_ROOT -name '*.la' -delete
install -d $RPM_BUILD_ROOT/var/lib/geoclue
%pre
# Update the home directory for existing users
getent passwd geoclue >/dev/null && \
usermod -d /var/lib/geoclue geoclue &>/dev/null
# Create a new user and group if they don't exist
getent group geoclue >/dev/null || groupadd -r geoclue
getent passwd geoclue >/dev/null || \
useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \
-c "User for geoclue" geoclue
exit 0
%post
%systemd_post geoclue.service
/sbin/ldconfig
%preun
%systemd_preun geoclue.service
%postun
%systemd_postun_with_restart geoclue.service
/sbin/ldconfig
%files
%doc NEWS
%license COPYING
%config %{_sysconfdir}/geoclue/
%{_sysconfdir}/dbus-1/system.d/*.conf
%{_sysconfdir}/xdg/autostart/geoclue-demo-agent.desktop
%{_libexecdir}/geoclue
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%{_datadir}/applications/geoclue-*.desktop
2020-07-25 17:09:32 +08:00
%{_mandir}/man5/geoclue.5*
2019-09-30 10:39:38 -04:00
%{_unitdir}/geoclue.service
%{_libexecdir}/geoclue-2.0/demos/*
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
%{_libdir}/libgeoclue-2.so.0*
%files devel
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
%{_datadir}/gir-1.0/Geoclue-2.0.gir
2020-07-25 17:09:32 +08:00
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/geoclue/
%{_datadir}/gtk-doc/html/libgeoclue/
2019-09-30 10:39:38 -04:00
%{_datadir}/vala/vapi/libgeoclue-2.0.*
%{_includedir}/libgeoclue-2.0/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libgeoclue-2.so
%changelog
2020-07-25 17:09:32 +08:00
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 2.5.6-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:version update
2020-02-17 19:57:08 +08:00
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 2.4.11-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add missing license
2019-11-06 19:07:31 +08:00
* Thu Oct 17 2019 shenyangyang <shenyangyang4@huawei.com> - 2.4.11-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add geoclue2-libs%{?isa} that required by gnome-shell
2019-09-30 10:39:38 -04:00
* Wed Sep 11 2019 openEuler jimmy<dukaitian@huawei.com> - 2.4.11-2
- Package init jimmy