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