Package geoclue2: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | %def_disable snapshot %define _name geoclue %define xdg_name org.freedesktop.GeoClue2 %define ver_major 2.7 %define api_ver 2.0 %define _libexecdir %_prefix/libexec %def_enable 3g %def_enable nmea %def_enable gtk_doc %def_enable introspection %def_enable vala %def_enable check Name: %{_name}2 Version: %ver_major.1 Release: alt1 Summary: The Geoinformation Service Group: System/Libraries License: LGPLv2 Url: https://geoclue.freedesktop.org/ %if_disabled snapshot Source: https://gitlab.freedesktop.org/%_name/%_name/-/archive/%version/%_name-%version.tar.gz %else Vcs: https://gitlab.freedesktop.org/geoclue/geoclue.git Source: %_name-%version.tar %endif %define glib_ver 2.68 %define mm_ver 1.10 %define soup3_ver 3.0 BuildRequires(pre): rpm-macros-meson rpm-build-xdg BuildRequires: meson yelp-tools gtk-doc libgio-devel >= %glib_ver BuildRequires: libjson-glib-devel libsoup3.0-devel >= %soup3_ver BuildRequires: libdbus-devel libnotify-devel systemd-devel %{?_enable_vala:BuildRequires: vala-tools} %{?_enable_introspection:BuildRequires: gobject-introspection-devel} %{?_enable_nmea:BuildRequires: libavahi-glib-devel} %{?_enable_3g:BuildRequires: libmm-glib-devel >= %mm_ver} %{?_enable_check:BuildRequires: /proc dbus-tools-gui} %description GeoClue is a D-Bus geoinformation service. The goal of the Geoclue project is to make creating location-aware applications as simple as possible. %package devel Summary: Development package for GeoClue Group: Development/C Requires: %name = %EVR %description devel Files for development with GeoClue. %package -n lib%name Summary: GeoClue Convenience Library Group: System/Libraries %description -n lib%name This package provides convenience shared library that makes interacting with Geoclue very easy. %package -n lib%name-devel Summary: Header files for GeoClue library Group: Development/C Requires: lib%name = %EVR %description -n lib%name-devel This package provides development files for GeoClue library. %package -n lib%name-gir Summary: GObject introspection data for the GeoClue library Group: System/Libraries Requires: lib%name = %EVR %description -n lib%name-gir GObject introspection data for the GeoClue library. %package -n lib%name-gir-devel Summary: GObject introspection devel data for the GeoClue library Group: Development/Other BuildArch: noarch Requires: lib%name-gir = %EVR Requires: lib%name-devel = %EVR %description -n lib%name-gir-devel GObject introspection devel data for the GeoClue library. %package devel-doc Summary: Developer documentation for GeoClue Group: Development/Documentation Conflicts: %name < %version BuildArch: noarch %description devel-doc Developer documentation for GeoClue. %package -n lib%name-devel-doc Summary: Developer documentation for GeoClue library Group: Development/Documentation Conflicts: lib%name < %version BuildArch: noarch %description -n lib%name-devel-doc Developer documentation for GeoClue library. %package demo Summary: Demo programs for GeoClue Group: Development/C Requires: %name = %EVR Requires: lib%name = %EVR %description demo This package contains demo programs for GeoClue. %prep %setup -n %_name-%version rm -f demo/*.desktop.in %build %meson \ -Ddbus-srv-user=%_name \ %{?_disable_nmea:-Dnmea-source=false} \ %{?_disable_3g:-D3g-source=false} \ %{?_disable_gtk_doc:-Dgtk-doc=false} \ %{?_disable_introspection:-Dintrospection=false} \ -Ddemo-agent=true %meson_build %install %meson_install mkdir -p %buildroot%_localstatedir/%_name mkdir -p %buildroot%_sysconfdir/%_name/conf.d echo 'd %_localstatedir/%_name 0755 %_name %_name' | \ install -D -m644 /dev/stdin %buildroot%_tmpfilesdir/%_name.conf %check %meson_test %pre %_sbindir/groupadd -r -f %_name %_sbindir/useradd -r -g %_name -d %_localstatedir/%_name -s /dev/null \ -c 'User for GeoClue service' %_name >/dev/null 2>&1 ||: %files %_libexecdir/%_name %dir %_sysconfdir/%_name/conf.d %_datadir/dbus-1/system.d/%xdg_name.conf %_datadir/dbus-1/system.d/%xdg_name.Agent.conf %_datadir/dbus-1/interfaces/%xdg_name.Agent.xml %_datadir/dbus-1/interfaces/%xdg_name.Client.xml %_datadir/dbus-1/interfaces/%xdg_name.Location.xml %_datadir/dbus-1/interfaces/%xdg_name.Manager.xml %_datadir/dbus-1/interfaces/%xdg_name.xml %_datadir/dbus-1/system-services/%xdg_name.service %_datadir/polkit-1/rules.d/%xdg_name.rules %systemd_unitdir/%_name.service %config %_sysconfdir/%_name/%_name.conf %attr(755,%_name,%_name) %dir %_localstatedir/%_name %_tmpfilesdir/%_name.conf %_man5dir/%_name.5* %doc README* NEWS %files devel %_pkgconfigdir/%_name-%api_ver.pc %files -n lib%name %_libdir/lib%_name-2.so.* %files -n lib%name-devel %_includedir/lib%_name-%api_ver/ %_libdir/lib%_name-2.so %_pkgconfigdir/lib%_name-%api_ver.pc %{?_enable_vala:%_vapidir/lib%_name-%api_ver.deps %_vapidir/lib%_name-%api_ver.vapi} %if_enabled introspection %files -n lib%name-gir %_typelibdir/Geoclue-%api_ver.typelib %files -n lib%name-gir-devel %_girdir/Geoclue-%api_ver.gir %endif %if_enabled gtk_doc %files devel-doc %_datadir/gtk-doc/html/%_name/ %files -n lib%name-devel-doc %_datadir/gtk-doc/html/lib%_name/ %endif %files demo %_libexecdir/%_name-%api_ver/demos/ %_desktopdir/*.desktop %_xdgconfigdir/autostart/%_name-demo-agent.desktop %changelog * Tue Sep 12 2023 Yuri N. Sedunov <aris@altlinux.org> 2.7.1-alt1 - 2.7.1 * Sat Jan 28 2023 Yuri N. Sedunov <aris@altlinux.org> 2.7.0-alt1 - 2.7.0 * Mon Feb 28 2022 Yuri N. Sedunov <aris@altlinux.org> 2.6.0-alt1 - 2.6.0 * Sat Dec 26 2020 Yuri N. Sedunov <aris@altlinux.org> 2.5.7-alt1 - 2.5.7 * Sun Mar 15 2020 Yuri N. Sedunov <aris@altlinux.org> 2.5.6-alt1 - 2.5.6 * Wed Oct 02 2019 Yuri N. Sedunov <aris@altlinux.org> 2.5.5-alt1 - updated to 2.5.5-4-g1a00809 * Sat May 25 2019 Yuri N. Sedunov <aris@altlinux.org> 2.5.3-alt1 - 2.5.3 * Fri Mar 15 2019 Yuri N. Sedunov <aris@altlinux.org> 2.5.2-alt2 - added config for systemd-tmpfiles * Tue Jan 08 2019 Yuri N. Sedunov <aris@altlinux.org> 2.5.2-alt1 - 2.5.2 * Tue Nov 06 2018 Yuri N. Sedunov <aris@altlinux.org> 2.5.1-alt1 - updated to 2.5.1-13-g225d5f9 * Mon Oct 15 2018 Yuri N. Sedunov <aris@altlinux.org> 2.4.13-alt1 - 2.4.13 * Fri Aug 17 2018 Yuri N. Sedunov <aris@altlinux.org> 2.4.12-alt1 - 2.4.12 * Fri Jul 27 2018 Yuri N. Sedunov <aris@altlinux.org> 2.4.11-alt1 - 2.4.11 * Thu May 10 2018 Yuri N. Sedunov <aris@altlinux.org> 2.4.10-alt1 - 2.4.10 * Sat Apr 14 2018 Yuri N. Sedunov <aris@altlinux.org> 2.4.8-alt1 - 2.4.8 * Wed May 31 2017 Yuri N. Sedunov <aris@altlinux.org> 2.4.7-alt1 - 2.4.7 * Sun Apr 02 2017 Yuri N. Sedunov <aris@altlinux.org> 2.4.6-alt1 - 2.4.6 * Mon Jan 30 2017 Yuri N. Sedunov <aris@altlinux.org> 2.4.5-alt1 - 2.4.5 * Sun Sep 11 2016 Yuri N. Sedunov <aris@altlinux.org> 2.4.4-alt1 - 2.4.4 * Mon Mar 21 2016 Yuri N. Sedunov <aris@altlinux.org> 2.4.3-alt1 - 2.4.3 * Tue Mar 01 2016 Yuri N. Sedunov <aris@altlinux.org> 2.4.2-alt1 - 2.4.2 * Thu Dec 17 2015 Yuri N. Sedunov <aris@altlinux.org> 2.4.1-alt1 - 2.4.1 * Tue Oct 27 2015 Yuri N. Sedunov <aris@altlinux.org> 2.4.0-alt1 - 2.4.0 - new libgeoclue2-* subpackages * Sat Sep 19 2015 Yuri N. Sedunov <aris@altlinux.org> 2.3.0-alt1 - 2.3.0 * Sun Apr 26 2015 Yuri N. Sedunov <aris@altlinux.org> 2.2.0-alt1 - 2.2.0 * Fri Jan 09 2015 Yuri N. Sedunov <aris@altlinux.org> 2.1.10-alt1 - 2.1.10 * Fri Jun 20 2014 Yuri N. Sedunov <aris@altlinux.org> 2.1.9-alt1 - 2.1.9 * Mon Apr 21 2014 Yuri N. Sedunov <aris@altlinux.org> 2.1.8-alt1 - 2.1.8 * Mon Apr 14 2014 Yuri N. Sedunov <aris@altlinux.org> 2.1.7-alt1 - 2.1.7 * Fri Mar 07 2014 Yuri N. Sedunov <aris@altlinux.org> 2.1.6-alt1 - 2.1.6 * Fri Dec 13 2013 Yuri N. Sedunov <aris@altlinux.org> 2.0.0-alt2 - create new geoclue group and user in %%pre * Wed Oct 09 2013 Yuri N. Sedunov <aris@altlinux.org> 2.0.0-alt1 - 2.0.0 - new -devel-doc subpackage * Tue Sep 17 2013 Yuri N. Sedunov <aris@altlinux.org> 1.99.4-alt1 - 1.99.4 * Sun Sep 01 2013 Yuri N. Sedunov <aris@altlinux.org> 1.99.2-alt1 - first build for Sisyphus |