]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- updated to 2.46.1
[packages/librsvg.git] / librsvg.spec
1 #
2 # Conditional build
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_without  static_libs     # don't build static library
5 %bcond_without  vala            # Vala API (vala up to 0.38.x already contains librsvg-2.0.vapi)
6
7 %define         mver    2.46
8 %define         pver    1
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:        %{mver}.%{pver}
16 Release:        1
17 Epoch:          1
18 License:        LGPL v2+
19 Group:          X11/Libraries
20 Source0:        http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz
21 # Source0-md5:  39303e0bf0332c970fed0543956acb70
22 Source1:        rsvg
23 Patch0:         x32.patch
24 Patch1:         %{name}-gtkdoc.patch
25 URL:            http://librsvg.sourceforge.net/
26 BuildRequires:  autoconf >= 2.50
27 BuildRequires:  automake >= 1:1.9
28 BuildRequires:  cairo-devel >= 1.16.0
29 BuildRequires:  cairo-gobject-devel >= 1.16.0
30 BuildRequires:  cargo
31 BuildRequires:  docbook-dtd43-xml
32 BuildRequires:  fontconfig-devel
33 # pkgconfig(freetype) >= 20.0.14
34 BuildRequires:  freetype-devel >= 1:2.8
35 BuildRequires:  gdk-pixbuf2-devel >= 2.20
36 BuildRequires:  gettext-tools >= 0.19.8
37 BuildRequires:  glib2-devel >= 1:2.48.0
38 BuildRequires:  gobject-introspection-devel >= 0.10.8
39 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.13}
40 %{?with_apidocs:BuildRequires:  gtk-doc-automake >= 1.13}
41 BuildRequires:  libcroco-devel >= 0.6.1
42 BuildRequires:  libtool >= 2:2.0
43 BuildRequires:  libxml2-devel >= 1:2.9.0
44 BuildRequires:  pango-devel >= 1:1.38.0
45 BuildRequires:  pkgconfig
46 BuildRequires:  rpm-pythonprov
47 BuildRequires:  rust >= 1.34
48 BuildRequires:  sed >= 4.0
49 BuildRequires:  tar >= 1:1.22
50 %{?with_vala:BuildRequires:     vala >= 2:0.18}
51 BuildRequires:  xz
52 Requires(post,postun):  /sbin/ldconfig
53 Requires:       cairo-gobject >= 1.16.0
54 Requires:       freetype >= 1:2.8
55 Requires:       gdk-pixbuf2 >= 2.20
56 Requires:       glib2 >= 1:2.48.0
57 Requires:       libcroco >= 0.6.1
58 Requires:       libxml2 >= 1:2.9.0
59 Requires:       pango >= 1:1.38.0
60 Obsoletes:      browser-plugin-librsvg
61 Obsoletes:      librsvg-gtk+2
62 Obsoletes:      librsvg-gtk+3
63 Obsoletes:      librsvg0
64 Obsoletes:      mozilla-plugin-rsvg
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 # see gdk-pixbuf2.spec for source of these ifdefs
68 %if "%{_lib}" != "lib"
69 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
70 %define         pqext           -%{libext}
71 %else
72 %define         pqext           %{nil}
73 %endif
74
75 %description
76 An library to render SVG (scalable vector graphics), databased upon
77 libart.
78
79 %description -l pl.UTF-8
80 Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta
81 na kodzie libart.
82
83 %description -l ru.UTF-8
84 Библиотека SVG, базирующаяся на libart.
85
86 %description -l uk.UTF-8
87 Бібліотека SVG, базована на libart.
88
89 %package devel
90 Summary:        Include files for developing with librsvg
91 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia oprogramowania z użyciem librsvg
92 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimento com a librsvg
93 Summary(ru.UTF-8):      Библиотечные линки и файлы заголовков для разработки с librsvg
94 Summary(uk.UTF-8):      Бібліотечні лінки та файли заголовків для розробки з librsvg
95 Group:          X11/Development/Libraries
96 Requires:       %{name} = %{epoch}:%{version}-%{release}
97 Requires:       cairo-gobject-devel >= 1.16.0
98 Requires:       freetype-devel >= 1:2.8
99 Requires:       gdk-pixbuf2-devel >= 2.20
100 Requires:       glib2-devel >= 1:2.48.0
101 Requires:       libcroco-devel >= 0.6.1
102 Requires:       libxml2-devel >= 1:2.9.0
103 Requires:       pango-devel >= 1:1.38.0
104 Obsoletes:      librsvg0-devel
105
106 %description devel
107 This package provides the necessary development libraries and include
108 files to allow you to develop with librsvg.
109
110 %description devel -l pl.UTF-8
111 Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania
112 z wykorzystaniem librsvg.
113
114 %description devel -l pt_BR.UTF-8
115 Este pacote contém os arquivos necessários para desenvolver com base
116 na biblioteca librsvg.
117
118 %description devel -l ru.UTF-8
119 Этот пакет содержит необходимые файлы для разработки программ с
120 использованием librsvg.
121
122 %description devel -l uk.UTF-8
123 Цей пакет містить необхідні файли для розробки програм з використанням
124 librsvg.
125
126 %package static
127 Summary:        Static libraries for developing with librsvg
128 Summary(es.UTF-8):      Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg
129 Summary(pl.UTF-8):      Statyczne biblioteki librsvg
130 Summary(pt_BR.UTF-8):   Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg
131 Group:          X11/Development/Libraries
132 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
133
134 %description static
135 This package contains static version of librsvg libraries.
136
137 %description static -l pl.UTF-8
138 Statyczna wersja bibliotek librsvg.
139
140 %description static -l pt_BR.UTF-8
141 Bibliotecas estáticas para o desenvolvimento de aplicações com
142 librsvg.
143
144 %package apidocs
145 Summary:        librsvg API documentation
146 Summary(pl.UTF-8):      Dokumentacja API biblioteki librsvg
147 Group:          Documentation
148 Requires:       gtk-doc-common
149 %if "%{_rpmversion}" >= "5"
150 BuildArch:      noarch
151 %endif
152
153 %description apidocs
154 librsvg API documentation.
155
156 %description apidocs -l pl.UTF-8
157 Dokumentacja API biblioteki librsvg.
158
159 %package -n vala-librsvg
160 Summary:        Vala API for librsvg library
161 Summary(pl.UTF-8):      API języka Vala do biblioteki librsvg
162 Group:          Development/Libraries
163 Requires:       vala >= 2:0.40
164
165 %description -n vala-librsvg
166 Vala API for librsvg library.
167
168 %description -n vala-librsvg -l pl.UTF-8
169 API języka Vala do biblioteki librsvg.
170
171 %prep
172 %setup -q
173 %patch0 -p1
174 %patch1 -p1
175
176 %if %{without apidocs}
177 echo 'CLEANFILES=' > gtk-doc.make
178 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
179 %endif
180
181 %build
182 %{?with_apidocs:%{__gtkdocize}}
183 %{__libtoolize}
184 %{__aclocal} -I m4
185 %{__autoconf}
186 %{__autoheader}
187 %{__automake}
188 %configure \
189         %{__enable_disable apidocs gtk-doc} \
190         --enable-introspection \
191         --disable-silent-rules \
192         %{__enable_disable static_libs static} \
193         %{?with_vala:--enable-vala} \
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}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a}
205 %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la
206
207 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}
208
209 %find_lang %{name}
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post
215 /sbin/ldconfig
216 umask 022
217 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
218
219 %postun
220 /sbin/ldconfig
221 umask 022
222 if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then
223         %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
224 fi
225
226 %files -f %{name}.lang
227 %defattr(644,root,root,755)
228 %doc AUTHORS NEWS
229 %attr(755,root,root) %{_bindir}/rsvg
230 %attr(755,root,root) %{_bindir}/rsvg-convert
231 %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2
233 %{_libdir}/girepository-1.0/Rsvg-2.0.typelib
234 %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so
235 %{_datadir}/thumbnailers/librsvg.thumbnailer
236 %{_mandir}/man1/rsvg-convert.1*
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 %if %{with vala}
258 %files -n vala-librsvg
259 %defattr(644,root,root,755)
260 %{_datadir}/vala/vapi/librsvg-2.0.vapi
261 %endif
This page took 0.052454 seconds and 4 git commands to generate.