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
7 Summary: A Raph's Library for Rendering SVG Data
8 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
9 Summary(pt_BR.UTF-8): Biblioteca SVG
10 Summary(ru.UTF-8): SVG библиотека
11 Summary(uk.UTF-8): SVG бібліотека
18 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.22/%{name}-%{version}.tar.bz2
19 # Source0-md5: aae602677ce201b1a0ed6a0c18c207f2
20 URL: http://librsvg.sourceforge.net/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: glib2-devel >= 1:2.16.0
24 BuildRequires: gtk+2-devel >= 2:2.12.8
25 BuildRequires: gtk-doc-automake
26 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
27 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
28 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
29 BuildRequires: libtool
30 BuildRequires: libxml2-devel >= 1:2.6.31
31 BuildRequires: pkgconfig
32 BuildRequires: rpm-pythonprov
33 Requires(post,postun): gtk+2
34 Requires: glib2 >= 1:2.16.0
35 Requires: gtk+2 >= 2:2.12.8
36 %{?with_libcroco:Requires: libcroco >= 0.6.1}
37 %{?with_libgsf:Requires: libgsf >= 1.14.4}
38 Requires: libxml2 >= 1:2.6.31
39 Obsoletes: browser-plugin-librsvg
40 Obsoletes: mozilla-plugin-rsvg
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 # see gtk+2.spec for source of these ifdefs
45 %if "%{_lib}" != "lib"
46 %define libext %(lib="%{_lib}"; echo ${lib#lib})
47 %define gtketcdir /etc/gtk%{libext}-2.0
48 %define pqext -%{libext}
50 %define gtketcdir /etc/gtk-2.0
55 An library to render SVG (scalable vector graphics), databased upon
58 %description -l pl.UTF-8
59 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
62 %description -l ru.UTF-8
63 Библиотека SVG, базирующаяся на libart.
65 %description -l uk.UTF-8
66 Бібліотека SVG, базована на libart.
69 Summary: Include files for developing with librsvg
70 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
71 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
72 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
73 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
74 Group: X11/Development/Libraries
75 Requires: %{name} = %{epoch}:%{version}-%{release}
76 Requires: glib2-devel >= 1:2.16.0
77 Requires: gtk+2-devel >= 2:2.12.8
78 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
79 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
80 Requires: libxml2-devel >= 1:2.6.31
81 Obsoletes: librsvg0-devel
84 This package provides the necessary development libraries and include
85 files to allow you to develop with librsvg.
87 %description devel -l pl.UTF-8
88 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
89 z wykorzystaniem librsvg.
91 %description devel -l pt_BR.UTF-8
92 Este pacote contém os arquivos necessários para desenvolver com base
93 na biblioteca librsvg.
95 %description devel -l ru.UTF-8
96 Этот пакет содержит необходимые файлы для разработки программ с
97 использованием librsvg.
99 %description devel -l uk.UTF-8
100 Цей пакет містить необхідні файли для розробки програм з використанням
104 Summary: Static libraries for developing with librsvg
105 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
106 Summary(pl.UTF-8): Statyczne biblioteki librsvg
107 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
108 Group: X11/Development/Libraries
109 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
112 This package contains static version of librsvg libraries.
114 %description static -l pl.UTF-8
115 Statyczna wersja bibliotek librsvg.
117 %description static -l pt_BR.UTF-8
118 Bibliotecas estáticas para o desenvolvimento de aplicações com
122 Summary: librsvg API documentation
123 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
125 Requires: gtk-doc-common
128 librsvg API documentation.
130 %description apidocs -l pl.UTF-8
131 Dokumentacja API biblioteki librsvg.
143 --disable-mozilla-plugin \
144 %{?with_apidocs:--enable-gtk-doc} \
145 %{!?with_libcroco:--without-croco} \
146 %{!?with_libgsf:--without-svgz} \
147 --with-html-dir=%{_gtkdocdir}/%{name}
151 rm -rf $RPM_BUILD_ROOT
154 DESTDIR=$RPM_BUILD_ROOT \
155 pkgconfigdir=%{_pkgconfigdir}
157 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
160 rm -rf $RPM_BUILD_ROOT
165 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
170 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
173 %defattr(644,root,root,755)
174 %doc ChangeLog AUTHORS NEWS
175 %attr(755,root,root) %{_bindir}/rsvg
176 %attr(755,root,root) %{_bindir}/rsvg-convert
177 %attr(755,root,root) %{_bindir}/rsvg-view
178 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
180 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
181 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/svg_loader.so
182 %{_mandir}/man1/rsvg.1*
183 %{_pixmapsdir}/svg-viewer.svg
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/librsvg-2.so
188 %{_libdir}/librsvg-2.la
189 %{_pkgconfigdir}/librsvg-2.0.pc
190 %{_includedir}/librsvg-2
193 %defattr(644,root,root,755)
194 %{_libdir}/librsvg-2.a
198 %defattr(644,root,root,755)
199 %{_gtkdocdir}/%{name}