]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- up to 2.34.1 (CVE-2011-3146)
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  gtk3            # disable gtk+3
5 %bcond_without  libgsf          # build without libgsf (used for run-time decompression)
6 %bcond_without  libcroco        # build without CSS support through libcroco
7 %bcond_without  static_libs     # don't build static library
8 #
9 Summary:        A Raph's Library for Rendering SVG Data
10 Summary(pl.UTF-8):      Biblioteka Raph's SVG do renderowania danych SVG
11 Summary(pt_BR.UTF-8):   Biblioteca SVG
12 Summary(ru.UTF-8):      SVG библиотека
13 Summary(uk.UTF-8):      SVG бібліотека
14 Name:           librsvg
15 Version:        2.34.1
16 Release:        1
17 Epoch:          1
18 License:        LGPL v2+
19 Group:          X11/Libraries
20 Source0:        http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.34/%{name}-%{version}.tar.xz
21 # Source0-md5:  1f363ec36eb1428ccbdd155325717ae8
22 URL:            http://librsvg.sourceforge.net/
23 BuildRequires:  autoconf
24 BuildRequires:  automake >= 1:1.9
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  gdk-pixbuf2-devel >= 2.0
27 BuildRequires:  glib2-devel >= 1:2.24.0
28 BuildRequires:  gtk+2-devel >= 2:2.16.0
29 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
30 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.13}
31 %{?with_apidocs:BuildRequires:  gtk-doc-automake}
32 %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1}
33 %{?with_libgsf:BuildRequires:   libgsf-devel >= 1.14.4}
34 BuildRequires:  libtool
35 BuildRequires:  libxml2-devel >= 1:2.6.31
36 BuildRequires:  pkgconfig
37 BuildRequires:  rpm-pythonprov
38 BuildRequires:  sed >= 4.0
39 BuildRequires:  tar >= 1:1.22
40 BuildRequires:  xz
41 Requires(post,postun):  /sbin/ldconfig
42 Requires(post,postun):  gdk-pixbuf2 >= 2.0
43 Requires:       gdk-pixbuf2 >= 2.0
44 Requires:       glib2 >= 1:2.24.0
45 %{?with_libcroco:Requires:      libcroco >= 0.6.1}
46 %{?with_libgsf:Requires:        libgsf >= 1.14.4}
47 Requires:       libxml2 >= 1:2.6.31
48 Obsoletes:      browser-plugin-librsvg
49 Obsoletes:      librsvg0
50 Obsoletes:      mozilla-plugin-rsvg
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 # see gdk-pixbuf2.spec for source of these ifdefs
54 %if "%{_lib}" != "lib"
55 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
56 %define         pqext           -%{libext}
57 %else
58 %define         pqext           %{nil}
59 %endif
60
61 %description
62 An library to render SVG (scalable vector graphics), databased upon
63 libart.
64
65 %description -l pl.UTF-8
66 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
67 na kodzie libart.
68
69 %description -l ru.UTF-8
70 Библиотека SVG, базирующаяся на libart.
71
72 %description -l uk.UTF-8
73 Бібліотека SVG, базована на libart.
74
75 %package devel
76 Summary:        Include files for developing with librsvg
77 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
78 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
79 Summary(ru.UTF-8):      Библиотечные линки и файлы заголовков для разработки с librsvg
80 Summary(uk.UTF-8):      Бібліотечні лінки та файли заголовків для розробки з librsvg
81 Group:          X11/Development/Libraries
82 Requires:       %{name} = %{epoch}:%{version}-%{release}
83 Requires:       glib2-devel >= 1:2.24.0
84 Requires:       gdk-pixbuf2-devel >= 2.0
85 Requires:       gtk+2-devel >= 2:2.16.0
86 %{?with_libcroco:Requires:      libcroco-devel >= 0.6.1}
87 %{?with_libgsf:Requires:        libgsf-devel >= 1.14.4}
88 Requires:       libxml2-devel >= 1:2.6.31
89 Obsoletes:      librsvg0-devel
90
91 %description devel
92 This package provides the necessary development libraries and include
93 files to allow you to develop with librsvg.
94
95 %description devel -l pl.UTF-8
96 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
97 z wykorzystaniem librsvg.
98
99 %description devel -l pt_BR.UTF-8
100 Este pacote contém os arquivos necessários para desenvolver com base
101 na biblioteca librsvg.
102
103 %description devel -l ru.UTF-8
104 Этот пакет содержит необходимые файлы для разработки программ с
105 использованием librsvg.
106
107 %description devel -l uk.UTF-8
108 Цей пакет містить необхідні файли для розробки програм з використанням
109 librsvg.
110
111 %package static
112 Summary:        Static libraries for developing with librsvg
113 Summary(es.UTF-8):      Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
114 Summary(pl.UTF-8):      Statyczne biblioteki librsvg
115 Summary(pt_BR.UTF-8):   Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
116 Group:          X11/Development/Libraries
117 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
118
119 %description static
120 This package contains static version of librsvg libraries.
121
122 %description static -l pl.UTF-8
123 Statyczna wersja bibliotek librsvg.
124
125 %description static -l pt_BR.UTF-8
126 Bibliotecas estáticas para o desenvolvimento de aplicações com
127 librsvg.
128
129 %package apidocs
130 Summary:        librsvg API documentation
131 Summary(pl.UTF-8):      Dokumentacja API biblioteki librsvg
132 Group:          Documentation
133 Requires:       gtk-doc-common
134
135 %description apidocs
136 librsvg API documentation.
137
138 %description apidocs -l pl.UTF-8
139 Dokumentacja API biblioteki librsvg.
140
141 %package gtk+2
142 Summary:        librsvg/GTK+2 based SVG theme engine and viewer
143 Summary(pl.UTF-8):      Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+2
144 Group:          X11/Libraries
145 Requires:       %{name} = %{epoch}:%{version}-%{release}
146 Requires:       gtk+2 >= 2:2.16.0
147
148 %description gtk+2
149 librsvg/GTK+2 based SVG theme engine and viewer.
150
151 %description gtk+2 -l pl.UTF-8
152 Silnik motywów oraz przeglądarka plików SVG oparte na bibliotekach
153 librsvg/GTK+2.
154
155 %package gtk+3
156 Summary:        librsvg/GTK+3 based SVG theme and viewer
157 Summary(pl.UTF-8):      Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3
158 Group:          X11/Libraries
159 Requires:       %{name} = %{epoch}:%{version}-%{release}
160 Requires:       gtk+3 >= 3.0.0
161
162 %description gtk+3
163 librsvg/GTK+3 based SVG theme and viewer.
164
165 %description gtk+3 -l pl.UTF-8
166 Motyw i przeglądarka plików SVG oparte na bibliotekach librsvg/GTK+3.
167
168 %prep
169 %setup -q
170
171 %if !%{with apidocs}
172 echo 'CLEANFILES=' > gtk-doc.make
173 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
174 %endif
175
176 %{__sed} -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders%{pqext}/' -i configure.in
177
178 %build
179 %{?with_apidocs:%{__gtkdocize}}
180 %{__libtoolize}
181 %{__aclocal}
182 %{__autoconf}
183 %{__autoheader}
184 %{__automake}
185 %configure \
186         --disable-silent-rules \
187         %{!?with_static_libs:--disable-static} \
188         %{?with_apidocs:--enable-gtk-doc} \
189         %{!?with_libcroco:--without-croco} \
190         %{!?with_libgsf:--without-svgz} \
191         --with-html-dir=%{_gtkdocdir}/%{name}
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT \
199         pkgconfigdir=%{_pkgconfigdir}
200
201 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/engines/*.{la,a}
202 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
203 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
204
205 %clean
206 rm -rf $RPM_BUILD_ROOT
207
208 %post
209 /sbin/ldconfig
210 umask 022
211 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
212
213 %postun
214 /sbin/ldconfig
215 umask 022
216 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
217         %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
218 fi
219
220 %files
221 %defattr(644,root,root,755)
222 %doc ChangeLog AUTHORS NEWS
223 %attr(755,root,root) %{_bindir}/rsvg
224 %attr(755,root,root) %{_bindir}/rsvg-convert
225 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
226 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
227 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
228 %dir %{_datadir}/themes/bubble
229 %{_mandir}/man1/rsvg.1*
230 %{_pixmapsdir}/svg-viewer.svg
231
232 %files devel
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/librsvg-2.so
235 %{_includedir}/librsvg-2.0
236 %{_pkgconfigdir}/librsvg-2.0.pc
237
238 %if %{with static_libs}
239 %files static
240 %defattr(644,root,root,755)
241 %{_libdir}/librsvg-2.a
242 %endif
243
244 %if %{with apidocs}
245 %files apidocs
246 %defattr(644,root,root,755)
247 %{_gtkdocdir}/%{name}
248 %endif
249
250 %files gtk+2
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_bindir}/rsvg-view
253 %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so
254 %{_datadir}/themes/bubble/gtk-2.0
255
256 %if %{with gtk3}
257 %files gtk+3
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_bindir}/rsvg-view-3
260 %{_datadir}/themes/bubble/gtk-3.0
261 %endif
This page took 0.058067 seconds and 4 git commands to generate.