]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated to 2.44.14
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  gtk2            # legacy gtk+2 support
5 %bcond_without  static_libs     # don't build static library
6 %bcond_without  vala            # Vala API (vala up to 0.38.x already contains librsvg-2.0.vapi)
7
8 %define         mver    2.44
9 %define         pver    14
10 Summary:        A Raph's Library for Rendering SVG Data
11 Summary(pl.UTF-8):      Biblioteka Raph's SVG do renderowania danych SVG
12 Summary(pt_BR.UTF-8):   Biblioteca SVG
13 Summary(ru.UTF-8):      SVG библиотека
14 Summary(uk.UTF-8):      SVG бібліотека
15 Name:           librsvg
16 Version:        %{mver}.%{pver}
17 Release:        1
18 Epoch:          1
19 License:        LGPL v2+
20 Group:          X11/Libraries
21 Source0:        http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
22 # Source0-md5:  7570d139148f3554fa60fb2a0ecfc4f8
23 Source1:        rsvg
24 Patch0:         x32.patch
25 Patch1:         %{name}-docbook5.patch
26 Patch2:         %{name}-gtkdoc.patch
27 URL:            http://librsvg.sourceforge.net/
28 BuildRequires:  autoconf >= 2.50
29 BuildRequires:  automake >= 1:1.9
30 BuildRequires:  cairo-devel >= 1.15.12
31 BuildRequires:  cargo
32 BuildRequires:  docbook-dtd5-xml
33 # pkgconfig(freetype) >= 20.0.14
34 BuildRequires:  freetype-devel >= 1:2.8
35 BuildRequires:  gdk-pixbuf2-devel >= 2.20
36 BuildRequires:  glib2-devel >= 1:2.48.0
37 BuildRequires:  gobject-introspection-devel >= 0.10.8
38 %{?with_gtk2:BuildRequires:     gtk+2-devel >= 2:2.16.0}
39 BuildRequires:  gtk+3-devel >= 3.10.0
40 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.13}
41 %{?with_apidocs:BuildRequires:  gtk-doc-automake >= 1.13}
42 BuildRequires:  libcroco-devel >= 0.6.1
43 BuildRequires:  libtool >= 2:2.0
44 BuildRequires:  libxml2-devel >= 1:2.9.0
45 BuildRequires:  pango-devel >= 1:1.38.0
46 BuildRequires:  pkgconfig
47 BuildRequires:  rpm-pythonprov
48 BuildRequires:  rust >= 1.27
49 BuildRequires:  sed >= 4.0
50 BuildRequires:  tar >= 1:1.22
51 %{?with_vala:BuildRequires:     vala >= 2:0.18}
52 BuildRequires:  xz
53 Requires(post,postun):  /sbin/ldconfig
54 Requires:       cairo >= 1.15.12
55 Requires:       freetype >= 1:2.8
56 Requires:       gdk-pixbuf2 >= 2.20
57 Requires:       glib2 >= 1:2.48.0
58 Requires:       libcroco >= 0.6.1
59 Requires:       libxml2 >= 1:2.9.0
60 Requires:       pango >= 1:1.38.0
61 Obsoletes:      browser-plugin-librsvg
62 Obsoletes:      librsvg-gtk+2
63 Obsoletes:      librsvg0
64 Obsoletes:      mozilla-plugin-rsvg
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 # see gdk-pixbuf2.spec for source of these ifdefs
68 %if "%{_lib}" != "lib"
69 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
70 %define         pqext           -%{libext}
71 %else
72 %define         pqext           %{nil}
73 %endif
74
75 %description
76 An library to render SVG (scalable vector graphics), databased upon
77 libart.
78
79 %description -l pl.UTF-8
80 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
81 na kodzie libart.
82
83 %description -l ru.UTF-8
84 Библиотека SVG, базирующаяся на libart.
85
86 %description -l uk.UTF-8
87 Бібліотека SVG, базована на libart.
88
89 %package devel
90 Summary:        Include files for developing with librsvg
91 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
92 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
93 Summary(ru.UTF-8):      Библиотечные линки и файлы заголовков для разработки с librsvg
94 Summary(uk.UTF-8):      Бібліотечні лінки та файли заголовків для розробки з librsvg
95 Group:          X11/Development/Libraries
96 Requires:       %{name} = %{epoch}:%{version}-%{release}
97 Requires:       cairo-devel >= 1.15.12
98 Requires:       freetype-devel >= 1:2.8
99 Requires:       gdk-pixbuf2-devel >= 2.20
100 Requires:       glib2-devel >= 1:2.48.0
101 Requires:       gtk+3-devel >= 3.10.0
102 Requires:       libcroco-devel >= 0.6.1
103 Requires:       libxml2-devel >= 1:2.9.0
104 Requires:       pango-devel >= 1:1.38.0
105 Obsoletes:      librsvg0-devel
106
107 %description devel
108 This package provides the necessary development libraries and include
109 files to allow you to develop with librsvg.
110
111 %description devel -l pl.UTF-8
112 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
113 z wykorzystaniem librsvg.
114
115 %description devel -l pt_BR.UTF-8
116 Este pacote contém os arquivos necessários para desenvolver com base
117 na biblioteca librsvg.
118
119 %description devel -l ru.UTF-8
120 Этот пакет содержит необходимые файлы для разработки программ с
121 использованием librsvg.
122
123 %description devel -l uk.UTF-8
124 Цей пакет містить необхідні файли для розробки програм з використанням
125 librsvg.
126
127 %package static
128 Summary:        Static libraries for developing with librsvg
129 Summary(es.UTF-8):      Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
130 Summary(pl.UTF-8):      Statyczne biblioteki librsvg
131 Summary(pt_BR.UTF-8):   Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
132 Group:          X11/Development/Libraries
133 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
134
135 %description static
136 This package contains static version of librsvg libraries.
137
138 %description static -l pl.UTF-8
139 Statyczna wersja bibliotek librsvg.
140
141 %description static -l pt_BR.UTF-8
142 Bibliotecas estáticas para o desenvolvimento de aplicações com
143 librsvg.
144
145 %package apidocs
146 Summary:        librsvg API documentation
147 Summary(pl.UTF-8):      Dokumentacja API biblioteki librsvg
148 Group:          Documentation
149 Requires:       gtk-doc-common
150 %if "%{_rpmversion}" >= "5"
151 BuildArch:      noarch
152 %endif
153
154 %description apidocs
155 librsvg API documentation.
156
157 %description apidocs -l pl.UTF-8
158 Dokumentacja API biblioteki librsvg.
159
160 %package -n vala-librsvg
161 Summary:        Vala API for librsvg library
162 Summary(pl.UTF-8):      API języka Vala do biblioteki librsvg
163 Group:          Development/Libraries
164 Requires:       vala >= 2:0.40
165
166 %description -n vala-librsvg
167 Vala API for librsvg library.
168
169 %description -n vala-librsvg -l pl.UTF-8
170 API języka Vala do biblioteki librsvg.
171
172 %package gtk+3
173 Summary:        librsvg/GTK+3 based SVG viewer
174 Summary(pl.UTF-8):      Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3
175 Group:          X11/Applications/Graphics
176 Requires:       %{name} = %{epoch}:%{version}-%{release}
177 Requires:       gtk+3 >= 3.10.0
178
179 %description gtk+3
180 librsvg/GTK+3 based SVG viewer.
181
182 %description gtk+3 -l pl.UTF-8
183 Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3.
184
185 %prep
186 %setup -q
187 %patch0 -p1
188 %patch1 -p1
189 %patch2 -p1
190
191 %if %{without apidocs}
192 echo 'CLEANFILES=' > gtk-doc.make
193 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
194 %endif
195
196 %build
197 %{?with_apidocs:%{__gtkdocize}}
198 %{__libtoolize}
199 %{__aclocal} -I m4
200 %{__autoconf}
201 %{__autoheader}
202 %{__automake}
203 %configure \
204         %{__enable_disable apidocs gtk-doc} \
205         --enable-introspection \
206         --disable-silent-rules \
207         %{__enable_disable static_libs static} \
208         %{?with_vala:--enable-vala} \
209         --with-html-dir=%{_gtkdocdir}/%{name}
210 %{__make}
211
212 %install
213 rm -rf $RPM_BUILD_ROOT
214
215 %{__make} install \
216         DESTDIR=$RPM_BUILD_ROOT \
217         pkgconfigdir=%{_pkgconfigdir}
218
219 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
220 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
221
222 %{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
223
224 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229 %post
230 /sbin/ldconfig
231 umask 022
232 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
233
234 %postun
235 /sbin/ldconfig
236 umask 022
237 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
238         %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
239 fi
240
241 %files
242 %defattr(644,root,root,755)
243 %doc AUTHORS NEWS
244 %attr(755,root,root) %{_bindir}/rsvg
245 %attr(755,root,root) %{_bindir}/rsvg-convert
246 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
247 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
248 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
249 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
250 %{_datadir}/thumbnailers/librsvg.thumbnailer
251 %{_mandir}/man1/rsvg-convert.1*
252
253 %files devel
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_libdir}/librsvg-2.so
256 %{_includedir}/librsvg-2.0
257 %{_datadir}/gir-1.0/Rsvg-2.0.gir
258 %{_pkgconfigdir}/librsvg-2.0.pc
259
260 %if %{with static_libs}
261 %files static
262 %defattr(644,root,root,755)
263 %{_libdir}/librsvg-2.a
264 %endif
265
266 %if %{with apidocs}
267 %files apidocs
268 %defattr(644,root,root,755)
269 %{_gtkdocdir}/%{name}
270 %endif
271
272 %if %{with vala}
273 %files -n vala-librsvg
274 %defattr(644,root,root,755)
275 %{_datadir}/vala/vapi/librsvg-2.0.vapi
276 %endif
277
278 %files gtk+3
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_bindir}/rsvg-view
281 %attr(755,root,root) %{_bindir}/rsvg-view-3
This page took 0.064544 seconds and 4 git commands to generate.