]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
- release 2
[packages/geocode-glib.git] / geocode-glib.spec
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
7 Summary(pl.UTF-8):      Biblioteka GLib do geokodowania wykorzystująca serwis Yahoo! Place Finder
8 Name:           geocode-glib
9 Version:        3.20.1
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://download.gnome.org/sources/geocode-glib/3.20/%{name}-%{version}.tar.xz
14 # Source0-md5:  4d9a4c666f525b8ae534be865c8b7681
15 URL:            https://developer.gnome.org/geocode-glib/
16 BuildRequires:  autoconf >= 2.63
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  gettext-tools >= 0.18
19 BuildRequires:  glib2-devel >= 1:2.34
20 BuildRequires:  gnome-common
21 BuildRequires:  gobject-introspection-devel >= 0.6.3
22 BuildRequires:  gtk-doc >= 1.13
23 BuildRequires:  json-glib-devel >= 0.99.2
24 BuildRequires:  libsoup-devel >= 2.42
25 BuildRequires:  libtool >= 2:2.2
26 BuildRequires:  pkgconfig
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  xz
29 Requires:       glib2 >= 1:2.34
30 Requires:       json-glib >= 0.99.2
31 Requires:       libsoup >= 2.42
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
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
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}
49 Requires:       glib2-devel >= 1:2.34
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
74 %if "%{_rpmversion}" >= "5"
75 BuildArch:      noarch
76 %endif
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
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__autoheader}
92 %{__automake}
93 %configure \
94         %{__enable_disable apidocs gtk-doc} \
95         --disable-silent-rules \
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
118 %{_iconsdir}/gnome/scalable/places/poi-*.svg
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
123 %{_libdir}/libgeocode-glib.la
124 %{_includedir}/geocode-glib-1.0
125 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
126 %{_pkgconfigdir}/geocode-glib-1.0.pc
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)
137 %{_gtkdocdir}/geocode-glib-1.0
138 %endif
This page took 0.091006 seconds and 3 git commands to generate.