]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
- updated to 0.99.3
[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:        0.99.3
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://download.gnome.org/sources/geocode-glib/0.99/%{name}-%{version}.tar.xz
14 # Source0-md5:  8b813cf1d5af858b557cb9ce2c0f2833
15 Patch0:         %{name}-link.patch
16 URL:            https://developer.gnome.org/geocode-glib/
17 BuildRequires:  autoconf >= 2.63
18 BuildRequires:  automake >= 1:1.11
19 BuildRequires:  gettext-devel >= 0.17
20 BuildRequires:  glib2-devel >= 1:2.34
21 BuildRequires:  gnome-common
22 BuildRequires:  gobject-introspection-devel >= 0.6.3
23 BuildRequires:  gtk-doc >= 1.13
24 BuildRequires:  intltool >= 0.41.0
25 BuildRequires:  json-glib-devel >= 0.14
26 BuildRequires:  libsoup-devel >= 2.4
27 BuildRequires:  libtool >= 2:2.2
28 BuildRequires:  pkgconfig
29 BuildRequires:  tar >= 1:1.22
30 BuildRequires:  xz
31 Requires:       glib2 >= 1:2.34
32 Requires:       json-glib >= 0.14
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 geocode-glib allows you to do geocoding (going from a place name, to a
37 longitude/latitude pair) and reverse geocoding (finding a place name
38 from coordinates).
39
40 %description -l pl.UTF-8
41 Ten pakiet umożliwia geokodowanie (kodowanie geograficzne - zamianę
42 nazwy miejsca na parę długość/szerokość geograficzna) oraz odwrotne
43 geokodowanie (odnajdywanie nazwy miejsca na podstawie współrzędnych).
44
45 %package devel
46 Summary:        Header files for geocode-glib library
47 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki geocode-glib
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       glib2-devel >= 1:2.34
51
52 %description devel
53 Header files for geocode-glib library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki geocode-glib.
57
58 %package static
59 Summary:        Static geocode-glib library
60 Summary(pl.UTF-8):      Statyczna biblioteka geocode-glib
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static geocode-glib library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka geocode-glib.
69
70 %package apidocs
71 Summary:        geocode-glib API documentation
72 Summary(pl.UTF-8):      Dokumentacja API biblioteki geocode-glib
73 Group:          Documentation
74 Requires:       gtk-doc-common
75
76 %description apidocs
77 API documentation for geocode-glib library.
78
79 %description apidocs -l pl.UTF-8
80 Dokumentacja API biblioteki geocode-glib.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__intltoolize}
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
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
137 %endif
This page took 0.076121 seconds and 3 git commands to generate.