]> git.pld-linux.org Git - packages/geoclue2.git/blame - geoclue2.spec
- updated to 2.4.12
[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
64220e2a 8Version: 2.4.12
82e8bc7e
JB
9Release: 1
10License: GPL v2+ (programs), LGPL v2.1+ (library)
e7373d81 11Group: Applications
e618cd11 12Source0: https://www.freedesktop.org/software/geoclue/releases/2.4/geoclue-%{version}.tar.xz
64220e2a 13# Source0-md5: 469bfcebef36723b34aaa5816de93e18
e618cd11 14URL: https://geoclue.freedesktop.org/
64220e2a 15BuildRequires: ModemManager-devel >= 1.6
e7373d81
JB
16BuildRequires: autoconf >= 2.63
17BuildRequires: automake >= 1:1.11
82e8bc7e
JB
18BuildRequires: avahi-devel >= 0.6.10
19BuildRequires: avahi-glib-devel >= 0.6.10
64220e2a 20BuildRequires: glib2-devel >= 1:2.44.0
4f34e5d2 21BuildRequires: gnome-common
82e8bc7e 22BuildRequires: gobject-introspection-devel >= 0.10
4f34e5d2 23BuildRequires: gtk-doc >= 1.0
fdf25fec 24BuildRequires: intltool >= 0.40.0
e7373d81 25BuildRequires: json-glib-devel >= 0.14
fdf25fec 26BuildRequires: libnotify-devel
82e8bc7e 27BuildRequires: libsoup-devel >= 2.42
e7373d81 28BuildRequires: libtool >= 2:2.2
e7373d81 29BuildRequires: pkgconfig >= 1:0.22
82e8bc7e 30BuildRequires: tar >= 1:1.22
e7373d81 31BuildRequires: yelp-tools
82e8bc7e
JB
32BuildRequires: xz
33Requires: %{name}-libs = %{version}-%{release}
34Requires: avahi-libs >= 0.6.10
35Requires: avahi-glib >= 0.6.10
e7373d81 36Requires: dbus
e7373d81 37Requires: json-glib >= 0.14
82e8bc7e 38Requires: libsoup >= 2.42
e7373d81
JB
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Geoclue is a modular geoinformation service built on top of the D-Bus
43messaging system. The goal of the Geoclue project is to make creating
44location-aware applications as simple as possible.
45
46%description -l pl.UTF-8
47Geoclue to modularna usługa geoinformacyjna zbudowana w oparciu o
48system komunikacji D-Bus. Celem projektu jest jak największe
49ułatwienie tworzenia aplikacji uwzględniających lokalizację.
50
82e8bc7e
JB
51%package libs
52Summary: Library to interact with Geoclue service
53Summary(pl.UTF-8): Biblioteka do współpracy z usługą Geoclue
54License: LGPL v2.1+
55Group: Libraries
64220e2a 56Requires: glib2 >= 1:2.44.0
82e8bc7e
JB
57
58%description libs
59Library to interact with Geoclue service.
60
61%description libs -l pl.UTF-8
62Biblioteka do współpracy z usługą Geoclue.
63
e7373d81
JB
64%package devel
65Summary: Development package for geoclue2
66Summary(pl.UTF-8): Pakiet programistyczny geoclue2
82e8bc7e 67License: LGPL v2.1+
e7373d81 68Group: Development/Libraries
82e8bc7e 69Requires: %{name}-libs = %{version}-%{release}
64220e2a 70Requires: glib2-devel >= 1:2.44.0
e7373d81
JB
71
72%description devel
73Header files for development with geoclue2.
74
75%description devel -l pl.UTF-8
76Pliki nagłówkowe do programowania z użyciem geoclue2.
77
82e8bc7e
JB
78%package static
79Summary: Static geoclue2 library
80Summary(pl.UTF-8): Statyczna biblioteka geoclue2
81License: LGPL v2.1+
82Group: Development/Libraries
83Requires: %{name}-devel = %{version}-%{release}
84
85%description static
86Static geoclue2 library.
87
88%description static -l pl.UTF-8
89Statyczna biblioteka geoclue2.
90
64220e2a
JB
91%package -n vala-geoclue2
92Summary: Vala API for geoclue2 library
93Summary(pl.UTF-8): Interfejs języka Vala do biblioteki geoclue2
94License: LGPL v2.1+
95Group: Development/Libraries
96Requires: %{name}-devel = %{version}-%{release}
97
98%description -n vala-geoclue2
99Vala API for geoclue2 library.
100
101%description -n vala-geoclue2 -l pl.UTF-8
102Interfejs języka Vala do biblioteki geoclue2.
103
e7373d81
JB
104%prep
105%setup -q -n geoclue-%{version}
106
e7373d81 107%build
fdf25fec 108%{__intltoolize}
e7373d81 109%{__libtoolize}
fdf25fec 110%{__aclocal} -I m4
e7373d81
JB
111%{__autoconf}
112%{__autoheader}
113%{__automake}
114%configure \
fdf25fec 115 --enable-demo-agent \
0acf609d 116 --disable-silent-rules \
82e8bc7e 117 %{?with_static_libs:--enable-static} \
0acf609d 118 --with-systemdsystemunitdir=%{systemdunitdir}
e7373d81
JB
119
120%{__make}
121
122%install
123rm -rf $RPM_BUILD_ROOT
124
125%{__make} install \
126 DESTDIR=$RPM_BUILD_ROOT
127
82e8bc7e
JB
128# obsoleted by pkg-config
129%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgeoclue-2.la
130
e7373d81
JB
131%clean
132rm -rf $RPM_BUILD_ROOT
133
82e8bc7e
JB
134%post libs -p /sbin/ldconfig
135%postun libs -p /sbin/ldconfig
136
e7373d81
JB
137%files
138%defattr(644,root,root,755)
139%doc NEWS README
e7373d81 140%attr(755,root,root) %{_libexecdir}/geoclue
fdf25fec
JB
141%dir %{_sysconfdir}/geoclue
142%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/geoclue/geoclue.conf
143%{systemdunitdir}/geoclue.service
e7373d81 144/etc/dbus-1/system.d/org.freedesktop.GeoClue2.conf
fdf25fec 145/etc/dbus-1/system.d/org.freedesktop.GeoClue2.Agent.conf
e7373d81 146%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
fdf25fec 147# demos
64220e2a 148/etc/xdg/autostart/geoclue-demo-agent.desktop
fdf25fec
JB
149%dir %{_libexecdir}/geoclue-2.0
150%dir %{_libexecdir}/geoclue-2.0/demos
151%attr(755,root,root) %{_libexecdir}/geoclue-2.0/demos/agent
152%attr(755,root,root) %{_libexecdir}/geoclue-2.0/demos/where-am-i
153%{_desktopdir}/geoclue-demo-agent.desktop
154%{_desktopdir}/geoclue-where-am-i.desktop
e7373d81 155
82e8bc7e
JB
156%files libs
157%defattr(644,root,root,755)
158%attr(755,root,root) %{_libdir}/libgeoclue-2.so.*.*.*
159%attr(755,root,root) %ghost %{_libdir}/libgeoclue-2.so.0
160%{_libdir}/girepository-1.0/Geoclue-2.0.typelib
161
e7373d81
JB
162%files devel
163%defattr(644,root,root,755)
82e8bc7e
JB
164%attr(755,root,root) %{_libdir}/libgeoclue-2.so
165%{_includedir}/libgeoclue-2.0
166%{_datadir}/gir-1.0/Geoclue-2.0.gir
e7373d81 167%{_pkgconfigdir}/geoclue-2.0.pc
82e8bc7e 168%{_pkgconfigdir}/libgeoclue-2.0.pc
fdf25fec
JB
169%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.xml
170%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Agent.xml
82e8bc7e
JB
171%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Client.xml
172%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Location.xml
173%{_datadir}/dbus-1/interfaces/org.freedesktop.GeoClue2.Manager.xml
174
175%if %{with static_libs}
176%files static
177%defattr(644,root,root,755)
178%{_libdir}/libgeoclue-2.a
179%endif
64220e2a
JB
180
181%files -n vala-geoclue2
182%defattr(644,root,root,755)
183%{_datadir}/vala/vapi/libgeoclue-2.0.deps
184%{_datadir}/vala/vapi/libgeoclue-2.0.vapi
This page took 0.274 seconds and 4 git commands to generate.