3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without gtk2 # legacy gtk+2 support
5 %bcond_without static_libs # don't build static library
9 Summary: A Raph's Library for Rendering SVG Data
10 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
11 Summary(pt_BR.UTF-8): Biblioteca SVG
12 Summary(ru.UTF-8): SVG библиотека
13 Summary(uk.UTF-8): SVG бібліотека
15 Version: %{mver}.%{pver}
20 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
21 # Source0-md5: c055f255f63ecc9fbc1f1c8a18db5c1e
24 URL: http://librsvg.sourceforge.net/
25 BuildRequires: autoconf
26 BuildRequires: automake >= 1:1.9
27 BuildRequires: cairo-devel >= 1.2.0
28 BuildRequires: docbook-dtd412-xml
29 BuildRequires: gdk-pixbuf2-devel >= 2.20
30 BuildRequires: glib2-devel >= 1:2.24.0
31 BuildRequires: gobject-introspection-devel >= 0.10.8
32 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
33 BuildRequires: gtk+3-devel >= 3.2.0
34 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
35 %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
36 BuildRequires: libcroco-devel >= 0.6.1
37 BuildRequires: libtool >= 2:2.0
38 BuildRequires: libxml2-devel >= 1:2.7.0
39 BuildRequires: pango-devel >= 1:1.32.6
40 BuildRequires: pkgconfig
41 BuildRequires: rpm-pythonprov
42 BuildRequires: sed >= 4.0
43 BuildRequires: tar >= 1:1.22
45 Requires(post,postun): /sbin/ldconfig
46 Requires: cairo >= 1.2.0
47 Requires: gdk-pixbuf2 >= 2.20
48 Requires: glib2 >= 1:2.24.0
49 Requires: libcroco >= 0.6.1
50 Requires: libxml2 >= 1:2.7.0
51 Requires: pango >= 1:1.32.6
52 Obsoletes: browser-plugin-librsvg
53 Obsoletes: librsvg-gtk+2
55 Obsoletes: mozilla-plugin-rsvg
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 # see gdk-pixbuf2.spec for source of these ifdefs
59 %if "%{_lib}" != "lib"
60 %define libext %(lib="%{_lib}"; echo ${lib#lib})
61 %define pqext -%{libext}
67 An library to render SVG (scalable vector graphics), databased upon
70 %description -l pl.UTF-8
71 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
74 %description -l ru.UTF-8
75 Библиотека SVG, базирующаяся на libart.
77 %description -l uk.UTF-8
78 Бібліотека SVG, базована на libart.
81 Summary: Include files for developing with librsvg
82 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
83 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
84 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
85 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
86 Group: X11/Development/Libraries
87 Requires: %{name} = %{epoch}:%{version}-%{release}
88 Requires: cairo-devel >= 1.2.0
89 Requires: gdk-pixbuf2-devel >= 2.20
90 Requires: glib2-devel >= 1:2.24.0
91 Requires: gtk+3-devel >= 3.2.0
92 Requires: libcroco-devel >= 0.6.1
93 Requires: libxml2-devel >= 1:2.7.0
94 Requires: pango-devel >= 1:1.32.6
95 Obsoletes: librsvg0-devel
98 This package provides the necessary development libraries and include
99 files to allow you to develop with librsvg.
101 %description devel -l pl.UTF-8
102 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
103 z wykorzystaniem librsvg.
105 %description devel -l pt_BR.UTF-8
106 Este pacote contém os arquivos necessários para desenvolver com base
107 na biblioteca librsvg.
109 %description devel -l ru.UTF-8
110 Этот пакет содержит необходимые файлы для разработки программ с
111 использованием librsvg.
113 %description devel -l uk.UTF-8
114 Цей пакет містить необхідні файли для розробки програм з використанням
118 Summary: Static libraries for developing with librsvg
119 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
120 Summary(pl.UTF-8): Statyczne biblioteki librsvg
121 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
122 Group: X11/Development/Libraries
123 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
126 This package contains static version of librsvg libraries.
128 %description static -l pl.UTF-8
129 Statyczna wersja bibliotek librsvg.
131 %description static -l pt_BR.UTF-8
132 Bibliotecas estáticas para o desenvolvimento de aplicações com
136 Summary: librsvg API documentation
137 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
139 Requires: gtk-doc-common
142 librsvg API documentation.
144 %description apidocs -l pl.UTF-8
145 Dokumentacja API biblioteki librsvg.
148 Summary: librsvg/GTK+3 based SVG viewer
149 Summary(pl.UTF-8): Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3
150 Group: X11/Applications/Graphics
151 Requires: %{name} = %{epoch}:%{version}-%{release}
152 Requires: gtk+3 >= 3.2.0
155 librsvg/GTK+3 based SVG viewer.
157 %description gtk+3 -l pl.UTF-8
158 Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3.
164 %if %{without apidocs}
165 echo 'CLEANFILES=' > gtk-doc.make
166 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
170 %{?with_apidocs:%{__gtkdocize}}
177 --disable-silent-rules \
178 %{__enable_disable static_libs static} \
179 %{__enable_disable apidocs gtk-doc} \
180 --enable-introspection \
181 --with-html-dir=%{_gtkdocdir}/%{name}
185 rm -rf $RPM_BUILD_ROOT
188 DESTDIR=$RPM_BUILD_ROOT \
189 pkgconfigdir=%{_pkgconfigdir}
191 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
194 %{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
196 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
199 rm -rf $RPM_BUILD_ROOT
204 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
209 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
210 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
214 %defattr(644,root,root,755)
215 %doc ChangeLog AUTHORS NEWS
216 %attr(755,root,root) %{_bindir}/rsvg
217 %attr(755,root,root) %{_bindir}/rsvg-convert
218 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
219 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
220 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
221 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
222 %{_mandir}/man1/rsvg-convert.1*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/librsvg-2.so
227 %{_includedir}/librsvg-2.0
228 %{_datadir}/gir-1.0/Rsvg-2.0.gir
229 %{_pkgconfigdir}/librsvg-2.0.pc
231 %if %{with static_libs}
233 %defattr(644,root,root,755)
234 %{_libdir}/librsvg-2.a
239 %defattr(644,root,root,755)
240 %{_gtkdocdir}/%{name}
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_bindir}/rsvg-view
246 %attr(755,root,root) %{_bindir}/rsvg-view-3