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
6 %bcond_without vala # Vala API (vala up to 0.38.x already contains librsvg-2.0.vapi)
10 Summary: A Raph's Library for Rendering SVG Data
11 Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
12 Summary(pt_BR.UTF-8): Biblioteca SVG
13 Summary(ru.UTF-8): SVG библиотека
14 Summary(uk.UTF-8): SVG бібліотека
16 Version: %{mver}.%{pver}
21 Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
22 # Source0-md5: 7570d139148f3554fa60fb2a0ecfc4f8
25 Patch1: %{name}-docbook5.patch
26 Patch2: %{name}-gtkdoc.patch
27 URL: http://librsvg.sourceforge.net/
28 BuildRequires: autoconf >= 2.50
29 BuildRequires: automake >= 1:1.9
30 BuildRequires: cairo-devel >= 1.15.12
32 BuildRequires: docbook-dtd5-xml
33 # pkgconfig(freetype) >= 20.0.14
34 BuildRequires: freetype-devel >= 1:2.8
35 BuildRequires: gdk-pixbuf2-devel >= 2.20
36 BuildRequires: glib2-devel >= 1:2.48.0
37 BuildRequires: gobject-introspection-devel >= 0.10.8
38 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
39 BuildRequires: gtk+3-devel >= 3.10.0
40 %{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
41 %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
42 BuildRequires: libcroco-devel >= 0.6.1
43 BuildRequires: libtool >= 2:2.0
44 BuildRequires: libxml2-devel >= 1:2.9.0
45 BuildRequires: pango-devel >= 1:1.38.0
46 BuildRequires: pkgconfig
47 BuildRequires: rpm-pythonprov
48 BuildRequires: rust >= 1.27
49 BuildRequires: sed >= 4.0
50 BuildRequires: tar >= 1:1.22
51 %{?with_vala:BuildRequires: vala >= 2:0.18}
53 Requires(post,postun): /sbin/ldconfig
54 Requires: cairo >= 1.15.12
55 Requires: freetype >= 1:2.8
56 Requires: gdk-pixbuf2 >= 2.20
57 Requires: glib2 >= 1:2.48.0
58 Requires: libcroco >= 0.6.1
59 Requires: libxml2 >= 1:2.9.0
60 Requires: pango >= 1:1.38.0
61 Obsoletes: browser-plugin-librsvg
62 Obsoletes: librsvg-gtk+2
64 Obsoletes: mozilla-plugin-rsvg
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 # see gdk-pixbuf2.spec for source of these ifdefs
68 %if "%{_lib}" != "lib"
69 %define libext %(lib="%{_lib}"; echo ${lib#lib})
70 %define pqext -%{libext}
76 An library to render SVG (scalable vector graphics), databased upon
79 %description -l pl.UTF-8
80 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
83 %description -l ru.UTF-8
84 Библиотека SVG, базирующаяся на libart.
86 %description -l uk.UTF-8
87 Бібліотека SVG, базована на libart.
90 Summary: Include files for developing with librsvg
91 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
92 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
93 Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
94 Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
95 Group: X11/Development/Libraries
96 Requires: %{name} = %{epoch}:%{version}-%{release}
97 Requires: cairo-devel >= 1.15.12
98 Requires: freetype-devel >= 1:2.8
99 Requires: gdk-pixbuf2-devel >= 2.20
100 Requires: glib2-devel >= 1:2.48.0
101 Requires: gtk+3-devel >= 3.10.0
102 Requires: libcroco-devel >= 0.6.1
103 Requires: libxml2-devel >= 1:2.9.0
104 Requires: pango-devel >= 1:1.38.0
105 Obsoletes: librsvg0-devel
108 This package provides the necessary development libraries and include
109 files to allow you to develop with librsvg.
111 %description devel -l pl.UTF-8
112 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
113 z wykorzystaniem librsvg.
115 %description devel -l pt_BR.UTF-8
116 Este pacote contém os arquivos necessários para desenvolver com base
117 na biblioteca librsvg.
119 %description devel -l ru.UTF-8
120 Этот пакет содержит необходимые файлы для разработки программ с
121 использованием librsvg.
123 %description devel -l uk.UTF-8
124 Цей пакет містить необхідні файли для розробки програм з використанням
128 Summary: Static libraries for developing with librsvg
129 Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
130 Summary(pl.UTF-8): Statyczne biblioteki librsvg
131 Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
132 Group: X11/Development/Libraries
133 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
136 This package contains static version of librsvg libraries.
138 %description static -l pl.UTF-8
139 Statyczna wersja bibliotek librsvg.
141 %description static -l pt_BR.UTF-8
142 Bibliotecas estáticas para o desenvolvimento de aplicações com
146 Summary: librsvg API documentation
147 Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
149 Requires: gtk-doc-common
150 %if "%{_rpmversion}" >= "5"
155 librsvg API documentation.
157 %description apidocs -l pl.UTF-8
158 Dokumentacja API biblioteki librsvg.
160 %package -n vala-librsvg
161 Summary: Vala API for librsvg library
162 Summary(pl.UTF-8): API języka Vala do biblioteki librsvg
163 Group: Development/Libraries
164 Requires: vala >= 2:0.40
166 %description -n vala-librsvg
167 Vala API for librsvg library.
169 %description -n vala-librsvg -l pl.UTF-8
170 API języka Vala do biblioteki librsvg.
173 Summary: librsvg/GTK+3 based SVG viewer
174 Summary(pl.UTF-8): Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3
175 Group: X11/Applications/Graphics
176 Requires: %{name} = %{epoch}:%{version}-%{release}
177 Requires: gtk+3 >= 3.10.0
180 librsvg/GTK+3 based SVG viewer.
182 %description gtk+3 -l pl.UTF-8
183 Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3.
191 %if %{without apidocs}
192 echo 'CLEANFILES=' > gtk-doc.make
193 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
197 %{?with_apidocs:%{__gtkdocize}}
204 %{__enable_disable apidocs gtk-doc} \
205 --enable-introspection \
206 --disable-silent-rules \
207 %{__enable_disable static_libs static} \
208 %{?with_vala:--enable-vala} \
209 --with-html-dir=%{_gtkdocdir}/%{name}
213 rm -rf $RPM_BUILD_ROOT
216 DESTDIR=$RPM_BUILD_ROOT \
217 pkgconfigdir=%{_pkgconfigdir}
219 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
220 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
222 %{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
224 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
227 rm -rf $RPM_BUILD_ROOT
232 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
237 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
238 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
242 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_bindir}/rsvg
245 %attr(755,root,root) %{_bindir}/rsvg-convert
246 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
247 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
248 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
249 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
250 %{_datadir}/thumbnailers/librsvg.thumbnailer
251 %{_mandir}/man1/rsvg-convert.1*
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_libdir}/librsvg-2.so
256 %{_includedir}/librsvg-2.0
257 %{_datadir}/gir-1.0/Rsvg-2.0.gir
258 %{_pkgconfigdir}/librsvg-2.0.pc
260 %if %{with static_libs}
262 %defattr(644,root,root,755)
263 %{_libdir}/librsvg-2.a
268 %defattr(644,root,root,755)
269 %{_gtkdocdir}/%{name}
273 %files -n vala-librsvg
274 %defattr(644,root,root,755)
275 %{_datadir}/vala/vapi/librsvg-2.0.vapi
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_bindir}/rsvg-view
281 %attr(755,root,root) %{_bindir}/rsvg-view-3