]>
Commit | Line | Data |
---|---|---|
9a70b753 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5ca249d2 | 5 | |
9a70b753 | 6 | Summary: GLib geocoding library that uses the Yahoo! Place Finder service |
e78f520d | 7 | Summary(pl.UTF-8): Biblioteka GLib do geokodowania wykorzystująca serwis Yahoo! Place Finder |
9a70b753 | 8 | Name: geocode-glib |
57fb2dde | 9 | Version: 3.18.2 |
66638f4e | 10 | Release: 1 |
9a70b753 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
cfd9b350 | 13 | Source0: http://download.gnome.org/sources/geocode-glib/3.18/%{name}-%{version}.tar.xz |
57fb2dde | 14 | # Source0-md5: 0aeb9fc7360d212f27ee7a16943b5346 |
9a0a3d38 | 15 | URL: https://developer.gnome.org/geocode-glib/ |
86cb3a70 JB |
16 | BuildRequires: autoconf >= 2.63 |
17 | BuildRequires: automake >= 1:1.11 | |
3ded54b9 | 18 | BuildRequires: gettext-tools >= 0.18 |
86cb3a70 | 19 | BuildRequires: glib2-devel >= 1:2.34 |
9a70b753 MB |
20 | BuildRequires: gnome-common |
21 | BuildRequires: gobject-introspection-devel >= 0.6.3 | |
86cb3a70 | 22 | BuildRequires: gtk-doc >= 1.13 |
01368b71 | 23 | BuildRequires: json-glib-devel >= 0.99.2 |
e78f520d | 24 | BuildRequires: libsoup-devel >= 2.4 |
86cb3a70 | 25 | BuildRequires: libtool >= 2:2.2 |
9a70b753 | 26 | BuildRequires: pkgconfig |
86cb3a70 JB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
29 | Requires: glib2 >= 1:2.34 | |
01368b71 | 30 | Requires: json-glib >= 0.99.2 |
9a70b753 MB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
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 | |
36 | from coordinates). | |
37 | ||
e78f520d JB |
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). | |
42 | ||
9a70b753 MB |
43 | %package devel |
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} | |
86cb3a70 | 48 | Requires: glib2-devel >= 1:2.34 |
9a70b753 MB |
49 | |
50 | %description devel | |
51 | Header files for geocode-glib library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki geocode-glib. | |
55 | ||
56 | %package static | |
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} | |
61 | ||
62 | %description static | |
63 | Static geocode-glib library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka geocode-glib. | |
67 | ||
68 | %package apidocs | |
69 | Summary: geocode-glib API documentation | |
70 | Summary(pl.UTF-8): Dokumentacja API biblioteki geocode-glib | |
71 | Group: Documentation | |
72 | Requires: gtk-doc-common | |
5ca249d2 ER |
73 | %if "%{_rpmversion}" >= "5" |
74 | BuildArch: noarch | |
75 | %endif | |
9a70b753 MB |
76 | |
77 | %description apidocs | |
78 | API documentation for geocode-glib library. | |
79 | ||
80 | %description apidocs -l pl.UTF-8 | |
81 | Dokumentacja API biblioteki geocode-glib. | |
82 | ||
83 | %prep | |
84 | %setup -q | |
85 | ||
86 | %build | |
9a70b753 MB |
87 | %{__libtoolize} |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | %{__enable_disable apidocs gtk-doc} \ | |
e78f520d | 94 | --disable-silent-rules \ |
9a70b753 MB |
95 | %{__enable_disable static_libs static} \ |
96 | --with-html-dir=%{_gtkdocdir} | |
97 | %{__make} | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog NEWS README TODO | |
114 | %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0 | |
116 | %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib | |
01368b71 | 117 | %{_iconsdir}/gnome/scalable/places/poi-*.svg |
9a70b753 MB |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libgeocode-glib.so | |
122 | %{_libdir}/libgeocode-glib.la | |
86cb3a70 | 123 | %{_includedir}/geocode-glib-1.0 |
9a70b753 | 124 | %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir |
86cb3a70 | 125 | %{_pkgconfigdir}/geocode-glib-1.0.pc |
9a70b753 MB |
126 | |
127 | %if %{with static_libs} | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
130 | %{_libdir}/libgeocode-glib.a | |
131 | %endif | |
132 | ||
133 | %if %{with apidocs} | |
134 | %files apidocs | |
135 | %defattr(644,root,root,755) | |
79096ff4 | 136 | %{_gtkdocdir}/geocode-glib-1.0 |
9a70b753 | 137 | %endif |