]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
Update to 3.18.1
[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.18.1
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://download.gnome.org/sources/geocode-glib/3.18/%{name}-%{version}.tar.xz
14 # Source0-md5:  1d294d59bfc05027ccb9ff6708b63491
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.4
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 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
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
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}
48 Requires:       glib2-devel >= 1:2.34
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 %if "%{_rpmversion}" >= "5"
74 BuildArch:      noarch
75 %endif
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
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         %{__enable_disable apidocs gtk-doc} \
94         --disable-silent-rules \
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
117 %{_iconsdir}/gnome/scalable/places/poi-*.svg
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
122 %{_libdir}/libgeocode-glib.la
123 %{_includedir}/geocode-glib-1.0
124 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
125 %{_pkgconfigdir}/geocode-glib-1.0.pc
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)
136 %{_gtkdocdir}/geocode-glib-1.0
137 %endif
This page took 0.097459 seconds and 3 git commands to generate.