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