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