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