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