]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
726712ccb5bd6342fdeb9011f263ce92d63d5b72
[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.10.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://download.gnome.org/sources/geocode-glib/3.10/%{name}-%{version}.tar.xz
14 # Source0-md5:  0f20b52196bd86294d093f97397a37db
15 URL:            https://developer.gnome.org/geocode-glib/
16 BuildRequires:  autoconf >= 2.63
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  gettext-devel >= 0.17
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:  intltool >= 0.41.0
24 BuildRequires:  json-glib-devel >= 0.16.2
25 BuildRequires:  libsoup-devel >= 2.4
26 BuildRequires:  libtool >= 2:2.2
27 BuildRequires:  pkgconfig
28 BuildRequires:  tar >= 1:1.22
29 BuildRequires:  xz
30 Requires:       glib2 >= 1:2.34
31 Requires:       json-glib >= 0.16.2
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
75 %description apidocs
76 API documentation for geocode-glib library.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki geocode-glib.
80
81 %prep
82 %setup -q
83
84 %build
85 %{__intltoolize}
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         %{__enable_disable apidocs gtk-doc} \
93         --disable-silent-rules \
94         %{__enable_disable static_libs static} \
95         --with-html-dir=%{_gtkdocdir}
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog NEWS README TODO
113 %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0
115 %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
120 %{_libdir}/libgeocode-glib.la
121 %{_includedir}/geocode-glib-1.0
122 %{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
123 %{_pkgconfigdir}/geocode-glib-1.0.pc
124
125 %if %{with static_libs}
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libgeocode-glib.a
129 %endif
130
131 %if %{with apidocs}
132 %files apidocs
133 %defattr(644,root,root,755)
134 %{_gtkdocdir}/geocode-glib-1.0
135 %endif
This page took 0.0473 seconds and 2 git commands to generate.