]> git.pld-linux.org Git - packages/geoclue2.git/blame - geoclue2.spec
- updated to 2.7.0; service uses libsoup3 now
[packages/geoclue2.git] / geoclue2.spec
CommitLineData
82e8bc7e
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
e7373d81
JB
5Summary: A modular geoinformation service
6Summary(pl.UTF-8): Modularna usługa geoinformacyjna
7Name: geoclue2
fe16f939 8Version: 2.7.0
82e8bc7e
JB
9Release: 1
10License: GPL v2+ (programs), LGPL v2.1+ (library)
e7373d81 11Group: Applications
aa1ddef1
JB
12#Source0Download: https://gitlab.freedesktop.org/geoclue/geoclue/-/tags
13Source0: https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/geoclue-%{version}.tar.bz2
fe16f939 14# Source0-md5: 8226cc9d4b2750b6ebdfd59e7815bf2a
e618cd11 15URL: https://geoclue.freedesktop.org/
64220e2a 16BuildRequires: ModemManager-devel >= 1.6
82e8bc7e
JB
17BuildRequires: avahi-devel >= 0.6.10
18BuildRequires: avahi-glib-devel >= 0.6.10
64220e2a 19BuildRequires: glib2-devel >= 1:2.44.0
82e8bc7e 20BuildRequires: gobject-introspection-devel >= 0.10
4f34e5d2 21BuildRequires: gtk-doc >= 1.0
aa1ddef1 22BuildRequires: gtk-doc-automake >= 1.0
fdf25fec 23BuildRequires: intltool >= 0.40.0
e7373d81 24BuildRequires: json-glib-devel >= 0.14
fdf25fec 25BuildRequires: libnotify-devel
fe16f939
JB
26BuildRequires: libsoup3-devel >= 3.0.0
27BuildRequires: meson >= 0.60.0
d8aa1176 28BuildRequires: ninja >= 1.5
e7373d81 29BuildRequires: pkgconfig >= 1:0.22
d8aa1176
JB
30BuildRequires: rpm-build >= 4.6
31BuildRequires: rpmbuild(macros) >= 1.736
82e8bc7e 32BuildRequires: tar >= 1:1.22
d8aa1176 33BuildRequires: vala
e7373d81 34BuildRequires: yelp-tools
82e8bc7e
JB
35BuildRequires: xz
36Requires: %{name}-libs = %{version}-%{release}
37Requires: avahi-libs >= 0.6.10
38Requires: avahi-glib >= 0.6.10
e7373d81 39Requires: dbus
e7373d81 40Requires: json-glib >= 0.14
fe16f939 41Requires: libsoup3 >= 3.0.0
e7373d81
JB
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45Geoclue is a modular geoinformation service built on top of the D-Bus
46messaging system. The goal of the Geoclue project is to make creating
47location-aware applications as simple as possible.
48
49%description -l pl.UTF-8
50Geoclue to modularna usługa geoinformacyjna zbudowana w oparciu o
51system komunikacji D-Bus. Celem projektu jest jak największe
52ułatwienie tworzenia aplikacji uwzględniających lokalizację.
53
82e8bc7e
JB
54%package libs
55Summary: Library to interact with Geoclue service
56Summary(pl.UTF-8): Biblioteka do współpracy z usługą Geoclue
57License: LGPL v2.1+
58Group: Libraries
64220e2a 59Requires: glib2 >= 1:2.44.0
82e8bc7e
JB
60
61%description libs
62Library to interact with Geoclue service.
63
64%description libs -l pl.UTF-8
65Biblioteka do współpracy z usługą Geoclue.
66
e7373d81
JB
67%package devel
68Summary: Development package for geoclue2
69Summary(pl.UTF-8): Pakiet programistyczny geoclue2
82e8bc7e 70License: LGPL v2.1+
e7373d81 71Group: Development/Libraries
82e8bc7e 72Requires: %{name}-libs = %{version}-%{release}
64220e2a 73Requires: glib2-devel >= 1:2.44.0
e7373d81
JB
74
75%description devel
76Header files for development with geoclue2.
77
78%description devel -l pl.UTF-8
79Pliki nagłówkowe do programowania z użyciem geoclue2.
80
82e8bc7e
JB
81%package static
82Summary: Static geoclue2 library
83Summary(pl.UTF-8): Statyczna biblioteka geoclue2
84License: LGPL v2.1+
85Group: Development/Libraries
86Requires: %{name}-devel = %{version}-%{release}
87
88%description static
89Static geoclue2 library.
90
91%description static -l pl.UTF-8
92Statyczna biblioteka geoclue2.
93
64220e2a
JB
94%package -n vala-geoclue2
95Summary: Vala API for geoclue2 library
96Summary(pl.UTF-8): Interfejs języka Vala do biblioteki geoclue2
97License: LGPL v2.1+
98Group: Development/Libraries
99Requires: %{name}-devel = %{version}-%{release}
d8aa1176 100BuildArch: noarch
64220e2a
JB
101
102%description -n vala-geoclue2
103Vala API for geoclue2 library.
104
105%description -n vala-geoclue2 -l pl.UTF-8
106Interfejs języka Vala do biblioteki geoclue2.
107
d8aa1176
JB
108%package apidocs
109Summary: API documentation for geoclue2 library
110Summary(pl.UTF-8): Dokumentacja API biblioteki geoclue2
111Group: Documentation
112BuildArch: noarch
113
114%description apidocs
115API documentation for geoclue2 library.
116
117%description apidocs -l pl.UTF-8
118Dokumentacja API biblioteki geoclue2.
119
e7373d81
JB
120%prep
121%setup -q -n geoclue-%{version}
122
e7373d81 123%build
d8aa1176
JB
124%meson build \
125 %{!?with_static_libs:--default-library=shared} \
126 -Dsystemd-system-unit-dir=%{systemdunitdir}
127
128# TODO: -Ddbus-srv-user= (nonroot)
129
130%ninja_build -C build
e7373d81
JB
131
132%install
133rm -rf $RPM_BUILD_ROOT
134
d8aa1176 135%ninja_install -C build
e7373d81 136
d8aa1176
JB
137# resolve conflict with geoclue-apidocs 0.12.x
138%{__mv} $RPM_BUILD_ROOT%{_gtkdocdir}/geoclue{,-2.0}
82e8bc7e 139
e7373d81
JB
140%clean
141rm -rf $RPM_BUILD_ROOT
142
82e8bc7e
JB
143%post libs -p /sbin/ldconfig
144%postun libs -p /sbin/ldconfig
145
e7373d81
JB
146%files
147%defattr(644,root,root,755)
d8aa1176 148%doc NEWS README.md
e7373d81 149%attr(755,root,root) %{_libexecdir}/geoclue
fdf25fec
JB
150%dir %{_sysconfdir}/geoclue
151%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/geoclue/geoclue.conf
152%{systemdunitdir}/geoclue.service
e7373d81 153/etc/dbus-1/system.d/org.freedesktop.GeoClue2.conf
fdf25fec 154/etc/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
e7373d81 155%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
4150e0f6 156%{_datadir}/polkit-1/rules.d/org.freedesktop.GeoClue2.rules
fdf25fec 157# demos
64220e2a 158/etc/xdg/autostart/geoclue-demo-agent.desktop
fdf25fec
JB
159%dir %{_libexecdir}/geoclue-2.0
160%dir %{_libexecdir}/geoclue-2.0/demos
161%attr(755,root,root) %{_libexecdir}/geoclue-2.0/demos/agent
162%attr(755,root,root) %{_libexecdir}/geoclue-2.0/demos/where-am-i
163%{_desktopdir}/geoclue-demo-agent.desktop
164%{_desktopdir}/geoclue-where-am-i.desktop
d8aa1176 165%{_mandir}/man5/geoclue.5*
e7373d81 166
82e8bc7e
JB
167%files libs
168%defattr(644,root,root,755)
169%attr(755,root,root) %{_libdir}/libgeoclue-2.so.*.*.*
170%attr(755,root,root) %ghost %{_libdir}/libgeoclue-2.so.0
171%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
172
e7373d81
JB
173%files devel
174%defattr(644,root,root,755)
82e8bc7e
JB
175%attr(755,root,root) %{_libdir}/libgeoclue-2.so
176%{_includedir}/libgeoclue-2.0
177%{_datadir}/gir-1.0/Geoclue-2.0.gir
e7373d81 178%{_pkgconfigdir}/geoclue-2.0.pc
82e8bc7e 179%{_pkgconfigdir}/libgeoclue-2.0.pc
fdf25fec
JB
180%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml
181%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml
82e8bc7e
JB
182%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Client.xml
183%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Location.xml
184%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml
185
186%if %{with static_libs}
187%files static
188%defattr(644,root,root,755)
189%{_libdir}/libgeoclue-2.a
190%endif
64220e2a
JB
191
192%files -n vala-geoclue2
193%defattr(644,root,root,755)
194%{_datadir}/vala/vapi/libgeoclue-2.0.deps
195%{_datadir}/vala/vapi/libgeoclue-2.0.vapi
d8aa1176
JB
196
197%files apidocs
198%defattr(644,root,root,755)
199%{_gtkdocdir}/geoclue-2.0
200%{_gtkdocdir}/libgeoclue
This page took 0.118227 seconds and 4 git commands to generate.