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