[12458] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
[7938] | 3 | Summary: A modular geoinformation service |
---|
| 4 | Summary(ja): モジュール型地理情報サービス |
---|
| 5 | Name: geoclue2 |
---|
[12458] | 6 | Version: 2.5.6 |
---|
| 7 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 8 | Group: system |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
[7938] | 11 | |
---|
| 12 | License: GPLv2+ |
---|
[12458] | 13 | URL: https://www.freedesktop.org/wiki/Software/GeoClue/ |
---|
[12224] | 14 | Source0: https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2 |
---|
[7938] | 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 17 | |
---|
| 18 | BuildRequires: geocode-glib-devel |
---|
| 19 | BuildRequires: json-glib-devel |
---|
| 20 | BuildRequires: libsoup-devel |
---|
[8353] | 21 | BuildRequires: ModemManager-glib-devel |
---|
[12224] | 22 | BuildRequires: NetworkManager-libnm-devel |
---|
[10716] | 23 | BuildRequires: gobject-introspection-devel |
---|
| 24 | BuildRequires: avahi-glib-devel |
---|
[12224] | 25 | BuildRequires: libnotify-devel |
---|
| 26 | BuildRequires: vala-devel |
---|
[7938] | 27 | BuildRequires: gtk-doc |
---|
| 28 | BuildRequires: itstool |
---|
[12224] | 29 | BuildRequires: meson |
---|
[12458] | 30 | %if %{with systemd} |
---|
| 31 | %{?systemd_requires} |
---|
| 32 | %endif |
---|
[7938] | 33 | |
---|
| 34 | %description |
---|
| 35 | Geoclue is a modular geoinformation service built on top of the D-Bus |
---|
| 36 | messaging system. The goal of the Geoclue project is to make creating |
---|
| 37 | location-aware applications as simple as possible. |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development package for geoclue |
---|
| 41 | Summary(ja): geoclue の開発パッケージ |
---|
[12458] | 42 | Group: programming |
---|
[7938] | 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | Requires: pkgconfig |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | Files for development with geoclue. |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %setup -q -n geoclue-%{version} |
---|
| 52 | |
---|
[12458] | 53 | |
---|
[7938] | 54 | %build |
---|
[12458] | 55 | %meson \ |
---|
| 56 | -Ddbus-srv-user=geoclue \ |
---|
| 57 | -Dgtk-doc=false \ |
---|
| 58 | -Ddemo-agent=false \ |
---|
| 59 | %if %{with systemd} |
---|
| 60 | -Dsystemd-system-unit-dir=%{_unitdir} \ |
---|
| 61 | %endif |
---|
| 62 | %{nil} |
---|
[12224] | 63 | %meson_build |
---|
[7938] | 64 | |
---|
[12458] | 65 | |
---|
[7938] | 66 | %install |
---|
| 67 | rm -rf $RPM_BUILD_ROOT |
---|
[12224] | 68 | %meson_install |
---|
[12458] | 69 | # Home directory for the 'geoclue' user |
---|
| 70 | mkdir -p $RPM_BUILD_ROOT/var/lib/geoclue |
---|
[7938] | 71 | |
---|
| 72 | %clean |
---|
| 73 | rm -rf $RPM_BUILD_ROOT |
---|
| 74 | |
---|
| 75 | |
---|
[12458] | 76 | %pre |
---|
| 77 | # Update the home directory for existing users |
---|
| 78 | getent passwd geoclue >/dev/null && \ |
---|
| 79 | usermod -d /var/lib/geoclue geoclue &>/dev/null |
---|
| 80 | # Create a new user and group if they don't exist |
---|
| 81 | getent group geoclue >/dev/null || groupadd -r geoclue |
---|
| 82 | getent passwd geoclue >/dev/null || \ |
---|
| 83 | useradd -r -g geoclue -d /var/lib/geoclue -s /sbin/nologin \ |
---|
| 84 | -c "User for geoclue" geoclue |
---|
| 85 | exit 0 |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %post |
---|
| 89 | /sbin/ldconfig |
---|
| 90 | %if %{with systemd} |
---|
| 91 | %systemd_post geoclue.service |
---|
| 92 | %endif |
---|
| 93 | |
---|
| 94 | %if %{with systemd} |
---|
| 95 | %preun |
---|
| 96 | %systemd_preun geoclue.service |
---|
| 97 | %endif |
---|
| 98 | |
---|
| 99 | %postun |
---|
| 100 | /sbin/ldconfig |
---|
| 101 | %if %{with systemd} |
---|
| 102 | %systemd_postun_with_restart geoclue.service |
---|
| 103 | %endif |
---|
| 104 | |
---|
| 105 | |
---|
[7938] | 106 | %files |
---|
| 107 | %defattr(-,root,root,-) |
---|
[12224] | 108 | %license COPYING |
---|
| 109 | %doc README |
---|
[8353] | 110 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf |
---|
[7938] | 111 | %{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf |
---|
[8353] | 112 | %{_sysconfdir}/geoclue/geoclue.conf |
---|
[10716] | 113 | %{_libdir}/girepository-1.0/Geoclue-2.0.typelib |
---|
| 114 | %{_libdir}/libgeoclue-2.so.* |
---|
[7938] | 115 | %{_libexecdir}/geoclue |
---|
[8353] | 116 | %{_libexecdir}/geoclue-2.0/demos/where-am-i |
---|
| 117 | %{_datadir}/applications/geoclue-where-am-i.desktop |
---|
[10716] | 118 | %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml |
---|
[8353] | 119 | %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml |
---|
[10716] | 120 | %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Client.xml |
---|
| 121 | %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Location.xml |
---|
| 122 | %{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml |
---|
[7938] | 123 | %{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service |
---|
[12224] | 124 | %{_mandir}/man5/* |
---|
[12458] | 125 | %attr(755,geoclue,geoclue) %dir /var/lib/geoclue |
---|
| 126 | %if %{with systemd} |
---|
| 127 | %{_unitdir}/* |
---|
| 128 | %endif |
---|
[7938] | 129 | |
---|
| 130 | %files devel |
---|
| 131 | %defattr(-,root,root,-) |
---|
[10716] | 132 | %{_includedir}/libgeoclue-2.0 |
---|
| 133 | %{_libdir}/libgeoclue-2.so |
---|
[7938] | 134 | %{_libdir}/pkgconfig/geoclue-2.0.pc |
---|
[10716] | 135 | %{_libdir}/pkgconfig/libgeoclue-2.0.pc |
---|
| 136 | %{_datadir}/gir-1.0/Geoclue-2.0.gir |
---|
[12224] | 137 | %{_datadir}/vala/vapi/libgeoclue-*.deps |
---|
| 138 | %{_datadir}/vala/vapi/libgeoclue-*.vapi |
---|
[7938] | 139 | |
---|
| 140 | |
---|
| 141 | %changelog |
---|
[12458] | 142 | * Sun Aug 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.6-1 |
---|
| 143 | - new upstream release. |
---|
| 144 | |
---|
[12224] | 145 | * Sat Sep 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.3-1 |
---|
| 146 | - new upstream release. |
---|
| 147 | - enabled vala vapi. |
---|
| 148 | |
---|
[10716] | 149 | * Sun Jul 17 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.3-1 |
---|
| 150 | - new upstream release |
---|
| 151 | - add BuildRequires: gobject-introspection-devel, avahi-glib-devel |
---|
| 152 | |
---|
[9506] | 153 | * Mon Apr 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[9073] | 156 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.10-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[8353] | 159 | * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1 |
---|
| 160 | - new upstream release |
---|
| 161 | - add BuildRequires: ModemManager-glib-devel, NetworkManager-glib-devel |
---|
| 162 | |
---|
[7938] | 163 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1 |
---|
| 164 | - initial build |
---|
| 165 | |
---|