]>
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 |
ac65102c | 9 | Version: 3.20.0 |
66638f4e | 10 | Release: 1 |
9a70b753 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
ac65102c MB |
13 | Source0: http://download.gnome.org/sources/geocode-glib/3.20/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 0c6f87c5086004585f433478d9caf155 | |
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 |
ac65102c | 24 | BuildRequires: libsoup-devel >= 2.42 |
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 |
ac65102c | 31 | Requires: libsoup >= 2.42 |
9a70b753 MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | geocode-glib allows you to do geocoding (going from a place name, to a | |
36 | longitude/latitude pair) and reverse geocoding (finding a place name | |
37 | from coordinates). | |
38 | ||
e78f520d JB |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet umożliwia geokodowanie (kodowanie geograficzne - zamianę | |
41 | nazwy miejsca na parę długość/szerokość geograficzna) oraz odwrotne | |
42 | geokodowanie (odnajdywanie nazwy miejsca na podstawie współrzędnych). | |
43 | ||
9a70b753 MB |
44 | %package devel |
45 | Summary: Header files for geocode-glib library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki geocode-glib | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
86cb3a70 | 49 | Requires: glib2-devel >= 1:2.34 |
9a70b753 MB |
50 | |
51 | %description devel | |
52 | Header files for geocode-glib library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki geocode-glib. | |
56 | ||
57 | %package static | |
58 | Summary: Static geocode-glib library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka geocode-glib | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static geocode-glib library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka geocode-glib. | |
68 | ||
69 | %package apidocs | |
70 | Summary: geocode-glib API documentation | |
71 | Summary(pl.UTF-8): Dokumentacja API biblioteki geocode-glib | |
72 | Group: Documentation | |
73 | Requires: gtk-doc-common | |
5ca249d2 ER |
74 | %if "%{_rpmversion}" >= "5" |
75 | BuildArch: noarch | |
76 | %endif | |
9a70b753 MB |
77 | |
78 | %description apidocs | |
79 | API documentation for geocode-glib library. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API biblioteki geocode-glib. | |
83 | ||
84 | %prep | |
85 | %setup -q | |
86 | ||
87 | %build | |
9a70b753 MB |
88 | %{__libtoolize} |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
91 | %{__autoheader} | |
92 | %{__automake} | |
93 | %configure \ | |
94 | %{__enable_disable apidocs gtk-doc} \ | |
e78f520d | 95 | --disable-silent-rules \ |
9a70b753 MB |
96 | %{__enable_disable static_libs static} \ |
97 | --with-html-dir=%{_gtkdocdir} | |
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc AUTHORS ChangeLog NEWS README TODO | |
115 | %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0 | |
117 | %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib | |
01368b71 | 118 | %{_iconsdir}/gnome/scalable/places/poi-*.svg |
9a70b753 MB |
119 | |
120 | %files devel | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{_libdir}/libgeocode-glib.so | |
123 | %{_libdir}/libgeocode-glib.la | |
86cb3a70 | 124 | %{_includedir}/geocode-glib-1.0 |
9a70b753 | 125 | %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir |
86cb3a70 | 126 | %{_pkgconfigdir}/geocode-glib-1.0.pc |
9a70b753 MB |
127 | |
128 | %if %{with static_libs} | |
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libgeocode-glib.a | |
132 | %endif | |
133 | ||
134 | %if %{with apidocs} | |
135 | %files apidocs | |
136 | %defattr(644,root,root,755) | |
79096ff4 | 137 | %{_gtkdocdir}/geocode-glib-1.0 |
9a70b753 | 138 | %endif |