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.22/%{name}-%{version}.tar.bz2
20 # Source0-md5: aae602677ce201b1a0ed6a0c18c207f2
21 URL: http://librsvg.sourceforge.net/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: glib2-devel >= 1:2.16.0
25 BuildRequires: gtk+2-devel >= 2:2.12.8
26 %{?with_apidocs:BuildRequires: gtk-doc-automake}
27 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
28 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
29 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
30 BuildRequires: libtool
31 BuildRequires: libxml2-devel >= 1:2.6.31
32 BuildRequires: pkgconfig
33 BuildRequires: rpm-pythonprov
34 Requires(post,postun): /sbin/ldconfig
35 Requires(post,postun): gtk+2
36 Requires: glib2 >= 1:2.16.0
37 Requires: gtk+2 >= 2:2.12.8
38 %{?with_libcroco:Requires: libcroco >= 0.6.1}
39 %{?with_libgsf:Requires: libgsf >= 1.14.4}
40 Requires: libxml2 >= 1:2.6.31
41 Obsoletes: browser-plugin-librsvg
42 Obsoletes: mozilla-plugin-rsvg
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 # see gtk+2.spec for source of these ifdefs
47 %if "%{_lib}" != "lib"
48 %define libext %(lib="%{_lib}"; echo ${lib#lib})
49 %define gtketcdir /etc/gtk%{libext}-2.0
50 %define pqext -%{libext}
52 %define gtketcdir /etc/gtk-2.0
57 An library to render SVG (scalable vector graphics), databased upon
60 %description -l pl.UTF-8
61 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
64 %description -l ru.UTF-8
65 Библиотека SVG, базирующаяся на libart.
67 %description -l uk.UTF-8
68 Бібліотека SVG, базована на libart.
71 Summary: Include files for developing with librsvg
72 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
73 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
74 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
75 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
76 Group: X11/Development/Libraries
77 Requires: %{name} = %{epoch}:%{version}-%{release}
78 Requires: glib2-devel >= 1:2.16.0
79 Requires: gtk+2-devel >= 2:2.12.8
80 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
81 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
82 Requires: libxml2-devel >= 1:2.6.31
83 Obsoletes: librsvg0-devel
86 This package provides the necessary development libraries and include
87 files to allow you to develop with librsvg.
89 %description devel -l pl.UTF-8
90 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
91 z wykorzystaniem librsvg.
93 %description devel -l pt_BR.UTF-8
94 Este pacote contém os arquivos necessários para desenvolver com base
95 na biblioteca librsvg.
97 %description devel -l ru.UTF-8
98 Этот пакет содержит необходимые файлы для разработки программ с
99 использованием librsvg.
101 %description devel -l uk.UTF-8
102 Цей пакет містить необхідні файли для розробки програм з використанням
106 Summary: Static libraries for developing with librsvg
107 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
108 Summary(pl.UTF-8): Statyczne biblioteki librsvg
109 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
110 Group: X11/Development/Libraries
111 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
114 This package contains static version of librsvg libraries.
116 %description static -l pl.UTF-8
117 Statyczna wersja bibliotek librsvg.
119 %description static -l pt_BR.UTF-8
120 Bibliotecas estáticas para o desenvolvimento de aplicações com
124 Summary: librsvg API documentation
125 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
127 Requires: gtk-doc-common
130 librsvg API documentation.
132 %description apidocs -l pl.UTF-8
133 Dokumentacja API biblioteki librsvg.
139 echo 'CLEANFILES=' > gtk-doc.make
140 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
150 --disable-mozilla-plugin \
151 %{!?with_static_libs:--disable-static} \
152 %{?with_apidocs:--enable-gtk-doc} \
153 %{!?with_libcroco:--without-croco} \
154 %{!?with_libgsf:--without-svgz} \
155 --with-html-dir=%{_gtkdocdir}/%{name}
159 rm -rf $RPM_BUILD_ROOT
162 DESTDIR=$RPM_BUILD_ROOT \
163 pkgconfigdir=%{_pkgconfigdir}
165 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
168 rm -rf $RPM_BUILD_ROOT
173 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
178 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
179 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
183 %defattr(644,root,root,755)
184 %doc ChangeLog AUTHORS NEWS
185 %attr(755,root,root) %{_bindir}/rsvg
186 %attr(755,root,root) %{_bindir}/rsvg-convert
187 %attr(755,root,root) %{_bindir}/rsvg-view
188 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
189 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
190 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
191 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/svg_loader.so
192 %{_mandir}/man1/rsvg.1*
193 %{_pixmapsdir}/svg-viewer.svg
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_libdir}/librsvg-2.so
198 %{_libdir}/librsvg-2.la
199 %{_pkgconfigdir}/librsvg-2.0.pc
200 %{_includedir}/librsvg-2
202 %if %{with static_libs}
204 %defattr(644,root,root,755)
205 %{_libdir}/librsvg-2.a
210 %defattr(644,root,root,755)
211 %{_gtkdocdir}/%{name}