]> git.pld-linux.org Git - packages/geocode-glib.git/blob - geocode-glib.spec
- updated to 3.26.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.26.1
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/geocode-glib/3.26/%{name}-%{version}.tar.xz
14 # Source0-md5:  21094494e66c86368add6a55bf480049
15 URL:            https://developer.gnome.org/geocode-glib/
16 BuildRequires:  gettext-tools >= 0.19.6
17 BuildRequires:  glib2-devel >= 1:2.44
18 BuildRequires:  gobject-introspection-devel >= 0.6.3
19 BuildRequires:  gtk-doc >= 1.13
20 BuildRequires:  json-glib-devel >= 0.99.2
21 BuildRequires:  libsoup-devel >= 2.42
22 BuildRequires:  meson
23 BuildRequires:  ninja >= 1.5
24 BuildRequires:  pkgconfig
25 BuildRequires:  rpmbuild(macros) >= 1.736
26 BuildRequires:  sed >= 4.0
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  xz
29 Requires:       glib2 >= 1:2.44
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.44
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 %if %{with static_libs}
88 %{__sed} -i -e 's/shared_library/library/' geocode-glib/meson.build
89 %endif
90
91 %build
92 %meson build \
93         %{!?with_apidocs:-Denable-gtk-doc=false} \
94         -Denable-installed-tests=false
95
96 %ninja_build -C build
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %ninja_install -C build
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README TODO
112 %attr(755,root,root) %{_libdir}/libgeocode-glib.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libgeocode-glib.so.0
114 %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
115 %{_iconsdir}/gnome/scalable/places/poi-*.svg
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libgeocode-glib.so
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
134 %endif
This page took 0.069567 seconds and 4 git commands to generate.