]> git.pld-linux.org Git - packages/librsvg.git/blame - librsvg.spec
R: gdk-pixbuf2
[packages/librsvg.git] / librsvg.spec
CommitLineData
578a8396 1#
fc18e843 2# Conditional build
165436e0 3%bcond_without apidocs # disable gtk-doc
17f42d6a 4%bcond_without gtk2 # legacy gtk+2 support
cfb03eca 5%bcond_without libcroco # build without CSS support through libcroco
3f3d0e1a 6%bcond_without static_libs # don't build static library
c2e97a8f 7
1e5fa5db 8%define ver 2.36
ce5e5ed3 9%define pver 4
b05ca4c9 10Summary: A Raph's Library for Rendering SVG Data
a0a0a705
ER
11Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
12Summary(pt_BR.UTF-8): Biblioteca SVG
13Summary(ru.UTF-8): SVG библиотека
14Summary(uk.UTF-8): SVG бібліотека
2d89ab37 15Name: librsvg
c2e97a8f 16Version: %{ver}.%{pver}
b5d24d53 17Release: 3
cfb03eca 18Epoch: 1
3e8d876b 19License: LGPL v2+
adb8dade 20Group: X11/Libraries
c2e97a8f 21Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{ver}/%{name}-%{version}.tar.xz
ce5e5ed3 22# Source0-md5: 3c94524c8ccf668e30b236f409239f54
c2e97a8f 23Source1: rsvg
5e6c47d1 24URL: http://librsvg.sourceforge.net/
094e0ffa 25BuildRequires: autoconf
9e46e2bc 26BuildRequires: automake >= 1:1.9
17f42d6a 27BuildRequires: cairo-devel >= 1.2.0
7fc8862e 28BuildRequires: docbook-dtd412-xml
b4109bb7 29BuildRequires: gdk-pixbuf2-devel >= 2.0
9e46e2bc 30BuildRequires: glib2-devel >= 1:2.24.0
17f42d6a 31BuildRequires: gobject-introspection-devel >= 0.10.8
c2e97a8f
AO
32%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
33BuildRequires: gtk+3-devel >= 3.0.0
9e46e2bc 34%{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
60409033 35%{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
836d8cf1 36%{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
17f42d6a
JB
37BuildRequires: libtool >= 2:2.0
38BuildRequires: libxml2-devel >= 1:2.7.0
39BuildRequires: pango-devel >= 1:1.16.0
c4caf50c 40BuildRequires: pkgconfig
836d8cf1 41BuildRequires: rpm-pythonprov
7d99b20d 42BuildRequires: sed >= 4.0
2628f610
AF
43BuildRequires: tar >= 1:1.22
44BuildRequires: xz
1723e4f4 45Requires(post,postun): /sbin/ldconfig
17f42d6a 46Requires: cairo >= 1.2.0
b4109bb7 47Requires: gdk-pixbuf2 >= 2.0
47b8d8a4 48Requires: glib2 >= 1:2.24.0
836d8cf1 49%{?with_libcroco:Requires: libcroco >= 0.6.1}
17f42d6a
JB
50Requires: libxml2 >= 1:2.7.0
51Requires: pango >= 1:1.16.0
6681b37f 52Obsoletes: browser-plugin-librsvg
080ab56a 53Obsoletes: librsvg0
7fc8862e 54Obsoletes: mozilla-plugin-rsvg
2c6dfdc7 55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2d89ab37 56
d2f85f61 57# see gdk-pixbuf2.spec for source of these ifdefs
cc871572
AM
58%if "%{_lib}" != "lib"
59%define libext %(lib="%{_lib}"; echo ${lib#lib})
cc871572
AM
60%define pqext -%{libext}
61%else
cc871572
AM
62%define pqext %{nil}
63%endif
64
cc99da29 65%description
11e37f78
JB
66An library to render SVG (scalable vector graphics), databased upon
67libart.
cc99da29 68
1ad972be 69%description -l pl.UTF-8
27f39052
JB
70Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
71na kodzie libart.
080ab56a 72
1ad972be
JR
73%description -l ru.UTF-8
74Библиотека SVG, базирующаяся на libart.
a3344f74 75
1ad972be
JR
76%description -l uk.UTF-8
77Бібліотека SVG, базована на libart.
a3344f74 78
cc99da29 79%package devel
0780b304 80Summary: Include files for developing with librsvg
a0a0a705
ER
81Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
82Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
83Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
84Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
adb8dade 85Group: X11/Development/Libraries
cfb03eca 86Requires: %{name} = %{epoch}:%{version}-%{release}
17f42d6a 87Requires: cairo-devel >= 1.2.0
b4109bb7 88Requires: gdk-pixbuf2-devel >= 2.0
ff22cf0f 89Requires: glib2-devel >= 1:2.24.0
c2e97a8f 90Requires: gtk+3-devel >= 3.0.0
6681b37f 91%{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
17f42d6a
JB
92Requires: libxml2-devel >= 1:2.7.0
93Requires: pango-devel >= 1:1.16.0
080ab56a 94Obsoletes: librsvg0-devel
cc99da29
KT
95
96%description devel
d4c0a792
MM
97This package provides the necessary development libraries and include
98files to allow you to develop with librsvg.
e03e3432 99
1ad972be
JR
100%description devel -l pl.UTF-8
101Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
0780b304 102z wykorzystaniem librsvg.
cc99da29 103
1ad972be
JR
104%description devel -l pt_BR.UTF-8
105Este pacote contém os arquivos necessários para desenvolver com base
080ab56a 106na biblioteca librsvg.
107
1ad972be
JR
108%description devel -l ru.UTF-8
109Этот пакет содержит необходимые файлы для разработки программ с
110использованием librsvg.
a3344f74 111
1ad972be
JR
112%description devel -l uk.UTF-8
113Цей пакет містить необхідні файли для розробки програм з використанням
a3344f74 114librsvg.
115
944586bf 116%package static
0780b304 117Summary: Static libraries for developing with librsvg
a0a0a705
ER
118Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
119Summary(pl.UTF-8): Statyczne biblioteki librsvg
120Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
adb8dade 121Group: X11/Development/Libraries
cfb03eca 122Requires: %{name}-devel = %{epoch}:%{version}-%{release}
944586bf
PG
123
124%description static
0780b304 125This package contains static version of librsvg libraries.
944586bf 126
1ad972be 127%description static -l pl.UTF-8
0780b304 128Statyczna wersja bibliotek librsvg.
944586bf 129
1ad972be
JR
130%description static -l pt_BR.UTF-8
131Bibliotecas estáticas para o desenvolvimento de aplicações com
080ab56a 132librsvg.
133
4983a7a9
MB
134%package apidocs
135Summary: librsvg API documentation
136Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
137Group: Documentation
138Requires: gtk-doc-common
139
140%description apidocs
141librsvg API documentation.
142
143%description apidocs -l pl.UTF-8
144Dokumentacja API biblioteki librsvg.
145
d2f85f61
JB
146%package gtk+2
147Summary: librsvg/GTK+2 based SVG theme engine and viewer
148Summary(pl.UTF-8): Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+2
149Group: X11/Libraries
150Requires: %{name} = %{epoch}:%{version}-%{release}
151Requires: gtk+2 >= 2:2.16.0
152
153%description gtk+2
154librsvg/GTK+2 based SVG theme engine and viewer.
155
156%description gtk+2 -l pl.UTF-8
157Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach
158librsvg/GTK+2.
159
160%package gtk+3
161Summary: librsvg/GTK+3 based SVG theme and viewer
162Summary(pl.UTF-8): Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3
163Group: X11/Libraries
164Requires: %{name} = %{epoch}:%{version}-%{release}
165Requires: gtk+3 >= 3.0.0
166
167%description gtk+3
168librsvg/GTK+3 based SVG theme and viewer.
169
170%description gtk+3 -l pl.UTF-8
171Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3.
172
cc99da29 173%prep
e4690d22 174%setup -q
d0d37948 175
17f42d6a 176%if %{without apidocs}
3f3d0e1a
KK
177echo 'CLEANFILES=' > gtk-doc.make
178echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
179%endif
180
2066ec98
JB
181# vala not ready yet here
182echo 'AC_DEFUN([VAPIGEN_CHECK],[AM_CONDITIONAL([ENABLE_VAPIGEN], [false])])' >> acinclude.m4
183
cc99da29 184%build
ff22cf0f 185mkdir m4
934cfd64 186%{?with_apidocs:%{__gtkdocize}}
094e0ffa
JB
187%{__libtoolize}
188%{__aclocal}
189%{__autoconf}
adb8dade 190%{__autoheader}
094e0ffa 191%{__automake}
d4f197ce 192%configure \
60c9bff9 193 --disable-silent-rules \
ff22cf0f
ŁK
194 %{__enable_disable static_libs static} \
195 %{__enable_disable apidocs gtk-doc} \
cfdffb08 196 --enable-introspection \
ff22cf0f 197 %{__with_without libcroco croco} \
cfb03eca 198 --with-html-dir=%{_gtkdocdir}/%{name}
c4caf50c 199%{__make}
200
cc99da29 201%install
2d89ab37 202rm -rf $RPM_BUILD_ROOT
2aca8b1a 203
d4c0a792
MM
204%{__make} install \
205 DESTDIR=$RPM_BUILD_ROOT \
cfb03eca 206 pkgconfigdir=%{_pkgconfigdir}
2aca8b1a 207
b4109bb7
JB
208%{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
209%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
47b8d8a4 210%{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
9cf84f83 211
c2e97a8f
AO
212%{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
213
214install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
215
2aca8b1a
PG
216%clean
217rm -rf $RPM_BUILD_ROOT
218
3974ae74 219%post
220/sbin/ldconfig
f9f85140 221umask 022
47b8d8a4 222%{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
3974ae74 223
224%postun
225/sbin/ldconfig
f9f85140 226umask 022
3f3d0e1a 227if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
9e46e2bc 228 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
3f3d0e1a 229fi
094e0ffa 230
cc99da29 231%files
2d89ab37 232%defattr(644,root,root,755)
cfb03eca 233%doc ChangeLog AUTHORS NEWS
adb8dade
PZ
234%attr(755,root,root) %{_bindir}/rsvg
235%attr(755,root,root) %{_bindir}/rsvg-convert
edb6ae5a 236%attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
2a1baa24 237%attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
cfdffb08 238%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
d2f85f61 239%attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
725978de 240%{_mandir}/man1/rsvg-convert.1*
cc99da29
KT
241
242%files devel
2d89ab37 243%defattr(644,root,root,755)
edb6ae5a 244%attr(755,root,root) %{_libdir}/librsvg-2.so
9e46e2bc 245%{_includedir}/librsvg-2.0
cfdffb08 246%{_datadir}/gir-1.0/Rsvg-2.0.gir
d2f85f61 247%{_pkgconfigdir}/librsvg-2.0.pc
944586bf 248
3f3d0e1a 249%if %{with static_libs}
944586bf
PG
250%files static
251%defattr(644,root,root,755)
edb6ae5a 252%{_libdir}/librsvg-2.a
3f3d0e1a 253%endif
4983a7a9
MB
254
255%if %{with apidocs}
256%files apidocs
257%defattr(644,root,root,755)
258%{_gtkdocdir}/%{name}
259%endif
d2f85f61 260
c2e97a8f 261%if %{with gtk2}
d2f85f61
JB
262%files gtk+2
263%defattr(644,root,root,755)
d2f85f61 264%attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
050413d2 265%dir %{_datadir}/themes/bubble
d2f85f61 266%{_datadir}/themes/bubble/gtk-2.0
c2e97a8f 267%endif
d2f85f61 268
d2f85f61
JB
269%files gtk+3
270%defattr(644,root,root,755)
271%attr(755,root,root) %{_bindir}/rsvg-view-3
c2e97a8f 272%attr(755,root,root) %{_bindir}/rsvg-view
This page took 0.074263 seconds and 4 git commands to generate.