3 %bcond_without apidocs # disable gtk-doc
4 %bcond_with gtk2 # enable gtk+2
5 %bcond_without libgsf # build without libgsf (used for run-time decompression)
6 %bcond_without libcroco # build without CSS support through libcroco
7 %bcond_without static_libs # don't build static library
13 Summary: A Raph's Library for Rendering SVG Data
14 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
15 Summary(pt_BR.UTF-8): Biblioteca SVG
16 Summary(ru.UTF-8): SVG библиотека
17 Summary(uk.UTF-8): SVG бібліотека
19 Version: %{ver}.%{pver}
24 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{ver}/%{name}-%{version}.tar.xz
25 # Source0-md5: 1e06889f88b42c9ed5c021a5847dfb45
27 URL: http://librsvg.sourceforge.net/
28 BuildRequires: autoconf
29 BuildRequires: automake >= 1:1.9
30 BuildRequires: docbook-dtd412-xml
31 BuildRequires: gdk-pixbuf2-devel >= 2.0
32 BuildRequires: glib2-devel >= 1:2.24.0
33 BuildRequires: gobject-introspection-devel >= 0.18.8
34 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
35 BuildRequires: gtk+3-devel >= 3.0.0
36 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
37 %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
38 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
39 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
40 BuildRequires: libtool
41 BuildRequires: libxml2-devel >= 1:2.6.31
42 BuildRequires: pango-devel >= 1:1.10.0
43 BuildRequires: pkgconfig
44 BuildRequires: rpm-pythonprov
45 BuildRequires: sed >= 4.0
46 BuildRequires: tar >= 1:1.22
48 Requires(post,postun): /sbin/ldconfig
49 Requires(post,postun): gdk-pixbuf2 >= 2.0
50 Requires: gdk-pixbuf2 >= 2.0
51 Requires: glib2 >= 1:2.24.0
52 %{?with_libcroco:Requires: libcroco >= 0.6.1}
53 %{?with_libgsf:Requires: libgsf >= 1.14.4}
54 Requires: libxml2 >= 1:2.6.31
55 Requires: pango >= 1:1.10.0
56 Obsoletes: browser-plugin-librsvg
58 Obsoletes: mozilla-plugin-rsvg
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 # see gdk-pixbuf2.spec for source of these ifdefs
62 %if "%{_lib}" != "lib"
63 %define libext %(lib="%{_lib}"; echo ${lib#lib})
64 %define pqext -%{libext}
70 An library to render SVG (scalable vector graphics), databased upon
73 %description -l pl.UTF-8
74 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
77 %description -l ru.UTF-8
78 Библиотека SVG, базирующаяся на libart.
80 %description -l uk.UTF-8
81 Бібліотека SVG, базована на libart.
84 Summary: Include files for developing with librsvg
85 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
86 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
87 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
88 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
89 Group: X11/Development/Libraries
90 Requires: %{name} = %{epoch}:%{version}-%{release}
91 Requires: glib2-devel >= 1:2.24.0
92 Requires: gdk-pixbuf2-devel >= 2.0
93 Requires: gtk+3-devel >= 3.0.0
94 %{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
95 %{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
96 Requires: libxml2-devel >= 1:2.6.31
97 Requires: pango-devel >= 1:1.10.0
98 Obsoletes: librsvg0-devel
101 This package provides the necessary development libraries and include
102 files to allow you to develop with librsvg.
104 %description devel -l pl.UTF-8
105 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
106 z wykorzystaniem librsvg.
108 %description devel -l pt_BR.UTF-8
109 Este pacote contém os arquivos necessários para desenvolver com base
110 na biblioteca librsvg.
112 %description devel -l ru.UTF-8
113 Этот пакет содержит необходимые файлы для разработки программ с
114 использованием librsvg.
116 %description devel -l uk.UTF-8
117 Цей пакет містить необхідні файли для розробки програм з використанням
121 Summary: Static libraries for developing with librsvg
122 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
123 Summary(pl.UTF-8): Statyczne biblioteki librsvg
124 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
125 Group: X11/Development/Libraries
126 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
129 This package contains static version of librsvg libraries.
131 %description static -l pl.UTF-8
132 Statyczna wersja bibliotek librsvg.
134 %description static -l pt_BR.UTF-8
135 Bibliotecas estáticas para o desenvolvimento de aplicações com
139 Summary: librsvg API documentation
140 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
142 Requires: gtk-doc-common
145 librsvg API documentation.
147 %description apidocs -l pl.UTF-8
148 Dokumentacja API biblioteki librsvg.
151 Summary: librsvg/GTK+2 based SVG theme engine and viewer
152 Summary(pl.UTF-8): Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+2
154 Requires: %{name} = %{epoch}:%{version}-%{release}
155 Requires: gtk+2 >= 2:2.16.0
158 librsvg/GTK+2 based SVG theme engine and viewer.
160 %description gtk+2 -l pl.UTF-8
161 Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach
165 Summary: librsvg/GTK+3 based SVG theme and viewer
166 Summary(pl.UTF-8): Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3
168 Requires: %{name} = %{epoch}:%{version}-%{release}
169 Requires: gtk+3 >= 3.0.0
172 librsvg/GTK+3 based SVG theme and viewer.
174 %description gtk+3 -l pl.UTF-8
175 Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3.
181 echo 'CLEANFILES=' > gtk-doc.make
182 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
185 %{__sed} -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders%{pqext}/' -i configure.in
188 %{?with_apidocs:%{__gtkdocize}}
195 --disable-silent-rules \
196 %{!?with_static_libs:--disable-static} \
197 %{?with_apidocs:--enable-gtk-doc} \
198 --enable-introspection \
199 %{!?with_libcroco:--without-croco} \
200 %{!?with_libgsf:--without-svgz} \
201 --with-html-dir=%{_gtkdocdir}/%{name}
205 rm -rf $RPM_BUILD_ROOT
208 DESTDIR=$RPM_BUILD_ROOT \
209 pkgconfigdir=%{_pkgconfigdir}
211 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
212 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
213 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
215 %{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
217 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
220 rm -rf $RPM_BUILD_ROOT
225 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
230 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
231 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
235 %defattr(644,root,root,755)
236 %doc ChangeLog AUTHORS NEWS
237 %attr(755,root,root) %{_bindir}/rsvg
238 %attr(755,root,root) %{_bindir}/rsvg-convert
239 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
240 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
241 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
242 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
243 %dir %{_datadir}/themes/bubble
244 %{_mandir}/man1/rsvg.1*
245 #%{_pixmapsdir}/svg-viewer.svg
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/librsvg-2.so
250 %{_includedir}/librsvg-2.0
251 %{_datadir}/gir-1.0/Rsvg-2.0.gir
252 %{_pkgconfigdir}/librsvg-2.0.pc
254 %if %{with static_libs}
256 %defattr(644,root,root,755)
257 %{_libdir}/librsvg-2.a
262 %defattr(644,root,root,755)
263 %{_gtkdocdir}/%{name}
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
270 %{_datadir}/themes/bubble/gtk-2.0
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_bindir}/rsvg-view-3
276 %attr(755,root,root) %{_bindir}/rsvg-view
277 %{_datadir}/themes/bubble/gtk-3.0