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