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
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 obs³ugi grafiki wektorowej.
66 Biblioteca de Extensão da Eazel.
69 âÉÂÌÉÏÔÅËÁ SVG, ÂÁÚÉÒÕÀÝÁÑÓÑ ÎÁ libart.
72 â¦Â̦ÏÔÅËÁ SVG, ÂÁÚÏ×ÁÎÁ ÎÁ libart.
75 Summary: Include files for developing with librsvg
76 Summary(pl): Pliki nag³ówkowe do tworzenia oprogramowania z u¿yciem librsvg
77 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
78 Summary(ru): âÉÂÌÉÏÔÅÞÎÙÅ ÌÉÎËÉ É ÆÁÊÌÙ ÚÁÇÏÌÏ×ËÏ× ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó librsvg
79 Summary(uk): â¦Â̦ÏÔÅÞΦ ̦ÎËÉ ÔÁ ÆÁÊÌÉ ÚÁÇÏÌÏ×Ë¦× ÄÌÑ ÒÏÚÒÏÂËÉ Ú librsvg
80 Group: Development/Libraries
81 Requires: %{name} = %{epoch}:%{version}-%{release}
82 %{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.10.0-2}
83 Requires: gtk+2-devel >= 2:2.8.6
84 Requires: libart_lgpl-devel >= 2.3.15
85 %{?with_libcroco:Requires: libcroco-devel >= 0.6.0}
86 %{?with_libgsf:Requires: libgsf-devel >= 1.13.2}
87 Requires: libxml2-devel >= 2.6.22
88 Obsoletes: librsvg0-devel
91 This package provides the necessary development libraries and include
92 files to allow you to develop with librsvg.
94 %description devel -l pl
95 Pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia oprogramowania
96 z wykorzystaniem librsvg.
98 %description devel -l pt_BR
99 Este pacote contém os arquivos necessários para desenvolver com base
100 na biblioteca librsvg.
102 %description devel -l ru
103 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó
104 ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ librsvg.
106 %description devel -l uk
107 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÎÅÏÂȦÄΦ ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ
111 Summary: Static libraries for developing with librsvg
112 Summary(es): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
113 Summary(pl): Statyczne biblioteki librsvg
114 Summary(pt_BR): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
115 Group: Development/Libraries
116 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
119 This package contains static version of librsvg libraries.
121 %description static -l pl
122 Statyczna wersja bibliotek librsvg.
124 %description static -l pt_BR
125 Bibliotecas estáticas para o desenvolvimento de aplicações com
128 %package -n browser-plugin-%{name}
129 Summary: SVG browse plugin using librsvg
130 Summary(pl): Wtyczka SVG do przegl±darski WWW wykorzystuj±ca librsvg
131 Group: X11/Applications/Multimedia
132 Requires: browser-plugins(%{_target_base_arch})
133 Requires: %{name} = %{epoch}:%{version}-%{release}
134 Provides: mozilla-plugin-rsvg
135 Obsoletes: mozilla-plugin-rsvg
137 %description -n browser-plugin-%{name}
138 This plugin allows Mozilla-family browsers to view Scalable Vector
139 Graphics content using librsvg.
141 Supported browsers: %{browsers}.
143 %description -n browser-plugin-%{name} -l pl
144 Ta wtyczka pozwala na ogl±danie grafiki w formacie SVG (Scalable
145 Vector Graphics) w przegl±darkach z rodziny Mozilli.
147 Obs³ugiwane przegl±darki: %{browsers}.
153 %{!?with_mozilla:export MOZILLA_CONFIG=no}
159 %{!?with_libcroco:--without-croco} \
160 %{!?with_libgsf:--without-svgz} \
161 %{!?with_gnomevfs:--disable-gnome-vfs} \
162 %{?with_apidocs:--enable-gtk-doc} \
163 --with-html-dir=%{_gtkdocdir}/%{name}
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT \
171 plugindir=%{_plugindir} \
172 pkgconfigdir=%{_pkgconfigdir}
174 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
175 rm -f $RPM_BUILD_ROOT%{_plugindir}/*.{la,a}
178 rm -rf $RPM_BUILD_ROOT
183 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
188 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
190 %triggerin -n browser-plugin-%{name} -- mozilla
191 %nsplugin_install -d %{_libdir}/mozilla/plugins libmozsvgdec.so
193 %triggerun -n browser-plugin-%{name} -- mozilla
194 %nsplugin_uninstall -d %{_libdir}/mozilla/plugins libmozsvgdec.so
196 %triggerin -n browser-plugin-%{name} -- mozilla-firefox
197 %nsplugin_install -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
199 %triggerun -n browser-plugin-%{name} -- mozilla-forefox
200 %nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins libmozsvgdec.so
202 %triggerin -n browser-plugin-%{name} -- netscape-common
203 %nsplugin_install -d %{_libdir}/netscape/plugins libmozsvgdec.so
205 %triggerun -n browser-plugin-%{name} -- netscape-common
206 %nsplugin_uninstall -d %{_libdir}/netscape/plugins libmozsvgdec.so
208 %triggerin -n browser-plugin-%{name} -- seamonkey
209 %nsplugin_install -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
211 %triggerun -n browser-plugin-%{name} -- seamonkey
212 %nsplugin_uninstall -d %{_libdir}/seamonkey/plugins libmozsvgdec.so
214 # as rpm removes the old obsoleted package files after the triggers
215 # are ran, add another trigger to make the links there.
216 %triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-rsvg
217 %nsplugin_install -f -d %{_libdir}/mozilla/plugins libmozsvgdec.so
220 %defattr(644,root,root,755)
221 %doc ChangeLog AUTHORS NEWS
222 %attr(755,root,root) %{_bindir}/*
223 %attr(755,root,root) %{_libdir}/lib*.so.*.*
224 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so
225 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so
226 %{_mandir}/man1/rsvg.1*
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/lib*.so
233 %{_pkgconfigdir}/*.pc
234 %{_includedir}/librsvg-2
235 %{_gtkdocdir}/%{name}
238 %defattr(644,root,root,755)
242 %files -n browser-plugin-%{name}
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_plugindir}/*.so