2 # TODO: - separate libs subpackage, current scheme conflicts on multilib
5 %bcond_without apidocs # disable gtk-doc
6 %bcond_without libgsf # build without libgsf (used for run-time decompression)
7 %bcond_without libcroco # build without CSS support through libcroco
8 %bcond_without static_libs # don't build static library
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 бібліотека
21 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.32/%{name}-%{version}.tar.bz2
22 # Source0-md5: 4b00d0fee130c936644892c152f42db7
23 URL: http://librsvg.sourceforge.net/
24 BuildRequires: autoconf
25 BuildRequires: automake >= 1:1.9
26 BuildRequires: docbook-dtd412-xml
27 BuildRequires: gdk-pixbuf2-devel >= 2.0
28 BuildRequires: glib2-devel >= 1:2.24.0
29 BuildRequires: gtk+2-devel >= 2:2.16.0
30 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
31 %{?with_apidocs:BuildRequires: gtk-doc-automake}
32 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
33 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
34 BuildRequires: libtool
35 BuildRequires: libxml2-devel >= 1:2.6.31
36 BuildRequires: pkgconfig
37 BuildRequires: rpm-pythonprov
38 BuildRequires: sed >= 4.0
39 Requires(post,postun): /sbin/ldconfig
40 Requires(post,postun): gdk-pixbuf2
41 Requires: gdk-pixbuf2 >= 2.0
42 Requires: glib2 >= 1:2.24.0
43 Requires: gtk+2 >= 2:2.16.0
44 %{?with_libcroco:Requires: libcroco >= 0.6.1}
45 %{?with_libgsf:Requires: libgsf >= 1.14.4}
46 Requires: libxml2 >= 1:2.6.31
47 Obsoletes: browser-plugin-librsvg
49 Obsoletes: mozilla-plugin-rsvg
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 # see gtk+2.spec for source of these ifdefs
53 %if "%{_lib}" != "lib"
54 %define libext %(lib="%{_lib}"; echo ${lib#lib})
55 %define pqext -%{libext}
61 An library to render SVG (scalable vector graphics), databased upon
64 %description -l pl.UTF-8
65 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
68 %description -l ru.UTF-8
69 Библиотека SVG, базирующаяся на libart.
71 %description -l uk.UTF-8
72 Бібліотека SVG, базована на libart.
75 Summary: Include files for developing with librsvg
76 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
77 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
78 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
79 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
80 Group: X11/Development/Libraries
81 Requires: %{name} = %{epoch}:%{version}-%{release}
82 Requires: glib2-devel >= 1:2.24.0
83 Requires: gdk-pixbuf2-devel >= 2.0
84 Requires: gtk+2-devel >= 2:2.16.0
85 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
86 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
87 Requires: libxml2-devel >= 1:2.6.31
88 Obsoletes: librsvg0-devel
91 This package provides the necessary development libraries and include
92 files to allow you to develop with librsvg.
94 %description devel -l pl.UTF-8
95 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
96 z wykorzystaniem librsvg.
98 %description devel -l pt_BR.UTF-8
99 Este pacote contém os arquivos necessários para desenvolver com base
100 na biblioteca librsvg.
102 %description devel -l ru.UTF-8
103 Этот пакет содержит необходимые файлы для разработки программ с
104 использованием librsvg.
106 %description devel -l uk.UTF-8
107 Цей пакет містить необхідні файли для розробки програм з використанням
111 Summary: Static libraries for developing with librsvg
112 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
113 Summary(pl.UTF-8): Statyczne biblioteki librsvg
114 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
115 Group: X11/Development/Libraries
116 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
119 This package contains static version of librsvg libraries.
121 %description static -l pl.UTF-8
122 Statyczna wersja bibliotek librsvg.
124 %description static -l pt_BR.UTF-8
125 Bibliotecas estáticas para o desenvolvimento de aplicações com
129 Summary: librsvg API documentation
130 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
132 Requires: gtk-doc-common
135 librsvg API documentation.
137 %description apidocs -l pl.UTF-8
138 Dokumentacja API biblioteki librsvg.
144 echo 'CLEANFILES=' > gtk-doc.make
145 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
148 %{__sed} -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders%{pqext}/' -i configure.in
151 %{?with_apidocs:%{__gtkdocize}}
158 --disable-silent-rules \
159 %{!?with_static_libs:--disable-static} \
160 %{?with_apidocs:--enable-gtk-doc} \
161 %{!?with_libcroco:--without-croco} \
162 %{!?with_libgsf:--without-svgz} \
163 --with-html-dir=%{_gtkdocdir}/%{name}
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT \
171 pkgconfigdir=%{_pkgconfigdir}
173 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
174 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
175 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
178 rm -rf $RPM_BUILD_ROOT
183 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
188 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
189 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
193 %defattr(644,root,root,755)
194 %doc ChangeLog AUTHORS NEWS
195 %attr(755,root,root) %{_bindir}/rsvg
196 %attr(755,root,root) %{_bindir}/rsvg-convert
197 %attr(755,root,root) %{_bindir}/rsvg-view
198 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
199 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
200 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
201 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
202 %{_datadir}/themes/bubble
203 %{_mandir}/man1/rsvg.1*
204 %{_pixmapsdir}/svg-viewer.svg
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/librsvg-2.so
209 %{_pkgconfigdir}/librsvg-2.0.pc
210 %{_includedir}/librsvg-2.0
212 %if %{with static_libs}
214 %defattr(644,root,root,755)
215 %{_libdir}/librsvg-2.a
220 %defattr(644,root,root,755)
221 %{_gtkdocdir}/%{name}