]>
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 MB |
8 | Name: geocode-glib |
9 | Version: 0.99.0 | |
10 | Release: 1 | |
11 | License: LGPL v2+ | |
12 | Group: Libraries | |
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 | |
e78f520d | 24 | BuildRequires: libsoup-devel >= 2.4 |
9a70b753 MB |
25 | BuildRequires: libtool |
26 | BuildRequires: pkgconfig | |
e78f520d JB |
27 | Requires: glib2 >= 1:2.16.0 |
28 | Requires: json-glib >= 0.13.1 | |
9a70b753 MB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
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 | |
34 | from coordinates). | |
35 | ||
e78f520d JB |
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). | |
40 | ||
9a70b753 MB |
41 | %package devel |
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} | |
e78f520d | 46 | Requires: glib2-devel >= 1:2.16.0 |
9a70b753 MB |
47 | |
48 | %description devel | |
49 | Header files for geocode-glib library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki geocode-glib. | |
53 | ||
54 | %package static | |
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} | |
59 | ||
60 | %description static | |
61 | Static geocode-glib library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka geocode-glib. | |
65 | ||
66 | %package apidocs | |
67 | Summary: geocode-glib API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki geocode-glib | |
69 | Group: Documentation | |
70 | Requires: gtk-doc-common | |
71 | ||
72 | %description apidocs | |
73 | API documentation for geocode-glib library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki geocode-glib. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
82 | %{__intltoolize} | |
83 | %{__libtoolize} | |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
88 | %configure \ | |
89 | %{__enable_disable apidocs gtk-doc} \ | |
e78f520d | 90 | --disable-silent-rules \ |
9a70b753 MB |
91 | %{__enable_disable static_libs static} \ |
92 | --with-html-dir=%{_gtkdocdir} | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %files | |
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 | |
113 | ||
114 | %files devel | |
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 | |
121 | ||
122 | %if %{with static_libs} | |
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libgeocode-glib.a | |
126 | %endif | |
127 | ||
128 | %if %{with apidocs} | |
129 | %files apidocs | |
130 | %defattr(644,root,root,755) | |
131 | %{_gtkdocdir}/geocode-glib | |
132 | %endif |