]>
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 | |
5 | # | |
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 |
101d51d1 | 9 | Version: 3.12.2 |
9a70b753 MB |
10 | Release: 1 |
11 | License: LGPL v2+ | |
12 | Group: Libraries | |
01368b71 | 13 | Source0: http://download.gnome.org/sources/geocode-glib/3.12/%{name}-%{version}.tar.xz |
101d51d1 | 14 | # Source0-md5: 97d17f903322e3e4623e8c522ac6bae2 |
9a0a3d38 | 15 | URL: https://developer.gnome.org/geocode-glib/ |
86cb3a70 JB |
16 | BuildRequires: autoconf >= 2.63 |
17 | BuildRequires: automake >= 1:1.11 | |
01368b71 | 18 | BuildRequires: gettext-devel >= 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 | |
73 | ||
74 | %description apidocs | |
75 | API documentation for geocode-glib library. | |
76 | ||
77 | %description apidocs -l pl.UTF-8 | |
78 | Dokumentacja API biblioteki geocode-glib. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
9a70b753 MB |
84 | %{__libtoolize} |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | %{__enable_disable apidocs gtk-doc} \ | |
e78f520d | 91 | --disable-silent-rules \ |
9a70b753 MB |
92 | %{__enable_disable static_libs static} \ |
93 | --with-html-dir=%{_gtkdocdir} | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files | |
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 | |
01368b71 | 114 | %{_iconsdir}/gnome/scalable/places/poi-*.svg |
9a70b753 MB |
115 | |
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libgeocode-glib.so | |
119 | %{_libdir}/libgeocode-glib.la | |
86cb3a70 | 120 | %{_includedir}/geocode-glib-1.0 |
9a70b753 | 121 | %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir |
86cb3a70 | 122 | %{_pkgconfigdir}/geocode-glib-1.0.pc |
9a70b753 MB |
123 | |
124 | %if %{with static_libs} | |
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libgeocode-glib.a | |
128 | %endif | |
129 | ||
130 | %if %{with apidocs} | |
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
79096ff4 | 133 | %{_gtkdocdir}/geocode-glib-1.0 |
9a70b753 | 134 | %endif |