3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without libgsf # build without libgsf (used for run-time decompression)
5 %bcond_without libcroco # build without CSS support through libcroco
6 %bcond_without static_libs # don't build static library
8 Summary: A Raph's Library for Rendering SVG Data
9 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
10 Summary(pt_BR.UTF-8): Biblioteca SVG
11 Summary(ru.UTF-8): SVG библиотека
12 Summary(uk.UTF-8): SVG бібліотека
19 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.32/%{name}-%{version}.tar.bz2
20 # Source0-md5: b015a9bd80143ec876af489d882dc28b
21 URL: http://librsvg.sourceforge.net/
22 BuildRequires: autoconf
23 BuildRequires: automake >= 1:1.9
24 BuildRequires: docbook-dtd412-xml
25 BuildRequires: glib2-devel >= 1:2.24.0
26 BuildRequires: gtk+2-devel >= 2:2.16.0
27 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
28 %{?with_apidocs:BuildRequires: gtk-doc-automake}
29 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
30 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
31 BuildRequires: libtool
32 BuildRequires: libxml2-devel >= 1:2.6.31
33 BuildRequires: pkgconfig
34 BuildRequires: rpm-pythonprov
35 Requires(post,postun): /sbin/ldconfig
36 Requires(post,postun): gdk-pixbuf2
37 Requires: glib2 >= 1:2.24.0
38 Requires: gtk+2 >= 2:2.16.0
39 %{?with_libcroco:Requires: libcroco >= 0.6.1}
40 %{?with_libgsf:Requires: libgsf >= 1.14.4}
41 Requires: libxml2 >= 1:2.6.31
42 Obsoletes: browser-plugin-librsvg
44 Obsoletes: mozilla-plugin-rsvg
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 # see gtk+2.spec for source of these ifdefs
48 %if "%{_lib}" != "lib"
49 %define libext %(lib="%{_lib}"; echo ${lib#lib})
50 %define gtketcdir /etc/gtk%{libext}-2.0
51 %define pqext -%{libext}
53 %define gtketcdir /etc/gtk-2.0
58 An library to render SVG (scalable vector graphics), databased upon
61 %description -l pl.UTF-8
62 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
65 %description -l ru.UTF-8
66 Библиотека SVG, базирующаяся на libart.
68 %description -l uk.UTF-8
69 Бібліотека SVG, базована на libart.
72 Summary: Include files for developing with librsvg
73 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
74 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
75 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
76 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
77 Group: X11/Development/Libraries
78 Requires: %{name} = %{epoch}:%{version}-%{release}
79 Requires: glib2-devel >= 1:2.24.0
80 Requires: gtk+2-devel >= 2:2.16.0
81 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
82 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
83 Requires: libxml2-devel >= 1:2.6.31
84 Obsoletes: librsvg0-devel
87 This package provides the necessary development libraries and include
88 files to allow you to develop with librsvg.
90 %description devel -l pl.UTF-8
91 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
92 z wykorzystaniem librsvg.
94 %description devel -l pt_BR.UTF-8
95 Este pacote contém os arquivos necessários para desenvolver com base
96 na biblioteca librsvg.
98 %description devel -l ru.UTF-8
99 Этот пакет содержит необходимые файлы для разработки программ с
100 использованием librsvg.
102 %description devel -l uk.UTF-8
103 Цей пакет містить необхідні файли для розробки програм з використанням
107 Summary: Static libraries for developing with librsvg
108 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
109 Summary(pl.UTF-8): Statyczne biblioteki librsvg
110 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
111 Group: X11/Development/Libraries
112 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
115 This package contains static version of librsvg libraries.
117 %description static -l pl.UTF-8
118 Statyczna wersja bibliotek librsvg.
120 %description static -l pt_BR.UTF-8
121 Bibliotecas estáticas para o desenvolvimento de aplicações com
125 Summary: librsvg API documentation
126 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
128 Requires: gtk-doc-common
131 librsvg API documentation.
133 %description apidocs -l pl.UTF-8
134 Dokumentacja API biblioteki librsvg.
140 echo 'CLEANFILES=' > gtk-doc.make
141 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
145 %{?with_apidocs:%{__gtkdocize}}
152 --disable-silent-rules \
153 %{!?with_static_libs:--disable-static} \
154 %{?with_apidocs:--enable-gtk-doc} \
155 %{!?with_libcroco:--without-croco} \
156 %{!?with_libgsf:--without-svgz} \
157 --with-html-dir=%{_gtkdocdir}/%{name}
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT \
165 pkgconfigdir=%{_pkgconfigdir}
167 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
168 rm -f $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
171 rm -rf $RPM_BUILD_ROOT
176 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
182 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
183 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
187 %defattr(644,root,root,755)
188 %doc ChangeLog AUTHORS NEWS
189 %attr(755,root,root) %{_bindir}/rsvg
190 %attr(755,root,root) %{_bindir}/rsvg-convert
191 %attr(755,root,root) %{_bindir}/rsvg-view
192 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
193 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
194 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
195 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
196 %{_datadir}/themes/bubble
197 %{_mandir}/man1/rsvg.1*
198 %{_pixmapsdir}/svg-viewer.svg
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_libdir}/librsvg-2.so
203 %{_libdir}/librsvg-2.la
204 %{_pkgconfigdir}/librsvg-2.0.pc
205 %{_includedir}/librsvg-2.0
207 %if %{with static_libs}
209 %defattr(644,root,root,755)
210 %{_libdir}/librsvg-2.a
215 %defattr(644,root,root,755)
216 %{_gtkdocdir}/%{name}