]>
Commit | Line | Data |
---|---|---|
578a8396 | 1 | # |
fc18e843 | 2 | # Conditional build |
165436e0 | 3 | %bcond_without apidocs # disable gtk-doc |
595e0c59 | 4 | %bcond_without libgsf # build without libgsf (used for run-time decompression) |
cfb03eca | 5 | %bcond_without libcroco # build without CSS support through libcroco |
3f3d0e1a | 6 | %bcond_without static_libs # don't build static library |
578a8396 | 7 | # |
b05ca4c9 | 8 | Summary: A Raph's Library for Rendering SVG Data |
a0a0a705 ER |
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 бібліотека | |
2d89ab37 | 13 | Name: librsvg |
9e46e2bc | 14 | Version: 2.32.0 |
7d99b20d | 15 | Release: 2 |
cfb03eca | 16 | Epoch: 1 |
3e8d876b | 17 | License: LGPL v2+ |
adb8dade | 18 | Group: X11/Libraries |
9e46e2bc MB |
19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.32/%{name}-%{version}.tar.bz2 |
20 | # Source0-md5: b015a9bd80143ec876af489d882dc28b | |
5e6c47d1 | 21 | URL: http://librsvg.sourceforge.net/ |
094e0ffa | 22 | BuildRequires: autoconf |
9e46e2bc | 23 | BuildRequires: automake >= 1:1.9 |
7fc8862e | 24 | BuildRequires: docbook-dtd412-xml |
b4109bb7 | 25 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
9e46e2bc | 26 | BuildRequires: glib2-devel >= 1:2.24.0 |
56bdf509 | 27 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
9e46e2bc | 28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
7fc8862e | 29 | %{?with_apidocs:BuildRequires: gtk-doc-automake} |
836d8cf1 | 30 | %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1} |
b5e5e1f5 | 31 | %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4} |
094e0ffa | 32 | BuildRequires: libtool |
adb8dade | 33 | BuildRequires: libxml2-devel >= 1:2.6.31 |
c4caf50c | 34 | BuildRequires: pkgconfig |
836d8cf1 | 35 | BuildRequires: rpm-pythonprov |
7d99b20d | 36 | BuildRequires: sed >= 4.0 |
1723e4f4 | 37 | Requires(post,postun): /sbin/ldconfig |
9e46e2bc MB |
38 | Requires(post,postun): gdk-pixbuf2 |
39 | Requires: glib2 >= 1:2.24.0 | |
b4109bb7 | 40 | Requires: gdk-pixbuf2 >= 2.0 |
56bdf509 | 41 | Requires: gtk+2 >= 2:2.16.0 |
836d8cf1 | 42 | %{?with_libcroco:Requires: libcroco >= 0.6.1} |
b5e5e1f5 | 43 | %{?with_libgsf:Requires: libgsf >= 1.14.4} |
adb8dade | 44 | Requires: libxml2 >= 1:2.6.31 |
6681b37f | 45 | Obsoletes: browser-plugin-librsvg |
080ab56a | 46 | Obsoletes: librsvg0 |
7fc8862e | 47 | Obsoletes: mozilla-plugin-rsvg |
2c6dfdc7 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d89ab37 | 49 | |
cc871572 AM |
50 | # see gtk+2.spec for source of these ifdefs |
51 | %if "%{_lib}" != "lib" | |
52 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
cc871572 AM |
53 | %define pqext -%{libext} |
54 | %else | |
cc871572 AM |
55 | %define pqext %{nil} |
56 | %endif | |
57 | ||
cc99da29 | 58 | %description |
11e37f78 JB |
59 | An library to render SVG (scalable vector graphics), databased upon |
60 | libart. | |
cc99da29 | 61 | |
1ad972be | 62 | %description -l pl.UTF-8 |
27f39052 JB |
63 | Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta |
64 | na kodzie libart. | |
080ab56a | 65 | |
1ad972be JR |
66 | %description -l ru.UTF-8 |
67 | Библиотека SVG, базирующаяся на libart. | |
a3344f74 | 68 | |
1ad972be JR |
69 | %description -l uk.UTF-8 |
70 | Бібліотека SVG, базована на libart. | |
a3344f74 | 71 | |
cc99da29 | 72 | %package devel |
0780b304 | 73 | Summary: Include files for developing with librsvg |
a0a0a705 ER |
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 | |
adb8dade | 78 | Group: X11/Development/Libraries |
cfb03eca | 79 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9e46e2bc | 80 | Requires: glib2-devel >= 1:2.24.0 |
b4109bb7 | 81 | Requires: gdk-pixbuf2-devel >= 2.0 |
56bdf509 | 82 | Requires: gtk+2-devel >= 2:2.16.0 |
6681b37f | 83 | %{?with_libcroco:Requires: libcroco-devel >= 0.6.1} |
b5e5e1f5 | 84 | %{?with_libgsf:Requires: libgsf-devel >= 1.14.4} |
adb8dade | 85 | Requires: libxml2-devel >= 1:2.6.31 |
080ab56a | 86 | Obsoletes: librsvg0-devel |
cc99da29 KT |
87 | |
88 | %description devel | |
d4c0a792 MM |
89 | This package provides the necessary development libraries and include |
90 | files to allow you to develop with librsvg. | |
e03e3432 | 91 | |
1ad972be JR |
92 | %description devel -l pl.UTF-8 |
93 | Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania | |
0780b304 | 94 | z wykorzystaniem librsvg. |
cc99da29 | 95 | |
1ad972be JR |
96 | %description devel -l pt_BR.UTF-8 |
97 | Este pacote contém os arquivos necessários para desenvolver com base | |
080ab56a | 98 | na biblioteca librsvg. |
99 | ||
1ad972be JR |
100 | %description devel -l ru.UTF-8 |
101 | Этот пакет содержит необходимые файлы для разработки программ с | |
102 | использованием librsvg. | |
a3344f74 | 103 | |
1ad972be JR |
104 | %description devel -l uk.UTF-8 |
105 | Цей пакет містить необхідні файли для розробки програм з використанням | |
a3344f74 | 106 | librsvg. |
107 | ||
944586bf | 108 | %package static |
0780b304 | 109 | Summary: Static libraries for developing with librsvg |
a0a0a705 ER |
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 | |
adb8dade | 113 | Group: X11/Development/Libraries |
cfb03eca | 114 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
944586bf PG |
115 | |
116 | %description static | |
0780b304 | 117 | This package contains static version of librsvg libraries. |
944586bf | 118 | |
1ad972be | 119 | %description static -l pl.UTF-8 |
0780b304 | 120 | Statyczna wersja bibliotek librsvg. |
944586bf | 121 | |
1ad972be JR |
122 | %description static -l pt_BR.UTF-8 |
123 | Bibliotecas estáticas para o desenvolvimento de aplicações com | |
080ab56a | 124 | librsvg. |
125 | ||
4983a7a9 MB |
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 | ||
cc99da29 | 138 | %prep |
e4690d22 | 139 | %setup -q |
d0d37948 | 140 | |
3f3d0e1a | 141 | %if !%{with apidocs} |
3f3d0e1a KK |
142 | echo 'CLEANFILES=' > gtk-doc.make |
143 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
144 | %endif | |
145 | ||
7d99b20d MB |
146 | %{__sed} -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders%{pqext}/' -i configure.in |
147 | ||
cc99da29 | 148 | %build |
934cfd64 | 149 | %{?with_apidocs:%{__gtkdocize}} |
094e0ffa JB |
150 | %{__libtoolize} |
151 | %{__aclocal} | |
152 | %{__autoconf} | |
adb8dade | 153 | %{__autoheader} |
094e0ffa | 154 | %{__automake} |
d4f197ce | 155 | %configure \ |
60c9bff9 | 156 | --disable-silent-rules \ |
3f3d0e1a | 157 | %{!?with_static_libs:--disable-static} \ |
165436e0 | 158 | %{?with_apidocs:--enable-gtk-doc} \ |
af4148be JB |
159 | %{!?with_libcroco:--without-croco} \ |
160 | %{!?with_libgsf:--without-svgz} \ | |
cfb03eca | 161 | --with-html-dir=%{_gtkdocdir}/%{name} |
c4caf50c | 162 | %{__make} |
163 | ||
cc99da29 | 164 | %install |
2d89ab37 | 165 | rm -rf $RPM_BUILD_ROOT |
2aca8b1a | 166 | |
d4c0a792 MM |
167 | %{__make} install \ |
168 | DESTDIR=$RPM_BUILD_ROOT \ | |
cfb03eca | 169 | pkgconfigdir=%{_pkgconfigdir} |
2aca8b1a | 170 | |
b4109bb7 JB |
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} | |
9cf84f83 | 173 | |
2aca8b1a PG |
174 | %clean |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
3974ae74 | 177 | %post |
178 | /sbin/ldconfig | |
f9f85140 | 179 | umask 022 |
9e46e2bc MB |
180 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
181 | exit 0 | |
3974ae74 | 182 | |
183 | %postun | |
184 | /sbin/ldconfig | |
f9f85140 | 185 | umask 022 |
3f3d0e1a | 186 | if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then |
9e46e2bc | 187 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
3f3d0e1a | 188 | fi |
094e0ffa | 189 | |
cc99da29 | 190 | %files |
2d89ab37 | 191 | %defattr(644,root,root,755) |
cfb03eca | 192 | %doc ChangeLog AUTHORS NEWS |
adb8dade PZ |
193 | %attr(755,root,root) %{_bindir}/rsvg |
194 | %attr(755,root,root) %{_bindir}/rsvg-convert | |
195 | %attr(755,root,root) %{_bindir}/rsvg-view | |
edb6ae5a | 196 | %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.* |
2a1baa24 | 197 | %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2 |
adb8dade | 198 | %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/libsvg.so |
9e46e2bc MB |
199 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so |
200 | %{_datadir}/themes/bubble | |
9cf84f83 | 201 | %{_mandir}/man1/rsvg.1* |
edb6ae5a | 202 | %{_pixmapsdir}/svg-viewer.svg |
cc99da29 KT |
203 | |
204 | %files devel | |
2d89ab37 | 205 | %defattr(644,root,root,755) |
edb6ae5a JB |
206 | %attr(755,root,root) %{_libdir}/librsvg-2.so |
207 | %{_libdir}/librsvg-2.la | |
208 | %{_pkgconfigdir}/librsvg-2.0.pc | |
9e46e2bc | 209 | %{_includedir}/librsvg-2.0 |
944586bf | 210 | |
3f3d0e1a | 211 | %if %{with static_libs} |
944586bf PG |
212 | %files static |
213 | %defattr(644,root,root,755) | |
edb6ae5a | 214 | %{_libdir}/librsvg-2.a |
3f3d0e1a | 215 | %endif |
4983a7a9 MB |
216 | |
217 | %if %{with apidocs} | |
218 | %files apidocs | |
219 | %defattr(644,root,root,755) | |
220 | %{_gtkdocdir}/%{name} | |
221 | %endif |