]> git.pld-linux.org Git - packages/librsvg.git/blame - librsvg.spec
- release 2 (by relup.sh)
[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
cfb03eca 5%bcond_without libcroco # build without CSS support through libcroco
3f3d0e1a 6%bcond_without static_libs # don't build static library
c2e97a8f 7
41efbe2b 8%define mver 2.40
732be238 9%define pver 0
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}
7ed94daa 17Release: 2
cfb03eca 18Epoch: 1
3e8d876b 19License: LGPL v2+
adb8dade 20Group: X11/Libraries
41efbe2b
JB
21Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
22# Source0-md5: e16a84e9a86a18e5ca6ba95c512db6c6
c2e97a8f 23Source1: rsvg
5e6c47d1 24URL: http://librsvg.sourceforge.net/
094e0ffa 25BuildRequires: autoconf
9e46e2bc 26BuildRequires: automake >= 1:1.9
17f42d6a 27BuildRequires: cairo-devel >= 1.2.0
7fc8862e 28BuildRequires: docbook-dtd412-xml
41efbe2b 29BuildRequires: gdk-pixbuf2-devel >= 2.20
9e46e2bc 30BuildRequires: glib2-devel >= 1:2.24.0
17f42d6a 31BuildRequires: gobject-introspection-devel >= 0.10.8
c2e97a8f 32%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0}
41efbe2b 33BuildRequires: gtk+3-devel >= 3.2.0
9e46e2bc 34%{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
60409033 35%{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13}
836d8cf1 36%{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
17f42d6a
JB
37BuildRequires: libtool >= 2:2.0
38BuildRequires: libxml2-devel >= 1:2.7.0
732be238 39BuildRequires: pango-devel >= 1:1.32.6
c4caf50c 40BuildRequires: pkgconfig
836d8cf1 41BuildRequires: rpm-pythonprov
7d99b20d 42BuildRequires: sed >= 4.0
2628f610
AF
43BuildRequires: tar >= 1:1.22
44BuildRequires: xz
1723e4f4 45Requires(post,postun): /sbin/ldconfig
17f42d6a 46Requires: cairo >= 1.2.0
41efbe2b 47Requires: gdk-pixbuf2 >= 2.20
47b8d8a4 48Requires: glib2 >= 1:2.24.0
836d8cf1 49%{?with_libcroco:Requires: libcroco >= 0.6.1}
17f42d6a
JB
50Requires: libxml2 >= 1:2.7.0
51Requires: pango >= 1:1.16.0
6681b37f 52Obsoletes: browser-plugin-librsvg
080ab56a 53Obsoletes: librsvg0
41efbe2b 54Obsoletes: librsvg-gtk+2
7fc8862e 55Obsoletes: mozilla-plugin-rsvg
2c6dfdc7 56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2d89ab37 57
d2f85f61 58# see gdk-pixbuf2.spec for source of these ifdefs
cc871572
AM
59%if "%{_lib}" != "lib"
60%define libext %(lib="%{_lib}"; echo ${lib#lib})
cc871572
AM
61%define pqext -%{libext}
62%else
cc871572
AM
63%define pqext %{nil}
64%endif
65
cc99da29 66%description
11e37f78
JB
67An library to render SVG (scalable vector graphics), databased upon
68libart.
cc99da29 69
1ad972be 70%description -l pl.UTF-8
27f39052
JB
71Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
72na kodzie libart.
080ab56a 73
1ad972be
JR
74%description -l ru.UTF-8
75Библиотека SVG, базирующаяся на libart.
a3344f74 76
1ad972be
JR
77%description -l uk.UTF-8
78Бібліотека SVG, базована на libart.
a3344f74 79
cc99da29 80%package devel
0780b304 81Summary: Include files for developing with librsvg
a0a0a705
ER
82Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
83Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
84Summary(ru.UTF-8): Библиотечные линки и файлы заголовков для разработки с librsvg
85Summary(uk.UTF-8): Бібліотечні лінки та файли заголовків для розробки з librsvg
adb8dade 86Group: X11/Development/Libraries
cfb03eca 87Requires: %{name} = %{epoch}:%{version}-%{release}
17f42d6a 88Requires: cairo-devel >= 1.2.0
41efbe2b 89Requires: gdk-pixbuf2-devel >= 2.20
ff22cf0f 90Requires: glib2-devel >= 1:2.24.0
41efbe2b 91Requires: gtk+3-devel >= 3.2.0
6681b37f 92%{?with_libcroco:Requires: libcroco-devel >= 0.6.1}
17f42d6a
JB
93Requires: libxml2-devel >= 1:2.7.0
94Requires: pango-devel >= 1:1.16.0
080ab56a 95Obsoletes: librsvg0-devel
cc99da29
KT
96
97%description devel
d4c0a792
MM
98This package provides the necessary development libraries and include
99files to allow you to develop with librsvg.
e03e3432 100
1ad972be
JR
101%description devel -l pl.UTF-8
102Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
0780b304 103z wykorzystaniem librsvg.
cc99da29 104
1ad972be
JR
105%description devel -l pt_BR.UTF-8
106Este pacote contém os arquivos necessários para desenvolver com base
080ab56a 107na biblioteca librsvg.
108
1ad972be
JR
109%description devel -l ru.UTF-8
110Этот пакет содержит необходимые файлы для разработки программ с
111использованием librsvg.
a3344f74 112
1ad972be
JR
113%description devel -l uk.UTF-8
114Цей пакет містить необхідні файли для розробки програм з використанням
a3344f74 115librsvg.
116
944586bf 117%package static
0780b304 118Summary: Static libraries for developing with librsvg
a0a0a705
ER
119Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
120Summary(pl.UTF-8): Statyczne biblioteki librsvg
121Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
adb8dade 122Group: X11/Development/Libraries
cfb03eca 123Requires: %{name}-devel = %{epoch}:%{version}-%{release}
944586bf
PG
124
125%description static
0780b304 126This package contains static version of librsvg libraries.
944586bf 127
1ad972be 128%description static -l pl.UTF-8
0780b304 129Statyczna wersja bibliotek librsvg.
944586bf 130
1ad972be
JR
131%description static -l pt_BR.UTF-8
132Bibliotecas estáticas para o desenvolvimento de aplicações com
080ab56a 133librsvg.
134
4983a7a9
MB
135%package apidocs
136Summary: librsvg API documentation
137Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg
138Group: Documentation
139Requires: gtk-doc-common
140
141%description apidocs
142librsvg API documentation.
143
144%description apidocs -l pl.UTF-8
145Dokumentacja API biblioteki librsvg.
146
d2f85f61 147%package gtk+3
41efbe2b
JB
148Summary: librsvg/GTK+3 based SVG viewer
149Summary(pl.UTF-8): Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3
150Group: X11/Applications/Graphics
d2f85f61 151Requires: %{name} = %{epoch}:%{version}-%{release}
41efbe2b 152Requires: gtk+3 >= 3.2.0
d2f85f61
JB
153
154%description gtk+3
41efbe2b 155librsvg/GTK+3 based SVG viewer.
d2f85f61
JB
156
157%description gtk+3 -l pl.UTF-8
41efbe2b 158Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3.
d2f85f61 159
cc99da29 160%prep
e4690d22 161%setup -q
d0d37948 162
17f42d6a 163%if %{without apidocs}
3f3d0e1a
KK
164echo 'CLEANFILES=' > gtk-doc.make
165echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
166%endif
167
2066ec98 168# vala not ready yet here
41efbe2b 169#echo 'AC_DEFUN([VAPIGEN_CHECK],[AM_CONDITIONAL([ENABLE_VAPIGEN], [false])])' >> acinclude.m4
2066ec98 170
cc99da29 171%build
ff22cf0f 172mkdir m4
934cfd64 173%{?with_apidocs:%{__gtkdocize}}
094e0ffa
JB
174%{__libtoolize}
175%{__aclocal}
176%{__autoconf}
adb8dade 177%{__autoheader}
094e0ffa 178%{__automake}
d4f197ce 179%configure \
60c9bff9 180 --disable-silent-rules \
ff22cf0f
ŁK
181 %{__enable_disable static_libs static} \
182 %{__enable_disable apidocs gtk-doc} \
cfdffb08 183 --enable-introspection \
ff22cf0f 184 %{__with_without libcroco croco} \
cfb03eca 185 --with-html-dir=%{_gtkdocdir}/%{name}
c4caf50c 186%{__make}
187
cc99da29 188%install
2d89ab37 189rm -rf $RPM_BUILD_ROOT
2aca8b1a 190
d4c0a792
MM
191%{__make} install \
192 DESTDIR=$RPM_BUILD_ROOT \
cfb03eca 193 pkgconfigdir=%{_pkgconfigdir}
2aca8b1a 194
b4109bb7 195%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
47b8d8a4 196%{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
9cf84f83 197
c2e97a8f
AO
198%{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view
199
200install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
201
2aca8b1a
PG
202%clean
203rm -rf $RPM_BUILD_ROOT
204
3974ae74 205%post
206/sbin/ldconfig
f9f85140 207umask 022
47b8d8a4 208%{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
3974ae74 209
210%postun
211/sbin/ldconfig
f9f85140 212umask 022
3f3d0e1a 213if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
9e46e2bc 214 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
3f3d0e1a 215fi
094e0ffa 216
cc99da29 217%files
2d89ab37 218%defattr(644,root,root,755)
cfb03eca 219%doc ChangeLog AUTHORS NEWS
adb8dade
PZ
220%attr(755,root,root) %{_bindir}/rsvg
221%attr(755,root,root) %{_bindir}/rsvg-convert
edb6ae5a 222%attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
2a1baa24 223%attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
cfdffb08 224%{_libdir}/girepository-1.0/Rsvg-2.0.typelib
d2f85f61 225%attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
725978de 226%{_mandir}/man1/rsvg-convert.1*
cc99da29
KT
227
228%files devel
2d89ab37 229%defattr(644,root,root,755)
edb6ae5a 230%attr(755,root,root) %{_libdir}/librsvg-2.so
9e46e2bc 231%{_includedir}/librsvg-2.0
cfdffb08 232%{_datadir}/gir-1.0/Rsvg-2.0.gir
d2f85f61 233%{_pkgconfigdir}/librsvg-2.0.pc
944586bf 234
3f3d0e1a 235%if %{with static_libs}
944586bf
PG
236%files static
237%defattr(644,root,root,755)
edb6ae5a 238%{_libdir}/librsvg-2.a
3f3d0e1a 239%endif
4983a7a9
MB
240
241%if %{with apidocs}
242%files apidocs
243%defattr(644,root,root,755)
244%{_gtkdocdir}/%{name}
245%endif
d2f85f61 246
d2f85f61
JB
247%files gtk+3
248%defattr(644,root,root,755)
c2e97a8f 249%attr(755,root,root) %{_bindir}/rsvg-view
41efbe2b 250%attr(755,root,root) %{_bindir}/rsvg-view-3
This page took 0.270596 seconds and 4 git commands to generate.