]> git.pld-linux.org Git - packages/librsvg.git/blame - librsvg.spec
- release 2 for rebuild.
[packages/librsvg.git] / librsvg.spec
CommitLineData
578a8396 1#
fc18e843 2# Conditional build
165436e0 3%bcond_without apidocs # disable gtk-doc
595e0c59 4%bcond_without libgsf # build without libgsf (used for run-time decompression)
cfb03eca 5%bcond_without libcroco # build without CSS support through libcroco
3f3d0e1a 6%bcond_without static_libs # don't build static library
578a8396 7#
b05ca4c9 8Summary: A Raph's Library for Rendering SVG Data
a0a0a705
ER
9Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
10Summary(pt_BR.UTF-8): Biblioteca SVG
11Summary(ru.UTF-8): SVG библиотека
12Summary(uk.UTF-8): SVG бібліотека
2d89ab37 13Name: librsvg
f6f3ebd0 14Version: 2.22.3
243ac9dc 15Release: 2
cfb03eca 16Epoch: 1
3e8d876b 17License: LGPL v2+
adb8dade
PZ
18Group: X11/Libraries
19Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.22/%{name}-%{version}.tar.bz2
f6f3ebd0 20# Source0-md5: c4ec4fdb2b1842e221ca39127e85682d
5e6c47d1 21URL: http://librsvg.sourceforge.net/
094e0ffa
JB
22BuildRequires: autoconf
23BuildRequires: automake
adb8dade
PZ
24BuildRequires: glib2-devel >= 1:2.16.0
25BuildRequires: gtk+2-devel >= 2:2.12.8
3f3d0e1a 26%{?with_apidocs:BuildRequires: gtk-doc-automake}
b5e5e1f5 27%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
836d8cf1 28%{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
b5e5e1f5 29%{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4}
094e0ffa 30BuildRequires: libtool
adb8dade 31BuildRequires: libxml2-devel >= 1:2.6.31
c4caf50c 32BuildRequires: pkgconfig
836d8cf1 33BuildRequires: rpm-pythonprov
1723e4f4 34Requires(post,postun): /sbin/ldconfig
f9f85140 35Requires(post,postun): gtk+2
adb8dade
PZ
36Requires: glib2 >= 1:2.16.0
37Requires: gtk+2 >= 2:2.12.8
836d8cf1 38%{?with_libcroco:Requires: libcroco >= 0.6.1}
b5e5e1f5 39%{?with_libgsf:Requires: libgsf >= 1.14.4}
adb8dade 40Requires: libxml2 >= 1:2.6.31
6681b37f 41Obsoletes: browser-plugin-librsvg
2f08eb73 42Obsoletes: mozilla-plugin-rsvg
080ab56a 43Obsoletes: librsvg0
2c6dfdc7 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2d89ab37 45
cc871572
AM
46# see gtk+2.spec for source of these ifdefs
47%if "%{_lib}" != "lib"
48%define libext %(lib="%{_lib}"; echo ${lib#lib})
49%define gtketcdir /etc/gtk%{libext}-2.0
50%define pqext -%{libext}
51%else
52%define gtketcdir /etc/gtk-2.0
53%define pqext %{nil}
54%endif
55
cc99da29 56%description
11e37f78
JB
57An library to render SVG (scalable vector graphics), databased upon
58libart.
cc99da29 59
1ad972be 60%description -l pl.UTF-8
27f39052
JB
61Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
62na kodzie libart.
080ab56a 63
1ad972be
JR
64%description -l ru.UTF-8
65Библиотека SVG, базирующаяся на libart.
a3344f74 66
1ad972be
JR
67%description -l uk.UTF-8
68Бібліотека SVG, базована на libart.
a3344f74 69
cc99da29 70%package devel
0780b304 71Summary: Include files for developing with librsvg
a0a0a705
ER
72Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
73Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
74Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
75Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
adb8dade 76Group: X11/Development/Libraries
cfb03eca 77Requires: %{name} = %{epoch}:%{version}-%{release}
adb8dade
PZ
78Requires: glib2-devel >= 1:2.16.0
79Requires: gtk+2-devel >= 2:2.12.8
6681b37f 80%{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
b5e5e1f5 81%{?with_libgsf:Requires: libgsf-devel >= 1.14.4}
adb8dade 82Requires: libxml2-devel >= 1:2.6.31
080ab56a 83Obsoletes: librsvg0-devel
cc99da29
KT
84
85%description devel
d4c0a792
MM
86This package provides the necessary development libraries and include
87files to allow you to develop with librsvg.
e03e3432 88
1ad972be
JR
89%description devel -l pl.UTF-8
90Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
0780b304 91z wykorzystaniem librsvg.
cc99da29 92
1ad972be
JR
93%description devel -l pt_BR.UTF-8
94Este pacote contém os arquivos necessários para desenvolver com base
080ab56a 95na biblioteca librsvg.
96
1ad972be
JR
97%description devel -l ru.UTF-8
98Этот пакет содержит необходимые файлы для разработки программ с
99использованием librsvg.
a3344f74 100
1ad972be
JR
101%description devel -l uk.UTF-8
102Цей пакет містить необхідні файли для розробки програм з використанням
a3344f74 103librsvg.
104
944586bf 105%package static
0780b304 106Summary: Static libraries for developing with librsvg
a0a0a705
ER
107Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
108Summary(pl.UTF-8): Statyczne biblioteki librsvg
109Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
adb8dade 110Group: X11/Development/Libraries
cfb03eca 111Requires: %{name}-devel = %{epoch}:%{version}-%{release}
944586bf
PG
112
113%description static
0780b304 114This package contains static version of librsvg libraries.
944586bf 115
1ad972be 116%description static -l pl.UTF-8
0780b304 117Statyczna wersja bibliotek librsvg.
944586bf 118
1ad972be
JR
119%description static -l pt_BR.UTF-8
120Bibliotecas estáticas para o desenvolvimento de aplicações com
080ab56a 121librsvg.
122
4983a7a9
MB
123%package apidocs
124Summary: librsvg API documentation
125Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
126Group: Documentation
127Requires: gtk-doc-common
128
129%description apidocs
130librsvg API documentation.
131
132%description apidocs -l pl.UTF-8
133Dokumentacja API biblioteki librsvg.
134
cc99da29 135%prep
e4690d22 136%setup -q
d0d37948 137
3f3d0e1a 138%if !%{with apidocs}
3f3d0e1a
KK
139echo 'CLEANFILES=' > gtk-doc.make
140echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
141%endif
142
cc99da29 143%build
094e0ffa
JB
144%{__libtoolize}
145%{__aclocal}
146%{__autoconf}
adb8dade 147%{__autoheader}
094e0ffa 148%{__automake}
d4f197ce 149%configure \
af4148be 150 --disable-mozilla-plugin \
3f3d0e1a 151 %{!?with_static_libs:--disable-static} \
165436e0 152 %{?with_apidocs:--enable-gtk-doc} \
af4148be
JB
153 %{!?with_libcroco:--without-croco} \
154 %{!?with_libgsf:--without-svgz} \
cfb03eca 155 --with-html-dir=%{_gtkdocdir}/%{name}
c4caf50c 156%{__make}
157
cc99da29 158%install
2d89ab37 159rm -rf $RPM_BUILD_ROOT
2aca8b1a 160
d4c0a792
MM
161%{__make} install \
162 DESTDIR=$RPM_BUILD_ROOT \
cfb03eca 163 pkgconfigdir=%{_pkgconfigdir}
2aca8b1a 164
9cf84f83
JB
165rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a}
166
2aca8b1a
PG
167%clean
168rm -rf $RPM_BUILD_ROOT
169
3974ae74 170%post
171/sbin/ldconfig
f9f85140 172umask 022
cc871572 173%{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
3974ae74 174
175%postun
176/sbin/ldconfig
f9f85140 177umask 022
3f3d0e1a 178if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
1723e4f4 179 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} > %{gtketcdir}/gdk-pixbuf.loaders
3f3d0e1a 180fi
094e0ffa 181
cc99da29 182%files
2d89ab37 183%defattr(644,root,root,755)
cfb03eca 184%doc ChangeLog AUTHORS NEWS
adb8dade
PZ
185%attr(755,root,root) %{_bindir}/rsvg
186%attr(755,root,root) %{_bindir}/rsvg-convert
187%attr(755,root,root) %{_bindir}/rsvg-view
edb6ae5a 188%attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
2a1baa24 189%attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
adb8dade
PZ
190%attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
191%attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/svg_loader.so
9cf84f83 192%{_mandir}/man1/rsvg.1*
edb6ae5a 193%{_pixmapsdir}/svg-viewer.svg
cc99da29
KT
194
195%files devel
2d89ab37 196%defattr(644,root,root,755)
edb6ae5a
JB
197%attr(755,root,root) %{_libdir}/librsvg-2.so
198%{_libdir}/librsvg-2.la
199%{_pkgconfigdir}/librsvg-2.0.pc
d4c0a792 200%{_includedir}/librsvg-2
944586bf 201
3f3d0e1a 202%if %{with static_libs}
944586bf
PG
203%files static
204%defattr(644,root,root,755)
edb6ae5a 205%{_libdir}/librsvg-2.a
3f3d0e1a 206%endif
4983a7a9
MB
207
208%if %{with apidocs}
209%files apidocs
210%defattr(644,root,root,755)
211%{_gtkdocdir}/%{name}
212%endif
This page took 0.151902 seconds and 4 git commands to generate.