]> git.pld-linux.org Git - packages/librsvg.git/blame - librsvg.spec
- updated to 2.40.10
[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
3f3d0e1a 5%bcond_without static_libs # don't build static library
5bf5690c 6%bcond_with vala # Vala API (vala up to 0.26 already contains librsvg-2.0.vapi)
c2e97a8f 7
41efbe2b 8%define mver 2.40
bc93f8de 9%define pver 10
b05ca4c9 10Summary: A Raph's Library for Rendering SVG Data
a0a0a705
ER
11Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG
12Summary(pt_BR.UTF-8): Biblioteca SVG
13Summary(ru.UTF-8): SVG библиотека
14Summary(uk.UTF-8): SVG бібліотека
2d89ab37 15Name: librsvg
41efbe2b 16Version: %{mver}.%{pver}
86e9d071 17Release: 1
cfb03eca 18Epoch: 1
3e8d876b 19License: LGPL v2+
adb8dade 20Group: X11/Libraries
41efbe2b 21Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
bc93f8de 22# Source0-md5: fadebe2e799ab159169ee3198415ff85
c2e97a8f 23Source1: rsvg
daf1fb3b 24Patch0: x32.patch
5e6c47d1 25URL: http://librsvg.sourceforge.net/
5bf5690c 26BuildRequires: autoconf >= 2.50
9e46e2bc 27BuildRequires: automake >= 1:1.9
17f42d6a 28BuildRequires: cairo-devel >= 1.2.0
7fc8862e 29BuildRequires: docbook-dtd412-xml
41efbe2b 30BuildRequires: gdk-pixbuf2-devel >= 2.20
9e46e2bc 31BuildRequires: glib2-devel >= 1:2.24.0
17f42d6a 32BuildRequires: gobject-introspection-devel >= 0.10.8
c2e97a8f 33%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
bc93f8de 34BuildRequires: gtk+3-devel >= 3.10.0
9e46e2bc 35%{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
60409033 36%{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
274a8440 37BuildRequires: libcroco-devel >= 0.6.1
17f42d6a
JB
38BuildRequires: libtool >= 2:2.0
39BuildRequires: libxml2-devel >= 1:2.7.0
732be238 40BuildRequires: pango-devel >= 1:1.32.6
c4caf50c 41BuildRequires: pkgconfig
836d8cf1 42BuildRequires: rpm-pythonprov
7d99b20d 43BuildRequires: sed >= 4.0
2628f610 44BuildRequires: tar >= 1:1.22
5bf5690c 45%{?with_vala:BuildRequires: vala >= 2:0.18}
2628f610 46BuildRequires: xz
1723e4f4 47Requires(post,postun): /sbin/ldconfig
17f42d6a 48Requires: cairo >= 1.2.0
41efbe2b 49Requires: gdk-pixbuf2 >= 2.20
47b8d8a4 50Requires: glib2 >= 1:2.24.0
274a8440 51Requires: libcroco >= 0.6.1
17f42d6a 52Requires: libxml2 >= 1:2.7.0
50a3c512 53Requires: pango >= 1:1.32.6
6681b37f 54Obsoletes: browser-plugin-librsvg
41efbe2b 55Obsoletes: librsvg-gtk+2
29233d8a 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
41efbe2b 91Requires: gdk-pixbuf2-devel >= 2.20
ff22cf0f 92Requires: glib2-devel >= 1:2.24.0
bc93f8de 93Requires: gtk+3-devel >= 3.10.0
274a8440 94Requires: libcroco-devel >= 0.6.1
17f42d6a 95Requires: libxml2-devel >= 1:2.7.0
50a3c512 96Requires: pango-devel >= 1:1.32.6
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
5bf5690c
JB
149%package -n vala-librsvg
150Summary: Vala API for librsvg library
151Summary(pl.UTF-8): API języka Vala do biblioteki librsvg
152Group: Development/Libraries
153Requires: vala >= 2:0.18
154
155%description -n vala-librsvg
156Vala API for librsvg library.
157
158%description -n vala-librsvg -l pl.UTF-8
159API języka Vala do biblioteki librsvg.
160
d2f85f61 161%package gtk+3
41efbe2b
JB
162Summary: librsvg/GTK+3 based SVG viewer
163Summary(pl.UTF-8): Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3
164Group: X11/Applications/Graphics
d2f85f61 165Requires: %{name} = %{epoch}:%{version}-%{release}
bc93f8de 166Requires: gtk+3 >= 3.10.0
d2f85f61
JB
167
168%description gtk+3
41efbe2b 169librsvg/GTK+3 based SVG viewer.
d2f85f61
JB
170
171%description gtk+3 -l pl.UTF-8
41efbe2b 172Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3.
d2f85f61 173
cc99da29 174%prep
e4690d22 175%setup -q
daf1fb3b 176%patch0 -p1
d0d37948 177
17f42d6a 178%if %{without apidocs}
3f3d0e1a
KK
179echo 'CLEANFILES=' > gtk-doc.make
180echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
181%endif
182
cc99da29 183%build
934cfd64 184%{?with_apidocs:%{__gtkdocize}}
094e0ffa
JB
185%{__libtoolize}
186%{__aclocal}
187%{__autoconf}
adb8dade 188%{__autoheader}
094e0ffa 189%{__automake}
d4f197ce 190%configure \
ff22cf0f 191 %{__enable_disable apidocs gtk-doc} \
cfdffb08 192 --enable-introspection \
5bf5690c
JB
193 --disable-silent-rules \
194 %{__enable_disable static_libs static} \
195 %{?with_vala:--enable-vala} \
cfb03eca 196 --with-html-dir=%{_gtkdocdir}/%{name}
c4caf50c 197%{__make}
198
cc99da29 199%install
2d89ab37 200rm -rf $RPM_BUILD_ROOT
2aca8b1a 201
d4c0a792
MM
202%{__make} install \
203 DESTDIR=$RPM_BUILD_ROOT \
cfb03eca 204 pkgconfigdir=%{_pkgconfigdir}
2aca8b1a 205
b4109bb7 206%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
47b8d8a4 207%{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
9cf84f83 208
c2e97a8f
AO
209%{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
210
211install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
212
2aca8b1a
PG
213%clean
214rm -rf $RPM_BUILD_ROOT
215
3974ae74 216%post
217/sbin/ldconfig
f9f85140 218umask 022
47b8d8a4 219%{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
3974ae74 220
221%postun
222/sbin/ldconfig
f9f85140 223umask 022
3f3d0e1a 224if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
9e46e2bc 225 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
3f3d0e1a 226fi
094e0ffa 227
cc99da29 228%files
2d89ab37 229%defattr(644,root,root,755)
cfb03eca 230%doc ChangeLog AUTHORS NEWS
adb8dade
PZ
231%attr(755,root,root) %{_bindir}/rsvg
232%attr(755,root,root) %{_bindir}/rsvg-convert
edb6ae5a 233%attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
2a1baa24 234%attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
cfdffb08 235%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
d2f85f61 236%attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
725978de 237%{_mandir}/man1/rsvg-convert.1*
cc99da29
KT
238
239%files devel
2d89ab37 240%defattr(644,root,root,755)
edb6ae5a 241%attr(755,root,root) %{_libdir}/librsvg-2.so
9e46e2bc 242%{_includedir}/librsvg-2.0
cfdffb08 243%{_datadir}/gir-1.0/Rsvg-2.0.gir
d2f85f61 244%{_pkgconfigdir}/librsvg-2.0.pc
944586bf 245
3f3d0e1a 246%if %{with static_libs}
944586bf
PG
247%files static
248%defattr(644,root,root,755)
edb6ae5a 249%{_libdir}/librsvg-2.a
3f3d0e1a 250%endif
4983a7a9
MB
251
252%if %{with apidocs}
253%files apidocs
254%defattr(644,root,root,755)
255%{_gtkdocdir}/%{name}
256%endif
d2f85f61 257
5bf5690c
JB
258%if %{with vala}
259%files -n vala-librsvg
260%defattr(644,root,root,755)
261%{_datadir}/vala/vapi/librsvg-2.0.vapi
262%endif
263
d2f85f61
JB
264%files gtk+3
265%defattr(644,root,root,755)
c2e97a8f 266%attr(755,root,root) %{_bindir}/rsvg-view
41efbe2b 267%attr(755,root,root) %{_bindir}/rsvg-view-3
This page took 0.157429 seconds and 4 git commands to generate.