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