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