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: gdk-pixbuf2-devel >= 2.0
26 BuildRequires: glib2-devel >= 1:2.24.0
27 BuildRequires: gtk+2-devel >= 2:2.16.0
28 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
29 %{?with_apidocs:BuildRequires: gtk-doc-automake}
30 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
31 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
32 BuildRequires: libtool
33 BuildRequires: libxml2-devel >= 1:2.6.31
34 BuildRequires: pkgconfig
35 BuildRequires: rpm-pythonprov
36 BuildRequires: sed >= 4.0
37 Requires(post,postun): /sbin/ldconfig
38 Requires(post,postun): gdk-pixbuf2
39 Requires: glib2 >= 1:2.24.0
40 Requires: gdk-pixbuf2 >= 2.0
41 Requires: gtk+2 >= 2:2.16.0
42 %{?with_libcroco:Requires: libcroco >= 0.6.1}
43 %{?with_libgsf:Requires: libgsf >= 1.14.4}
44 Requires: libxml2 >= 1:2.6.31
45 Obsoletes: browser-plugin-librsvg
47 Obsoletes: mozilla-plugin-rsvg
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 # see gtk+2.spec for source of these ifdefs
51 %if "%{_lib}" != "lib"
52 %define libext %(lib="%{_lib}"; echo ${lib#lib})
53 %define pqext -%{libext}
59 An library to render SVG (scalable vector graphics), databased upon
62 %description -l pl.UTF-8
63 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
66 %description -l ru.UTF-8
67 Библиотека SVG, базирующаяся на libart.
69 %description -l uk.UTF-8
70 Бібліотека SVG, базована на libart.
73 Summary: Include files for developing with librsvg
74 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
75 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
76 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
77 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
78 Group: X11/Development/Libraries
79 Requires: %{name} = %{epoch}:%{version}-%{release}
80 Requires: glib2-devel >= 1:2.24.0
81 Requires: gdk-pixbuf2-devel >= 2.0
82 Requires: gtk+2-devel >= 2:2.16.0
83 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
84 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
85 Requires: libxml2-devel >= 1:2.6.31
86 Obsoletes: librsvg0-devel
89 This package provides the necessary development libraries and include
90 files to allow you to develop with librsvg.
92 %description devel -l pl.UTF-8
93 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
94 z wykorzystaniem librsvg.
96 %description devel -l pt_BR.UTF-8
97 Este pacote contém os arquivos necessários para desenvolver com base
98 na biblioteca librsvg.
100 %description devel -l ru.UTF-8
101 Этот пакет содержит необходимые файлы для разработки программ с
102 использованием librsvg.
104 %description devel -l uk.UTF-8
105 Цей пакет містить необхідні файли для розробки програм з використанням
109 Summary: Static libraries for developing with librsvg
110 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
111 Summary(pl.UTF-8): Statyczne biblioteki librsvg
112 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
113 Group: X11/Development/Libraries
114 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
117 This package contains static version of librsvg libraries.
119 %description static -l pl.UTF-8
120 Statyczna wersja bibliotek librsvg.
122 %description static -l pt_BR.UTF-8
123 Bibliotecas estáticas para o desenvolvimento de aplicações com
127 Summary: librsvg API documentation
128 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
130 Requires: gtk-doc-common
133 librsvg API documentation.
135 %description apidocs -l pl.UTF-8
136 Dokumentacja API biblioteki librsvg.
142 echo 'CLEANFILES=' > gtk-doc.make
143 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
146 %{__sed} -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders%{pqext}/' -i configure.in
149 %{?with_apidocs:%{__gtkdocize}}
156 --disable-silent-rules \
157 %{!?with_static_libs:--disable-static} \
158 %{?with_apidocs:--enable-gtk-doc} \
159 %{!?with_libcroco:--without-croco} \
160 %{!?with_libgsf:--without-svgz} \
161 --with-html-dir=%{_gtkdocdir}/%{name}
165 rm -rf $RPM_BUILD_ROOT
168 DESTDIR=$RPM_BUILD_ROOT \
169 pkgconfigdir=%{_pkgconfigdir}
171 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
172 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
175 rm -rf $RPM_BUILD_ROOT
180 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
186 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
187 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
191 %defattr(644,root,root,755)
192 %doc ChangeLog AUTHORS NEWS
193 %attr(755,root,root) %{_bindir}/rsvg
194 %attr(755,root,root) %{_bindir}/rsvg-convert
195 %attr(755,root,root) %{_bindir}/rsvg-view
196 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
197 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
198 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
199 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
200 %{_datadir}/themes/bubble
201 %{_mandir}/man1/rsvg.1*
202 %{_pixmapsdir}/svg-viewer.svg
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/librsvg-2.so
207 %{_libdir}/librsvg-2.la
208 %{_pkgconfigdir}/librsvg-2.0.pc
209 %{_includedir}/librsvg-2.0
211 %if %{with static_libs}
213 %defattr(644,root,root,755)
214 %{_libdir}/librsvg-2.a
219 %defattr(644,root,root,755)
220 %{_gtkdocdir}/%{name}