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/0.99/%{name}-%{version}.tar.bz2
14 # Source0-md5: 73ac778225f35ad996ea0345c5abe4b9
15 BuildRequires: autoconf >= 2.52
16 BuildRequires: automake >= 1:1.8
17 BuildRequires: gettext-devel
18 BuildRequires: glib2-devel >= 1:2.16.0
19 BuildRequires: gnome-common
20 BuildRequires: gobject-introspection-devel >= 0.6.3
21 BuildRequires: gtk-doc >= 1.9
22 BuildRequires: intltool >= 0.35.0
23 BuildRequires: json-glib-devel >= 0.13.1
24 BuildRequires: libsoup-devel >= 2.4
25 BuildRequires: libtool
26 BuildRequires: pkgconfig
27 Requires: glib2 >= 1:2.16.0
28 Requires: json-glib >= 0.13.1
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 geocode-glib allows you to do geocoding (going from a place name, to a
33 longitude/latitude pair) and reverse geocoding (finding a place name
36 %description -l pl.UTF-8
37 Ten pakiet umożliwia geokodowanie (kodowanie geograficzne - zamianę
38 nazwy miejsca na parę długość/szerokość geograficzna) oraz odwrotne
39 geokodowanie (odnajdywanie nazwy miejsca na podstawie współrzędnych).
42 Summary: Header files for geocode-glib library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki geocode-glib
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: glib2-devel >= 1:2.16.0
49 Header files for geocode-glib library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki geocode-glib.
55 Summary: Static geocode-glib library
56 Summary(pl.UTF-8): Statyczna biblioteka geocode-glib
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static geocode-glib library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka geocode-glib.
67 Summary: geocode-glib API documentation
68 Summary(pl.UTF-8): Dokumentacja API biblioteki geocode-glib
70 Requires: gtk-doc-common
73 API documentation for geocode-glib library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki geocode-glib.
89 %{__enable_disable apidocs gtk-doc} \
90 --disable-silent-rules \
91 %{__enable_disable static_libs static} \
92 --with-html-dir=%{_gtkdocdir}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
102 rm -rf $RPM_BUILD_ROOT
104 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(644,root,root,755)
109 %doc AUTHORS ChangeLog NEWS README TODO
110 %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0
112 %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
117 %{_libdir}/libgeocode-glib.la
118 %{_includedir}/geocode-glib
119 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
120 %{_pkgconfigdir}/geocode-glib.pc
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libgeocode-glib.a
130 %defattr(644,root,root,755)
131 %{_gtkdocdir}/geocode-glib