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