]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
fb98f292c12650fbf1e80e9c9e1e9e5a807cefec
[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.14.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://download.gnome.org/sources/geocode-glib/3.14/%{name}-%{version}.tar.xz
14 # Source0-md5:  c8926a2e05f5c7039c8873f008ae6bfe
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
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
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         %{__enable_disable apidocs gtk-doc} \
91         --disable-silent-rules \
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
114 %{_iconsdir}/gnome/scalable/places/poi-*.svg
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
119 %{_libdir}/libgeocode-glib.la
120 %{_includedir}/geocode-glib-1.0
121 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
122 %{_pkgconfigdir}/geocode-glib-1.0.pc
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)
133 %{_gtkdocdir}/geocode-glib-1.0
134 %endif
This page took 0.057646 seconds and 2 git commands to generate.