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