]>
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 |
b8bba9dd | 6 | %bcond_without gnomeprint # build without gnome-print support in viewer |
c4caf50c | 7 | %bcond_without gnomevfs # build without gnome-vfs support |
69ac87bd | 8 | %bcond_without gnome # disable gnomeprint and gnomevfs |
578a8396 | 9 | # |
69ac87bd JB |
10 | %if %{without gnome} |
11 | %undefine with_gnomeprint | |
12 | %undefine with_gnomevfs | |
13 | %endif | |
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 |
b5e5e1f5 | 20 | Version: 2.18.0 |
bca89d65 | 21 | Release: 1 |
cfb03eca | 22 | Epoch: 1 |
3e8d876b | 23 | License: LGPL v2+ |
2d89ab37 PG |
24 | Vendor: GNOME |
25 | Group: Libraries | |
b5e5e1f5 MB |
26 | Source0: http://ftp.gnome.org/pub/gnome/sources/librsvg/2.18/%{name}-%{version}.tar.bz2 |
27 | # Source0-md5: cf3b600b874c6940594db512b4260382 | |
5e6c47d1 | 28 | URL: http://librsvg.sourceforge.net/ |
094e0ffa JB |
29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
bca89d65 | 31 | BuildRequires: cairo-devel >= 1.2.4 |
b5e5e1f5 MB |
32 | BuildRequires: glib2-devel >= 1:2.12.13 |
33 | BuildRequires: gtk+2-devel >= 2:2.10.14 | |
3786a5cc | 34 | BuildRequires: gtk-doc-automake |
b5e5e1f5 MB |
35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
36 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.18.0} | |
836d8cf1 | 37 | %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1} |
b5e5e1f5 MB |
38 | %{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.18.0} |
39 | %{?with_libgsf:BuildRequires: libgsf-devel >= 1.14.4} | |
094e0ffa | 40 | BuildRequires: libtool |
b5e5e1f5 | 41 | BuildRequires: libxml2-devel >= 1:2.6.28 |
c4caf50c | 42 | BuildRequires: pkgconfig |
836d8cf1 | 43 | BuildRequires: rpm-pythonprov |
f9f85140 | 44 | Requires(post,postun): gtk+2 |
bca89d65 | 45 | Requires: cairo >= 1.2.4 |
b5e5e1f5 MB |
46 | Requires: glib2 >= 1:2.12.13 |
47 | Requires: gtk+2 >= 2:2.10.14 | |
836d8cf1 | 48 | %{?with_libcroco:Requires: libcroco >= 0.6.1} |
b5e5e1f5 MB |
49 | %{?with_libgsf:Requires: libgsf >= 1.14.4} |
50 | Requires: libxml2 >= 1:2.6.28 | |
6681b37f | 51 | Obsoletes: browser-plugin-librsvg |
2f08eb73 | 52 | Obsoletes: mozilla-plugin-rsvg |
080ab56a | 53 | Obsoletes: librsvg0 |
2c6dfdc7 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d89ab37 | 55 | |
cc99da29 | 56 | %description |
b05ca4c9 | 57 | An library to render SVG (scalable vector graphics), databased upon libart. |
cc99da29 | 58 | |
1ad972be | 59 | %description -l pl.UTF-8 |
27f39052 JB |
60 | Biblioteka do renderowania SVG (skalowalnej grafiki wektorowej) oparta |
61 | na kodzie libart. | |
080ab56a | 62 | |
1ad972be JR |
63 | %description -l pt_BR.UTF-8 |
64 | Biblioteca de Extensão da Eazel. | |
cc99da29 | 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 | |
cc99da29 | 78 | Group: Development/Libraries |
cfb03eca | 79 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b5e5e1f5 MB |
80 | Requires: glib2 >= 1:2.12.13 |
81 | %{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.18.0} | |
82 | Requires: gtk+2-devel >= 2:2.10.14 | |
bca89d65 | 83 | Requires: libart_lgpl-devel >= 2.3.17 |
6681b37f | 84 | %{?with_libcroco:Requires: libcroco-devel >= 0.6.1} |
b5e5e1f5 MB |
85 | %{?with_libgsf:Requires: libgsf-devel >= 1.14.4} |
86 | Requires: libxml2-devel >= 2.6.28 | |
080ab56a | 87 | Obsoletes: librsvg0-devel |
cc99da29 KT |
88 | |
89 | %description devel | |
d4c0a792 MM |
90 | This package provides the necessary development libraries and include |
91 | files to allow you to develop with librsvg. | |
e03e3432 | 92 | |
1ad972be JR |
93 | %description devel -l pl.UTF-8 |
94 | Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania | |
0780b304 | 95 | z wykorzystaniem librsvg. |
cc99da29 | 96 | |
1ad972be JR |
97 | %description devel -l pt_BR.UTF-8 |
98 | Este pacote contém os arquivos necessários para desenvolver com base | |
080ab56a | 99 | na biblioteca librsvg. |
100 | ||
1ad972be JR |
101 | %description devel -l ru.UTF-8 |
102 | Этот пакет содержит необходимые файлы для разработки программ с | |
103 | использованием librsvg. | |
a3344f74 | 104 | |
1ad972be JR |
105 | %description devel -l uk.UTF-8 |
106 | Цей пакет містить необхідні файли для розробки програм з використанням | |
a3344f74 | 107 | librsvg. |
108 | ||
944586bf | 109 | %package static |
0780b304 | 110 | Summary: Static libraries for developing with librsvg |
a0a0a705 ER |
111 | Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg |
112 | Summary(pl.UTF-8): Statyczne biblioteki librsvg | |
113 | Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg | |
944586bf | 114 | Group: Development/Libraries |
cfb03eca | 115 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
944586bf PG |
116 | |
117 | %description static | |
0780b304 | 118 | This package contains static version of librsvg libraries. |
944586bf | 119 | |
1ad972be | 120 | %description static -l pl.UTF-8 |
0780b304 | 121 | Statyczna wersja bibliotek librsvg. |
944586bf | 122 | |
1ad972be JR |
123 | %description static -l pt_BR.UTF-8 |
124 | Bibliotecas estáticas para o desenvolvimento de aplicações com | |
080ab56a | 125 | librsvg. |
126 | ||
cc99da29 | 127 | %prep |
e4690d22 | 128 | %setup -q |
d0d37948 | 129 | |
cc99da29 | 130 | %build |
094e0ffa JB |
131 | %{__libtoolize} |
132 | %{__aclocal} | |
133 | %{__autoconf} | |
134 | %{__automake} | |
d4f197ce | 135 | %configure \ |
c4caf50c | 136 | %{!?with_gnomevfs:--disable-gnome-vfs} \ |
d7502748 | 137 | %{!?with_gnomeprint:--disable-gnome-print} \ |
af4148be | 138 | --disable-mozilla-plugin \ |
165436e0 | 139 | %{?with_apidocs:--enable-gtk-doc} \ |
af4148be JB |
140 | %{!?with_libcroco:--without-croco} \ |
141 | %{!?with_libgsf:--without-svgz} \ | |
cfb03eca | 142 | --with-html-dir=%{_gtkdocdir}/%{name} |
c4caf50c | 143 | %{__make} |
144 | ||
cc99da29 | 145 | %install |
2d89ab37 | 146 | rm -rf $RPM_BUILD_ROOT |
2aca8b1a | 147 | |
d4c0a792 MM |
148 | %{__make} install \ |
149 | DESTDIR=$RPM_BUILD_ROOT \ | |
cfb03eca | 150 | pkgconfigdir=%{_pkgconfigdir} |
2aca8b1a | 151 | |
9cf84f83 JB |
152 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/{engines,loaders}/*.{la,a} |
153 | ||
2aca8b1a PG |
154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
3974ae74 | 157 | %post |
158 | /sbin/ldconfig | |
f9f85140 | 159 | umask 022 |
3974ae74 | 160 | gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
161 | ||
162 | %postun | |
163 | /sbin/ldconfig | |
f9f85140 | 164 | umask 022 |
3974ae74 | 165 | gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders |
094e0ffa | 166 | |
cc99da29 | 167 | %files |
2d89ab37 | 168 | %defattr(644,root,root,755) |
cfb03eca | 169 | %doc ChangeLog AUTHORS NEWS |
edb6ae5a JB |
170 | %attr(755,root,root) %{_bindir}/rsvg* |
171 | %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.* | |
be785900 | 172 | %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/engines/*.so |
be785900 | 173 | %attr(755,root,root) %{_libdir}/gtk-2.0/2.*/loaders/*.so |
9cf84f83 | 174 | %{_mandir}/man1/rsvg.1* |
edb6ae5a | 175 | %{_pixmapsdir}/svg-viewer.svg |
cc99da29 KT |
176 | |
177 | %files devel | |
2d89ab37 | 178 | %defattr(644,root,root,755) |
edb6ae5a JB |
179 | %attr(755,root,root) %{_libdir}/librsvg-2.so |
180 | %{_libdir}/librsvg-2.la | |
181 | %{_pkgconfigdir}/librsvg-2.0.pc | |
d4c0a792 | 182 | %{_includedir}/librsvg-2 |
cfb03eca | 183 | %{_gtkdocdir}/%{name} |
944586bf PG |
184 | |
185 | %files static | |
186 | %defattr(644,root,root,755) | |
edb6ae5a | 187 | %{_libdir}/librsvg-2.a |