3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: GLib geocoding library that uses the Yahoo! Place Finder service
7 Summary(pl.UTF-8): Biblioteka GLib do geokodowania wykorzystująca serwis Yahoo! Place Finder
13 Source0: http://download.gnome.org/sources/geocode-glib/3.14/%{name}-%{version}.tar.xz
14 # Source0-md5: c8926a2e05f5c7039c8873f008ae6bfe
15 URL: https://developer.gnome.org/geocode-glib/
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: gettext-tools >= 0.18
19 BuildRequires: glib2-devel >= 1:2.34
20 BuildRequires: gnome-common
21 BuildRequires: gobject-introspection-devel >= 0.6.3
22 BuildRequires: gtk-doc >= 1.13
23 BuildRequires: json-glib-devel >= 0.99.2
24 BuildRequires: libsoup-devel >= 2.4
25 BuildRequires: libtool >= 2:2.2
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
29 Requires: glib2 >= 1:2.34
30 Requires: json-glib >= 0.99.2
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 geocode-glib allows you to do geocoding (going from a place name, to a
35 longitude/latitude pair) and reverse geocoding (finding a place name
38 %description -l pl.UTF-8
39 Ten pakiet umożliwia geokodowanie (kodowanie geograficzne - zamianę
40 nazwy miejsca na parę długość/szerokość geograficzna) oraz odwrotne
41 geokodowanie (odnajdywanie nazwy miejsca na podstawie współrzędnych).
44 Summary: Header files for geocode-glib library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki geocode-glib
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: glib2-devel >= 1:2.34
51 Header files for geocode-glib library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki geocode-glib.
57 Summary: Static geocode-glib library
58 Summary(pl.UTF-8): Statyczna biblioteka geocode-glib
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static geocode-glib library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka geocode-glib.
69 Summary: geocode-glib API documentation
70 Summary(pl.UTF-8): Dokumentacja API biblioteki geocode-glib
72 Requires: gtk-doc-common
75 API documentation for geocode-glib library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki geocode-glib.
90 %{__enable_disable apidocs gtk-doc} \
91 --disable-silent-rules \
92 %{__enable_disable static_libs static} \
93 --with-html-dir=%{_gtkdocdir}
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README TODO
111 %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0
113 %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
114 %{_iconsdir}/gnome/scalable/places/poi-*.svg
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
119 %{_libdir}/libgeocode-glib.la
120 %{_includedir}/geocode-glib-1.0
121 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
122 %{_pkgconfigdir}/geocode-glib-1.0.pc
124 %if %{with static_libs}
126 %defattr(644,root,root,755)
127 %{_libdir}/libgeocode-glib.a
132 %defattr(644,root,root,755)
133 %{_gtkdocdir}/geocode-glib-1.0