geoclue2/geoclue2.spec

143 lines
4.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:39:38 -04:00
Name: geoclue2
2024-01-17 10:52:09 +08:00
Version: 2.7.1
2020-07-25 17:09:32 +08:00
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/
2021-01-29 16:56:14 +08:00
Source0: https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
2019-09-30 10:39:38 -04:00
BuildRequires: avahi-glib-devel glib2-devel gobject-introspection-devel intltool itstool json-glib-devel
2023-07-26 16:19:49 +08:00
BuildRequires: libsoup3-devel ModemManager-glib-devel systemd vala libnotify-devel meson
2020-07-25 17:09:32 +08:00
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
2022-04-19 11:32:00 +08:00
%delete_la_and_a
2019-09-30 10:39:38 -04:00
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
%preun
%systemd_preun geoclue.service
%postun
%systemd_postun_with_restart geoclue.service
2022-04-19 11:32:00 +08:00
2019-09-30 10:39:38 -04:00
%files
%doc NEWS
%license COPYING
%config %{_sysconfdir}/geoclue/
2022-04-19 11:32:00 +08:00
%dir %{_libexecdir}/geoclue-2.0
%dir %{_libexecdir}/geoclue-2.0/demos
2024-01-17 10:52:09 +08:00
%{_datadir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
2019-09-30 10:39:38 -04:00
%{_sysconfdir}/xdg/autostart/geoclue-demo-agent.desktop
%{_libexecdir}/geoclue
2022-04-19 11:32:00 +08:00
%{_datadir}/polkit-1/rules.d/org.freedesktop.GeoClue2.rules
2019-09-30 10:39:38 -04:00
%{_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/*
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
%{_libdir}/libgeoclue-2.so.0*
2022-04-19 11:32:00 +08:00
%attr(755,geoclue,geoclue) %dir /var/lib/geoclue
2019-09-30 10:39:38 -04:00
%files devel
%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2*.xml
2022-04-19 11:32:00 +08:00
%dir %{_datadir}/gir-1.0
2019-09-30 10:39:38 -04:00
%{_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/
2022-04-19 11:32:00 +08:00
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
2019-09-30 10:39:38 -04:00
%{_datadir}/vala/vapi/libgeoclue-2.0.*
%{_includedir}/libgeoclue-2.0/
2022-04-19 11:32:00 +08:00
%{_libdir}/pkgconfig/geoclue-2.0.pc
%{_libdir}/pkgconfig/libgeoclue-2.0.pc
2019-09-30 10:39:38 -04:00
%{_libdir}/libgeoclue-2.so
%changelog
2024-01-17 10:52:09 +08:00
* Wed Jan 17 2024 konglidong <konglidong@uniontech.com> - 2.7.1-1
- update version to 2.7.1
2023-07-26 16:19:49 +08:00
* Wed Jul 26 2023 zhangkea <zhangkea@uniontech.com> - 2.7.0-1
- Update to 2.7.0
2022-04-19 11:32:00 +08:00
* Tue Apr 19 2022 dillon chen <dillon.chen@gmail.com> - 2.6.0-1
- Update to 2.6.0
2021-01-29 16:56:14 +08:00
* Fri Jan 29 2021 yanglu <yanglu60@huawei.com> - 2.5.7-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:version update
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