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 gnomeprint # build without gnome-print support in viewer
7 %bcond_without gnomevfs # build without gnome-vfs support
8 %bcond_without gnome # disable gnomeprint and gnomevfs
11 %undefine with_gnomeprint
12 %undefine with_gnomevfs
14 Summary: A Raph's Library for Rendering SVG Data
15 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
16 Summary(pt_BR.UTF-8): Biblioteca SVG
17 Summary(ru.UTF-8): SVG библиотека
18 Summary(uk.UTF-8): SVG бібліотека
25 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.18/%{name}-%{version}.tar.bz2
26 # Source0-md5: ab250b52cffb436e76f763e72f58e03d
27 URL: http://librsvg.sourceforge.net/
28 BuildRequires: autoconf
29 BuildRequires: automake
30 BuildRequires: cairo-devel >= 1.2.4
31 BuildRequires: glib2-devel >= 1:2.12.13
32 BuildRequires: gtk+2-devel >= 2:2.10.14
33 BuildRequires: gtk-doc-automake
34 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
35 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.18.0}
36 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
37 %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.18.0}
38 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
39 BuildRequires: libtool
40 BuildRequires: libxml2-devel >= 1:2.6.28
41 BuildRequires: pkgconfig
42 BuildRequires: rpm-pythonprov
43 Requires(post,postun): gtk+2
44 Requires: cairo >= 1.2.4
45 Requires: glib2 >= 1:2.12.13
46 Requires: gtk+2 >= 2:2.10.14
47 %{?with_libcroco:Requires: libcroco >= 0.6.1}
48 %{?with_libgsf:Requires: libgsf >= 1.14.4}
49 Requires: libxml2 >= 1:2.6.28
50 Obsoletes: browser-plugin-librsvg
51 Obsoletes: mozilla-plugin-rsvg
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 An library to render SVG (scalable vector graphics), databased upon libart.
58 %description -l pl.UTF-8
59 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
62 %description -l pt_BR.UTF-8
63 Biblioteca de Extensão da Eazel.
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: Development/Libraries
78 Requires: %{name} = %{epoch}:%{version}-%{release}
79 Requires: glib2 >= 1:2.12.13
80 %{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.18.0}
81 Requires: gtk+2-devel >= 2:2.10.14
82 Requires: libart_lgpl-devel >= 2.3.17
83 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
84 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
85 Requires: libxml2-devel >= 2.6.28
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: 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
135 %{!?with_gnomevfs:--disable-gnome-vfs} \
136 %{!?with_gnomeprint:--disable-gnome-print} \
137 --disable-mozilla-plugin \
138 %{?with_apidocs:--enable-gtk-doc} \
139 %{!?with_libcroco:--without-croco} \
140 %{!?with_libgsf:--without-svgz} \
141 --with-html-dir=%{_gtkdocdir}/%{name}
145 rm -rf $RPM_BUILD_ROOT
148 DESTDIR=$RPM_BUILD_ROOT \
149 pkgconfigdir=%{_pkgconfigdir}
151 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
154 rm -rf $RPM_BUILD_ROOT
159 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
164 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
167 %defattr(644,root,root,755)
168 %doc ChangeLog AUTHORS NEWS
169 %attr(755,root,root) %{_bindir}/rsvg*
170 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
171 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
172 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
173 %{_mandir}/man1/rsvg.1*
174 %{_pixmapsdir}/svg-viewer.svg
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/librsvg-2.so
179 %{_libdir}/librsvg-2.la
180 %{_pkgconfigdir}/librsvg-2.0.pc
181 %{_includedir}/librsvg-2
182 %{_gtkdocdir}/%{name}
185 %defattr(644,root,root,755)
186 %{_libdir}/librsvg-2.a