2 # - check what browsers can be supported by browser plugin
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 gnomeprint # build without gnome-print support in viewer
9 %bcond_without gnomevfs # build without gnome-vfs support
10 %bcond_without mozilla # do not build mozilla plugin
12 Summary: A Raph's Library for Rendering SVG Data
13 Summary(pl): Biblioteka Raph's SVG do renderowania danych SVG
14 Summary(pt_BR): Biblioteca SVG
15 Summary(ru): SVG ÂÉÂÌÉÏÔÅËÁ
16 Summary(uk): SVG ¦Â̦ÏÔÅËÁ
24 Source0: http://ftp.gnome.org/pub/gnome/sources/librsvg/2.14/%{name}-%{version}.tar.bz2
25 # Source0-md5: 945617bb094975d7353a3852302297c1
26 URL: http://librsvg.sourceforge.net/
27 BuildRequires: autoconf
28 BuildRequires: automake
29 BuildRequires: cairo-devel >= 1.0.2
30 BuildRequires: gtk+2-devel >= 2:2.8.6
31 %{?with_apidocs:BuildRequires: gtk-doc >= 0.9}
32 %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.10.0-2}
33 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
34 %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.12.1}
35 %{?with_libgsf:BuildRequires: libgsf-devel >= 1.13.2}
36 BuildRequires: libtool
37 BuildRequires: libxml2-devel >= 1:2.6.22
38 %{?with_mozilla:BuildRequires: mozilla-devel}
39 %{?with_mozilla:BuildRequires: rpmbuild(macros) >= 1.236}
40 BuildRequires: popt-devel >= 1.5
41 BuildRequires: pkgconfig
42 BuildRequires: rpm-pythonprov
43 %{!?with_gnomeprint:BuildConflicts: libgnomeprintui-devel}
44 Requires(post,postun): gtk+2
45 Requires: cairo >= 1.0.2
46 Requires: gtk+2 >= 2:2.8.6
47 %{?with_libcroco:Requires: libcroco >= 0.6.1}
48 %{?with_libgsf:Requires: libgsf >= 1.13.2}
49 Requires: libxml2 >= 1:2.6.22
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define _plugindir %{_libdir}/browser-plugins
56 # list of supported browsers, in free form text
57 %define browsers mozilla, mozilla-firefox, netscape, seamonkey
60 An library to render SVG (scalable vector graphics), databased upon libart.
63 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
67 Biblioteca de Extensão da Eazel.
70 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
73 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
76 Summary: Include files for developing with librsvg
77 Summary(pl): Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
78 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
79 Summary(ru): âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
80 Summary(uk): â¦Â̦ÏÔÅÞΦ ̦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×Ë¦× ÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
81 Group: Development/Libraries
82 Requires: %{name} = %{epoch}:%{version}-%{release}
83 %{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.10.0-2}
84 Requires: gtk+2-devel >= 2:2.8.6
85 Requires: libart_lgpl-devel >= 2.3.15
86 %{?with_libcroco:Requires: libcroco-devel >= 0.6.0}
87 %{?with_libgsf:Requires: libgsf-devel >= 1.13.2}
88 Requires: libxml2-devel >= 2.6.22
89 Obsoletes: librsvg0-devel
92 This package provides the necessary development libraries and include
93 files to allow you to develop with librsvg.
95 %description devel -l pl
96 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
97 z wykorzystaniem librsvg.
99 %description devel -l pt_BR
100 Este pacote contém os arquivos necessários para desenvolver com base
101 na biblioteca librsvg.
103 %description devel -l ru
104 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
105 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
107 %description devel -l uk
108 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
112 Summary: Static libraries for developing with librsvg
113 Summary(es): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
114 Summary(pl): Statyczne biblioteki librsvg
115 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
116 Group: Development/Libraries
117 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
120 This package contains static version of librsvg libraries.
122 %description static -l pl
123 Statyczna wersja bibliotek librsvg.
125 %description static -l pt_BR
126 Bibliotecas estáticas para o desenvolvimento de aplicações com
129 %package -n browser-plugin-%{name}
130 Summary: SVG browse plugin using librsvg
131 Summary(pl): Wtyczka SVG do przegl±darski WWW wykorzystuj±ca librsvg
132 Group: X11/Applications/Multimedia
133 Requires: browser-plugins(%{_target_base_arch})
134 Requires: %{name} = %{epoch}:%{version}-%{release}
135 Provides: mozilla-plugin-rsvg
136 Obsoletes: mozilla-plugin-rsvg
138 %description -n browser-plugin-%{name}
139 This plugin allows Mozilla-family browsers to view Scalable Vector
140 Graphics content using librsvg.
142 Supported browsers: %{browsers}.
144 %description -n browser-plugin-%{name} -l pl
145 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
146 Vector Graphics) w przegl±darkach z rodziny Mozilli.
148 Obs³ugiwane przegl±darki: %{browsers}.
154 %{!?with_mozilla:export MOZILLA_CONFIG=no}
160 %{!?with_libcroco:--without-croco} \
161 %{!?with_libgsf:--without-svgz} \
162 %{!?with_gnomevfs:--disable-gnome-vfs} \
163 %{?with_apidocs:--enable-gtk-doc} \
164 --with-html-dir=%{_gtkdocdir}/%{name}
168 rm -rf $RPM_BUILD_ROOT
171 DESTDIR=$RPM_BUILD_ROOT \
172 plugindir=%{_plugindir} \
173 pkgconfigdir=%{_pkgconfigdir}
175 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
176 rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{la,a}
179 rm -rf $RPM_BUILD_ROOT
184 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
189 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
191 %triggerin -n browser-plugin-%{name} -- mozilla
192 %nsplugin_install -d %{_libdir}/mozilla/plugins libmozsvgdec.so
194 %triggerun -n browser-plugin-%{name} -- mozilla
195 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins libmozsvgdec.so
197 %triggerin -n browser-plugin-%{name} -- mozilla-firefox
198 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
200 %triggerun -n browser-plugin-%{name} -- mozilla-forefox
201 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
203 %triggerin -n browser-plugin-%{name} -- netscape-common
204 %nsplugin_install -d %{_libdir}/netscape/plugins libmozsvgdec.so
206 %triggerun -n browser-plugin-%{name} -- netscape-common
207 %nsplugin_uninstall -d %{_libdir}/netscape/plugins libmozsvgdec.so
209 %triggerin -n browser-plugin-%{name} -- seamonkey
210 %nsplugin_install -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
212 %triggerun -n browser-plugin-%{name} -- seamonkey
213 %nsplugin_uninstall -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
215 # as rpm removes the old obsoleted package files after the triggers
216 # are ran, add another trigger to make the links there.
217 %triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-rsvg
218 %nsplugin_install -f -d %{_libdir}/mozilla/plugins libmozsvgdec.so
221 %defattr(644,root,root,755)
222 %doc ChangeLog AUTHORS NEWS
223 %attr(755,root,root) %{_bindir}/*
224 %attr(755,root,root) %{_libdir}/lib*.so.*.*
225 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
226 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
227 %{_mandir}/man1/rsvg.1*
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/lib*.so
234 %{_pkgconfigdir}/*.pc
235 %{_includedir}/librsvg-2
236 %{_gtkdocdir}/%{name}
239 %defattr(644,root,root,755)
243 %files -n browser-plugin-%{name}
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_plugindir}/*.so