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