]>
Commit | Line | Data |
---|---|---|
578a8396 | 1 | # |
fc18e843 | 2 | # Conditional build |
165436e0 | 3 | %bcond_without apidocs # disable gtk-doc |
17f42d6a | 4 | %bcond_without gtk2 # legacy gtk+2 support |
cfb03eca | 5 | %bcond_without libcroco # build without CSS support through libcroco |
3f3d0e1a | 6 | %bcond_without static_libs # don't build static library |
c2e97a8f | 7 | |
41efbe2b | 8 | %define mver 2.40 |
29233d8a | 9 | %define pver 2 |
b05ca4c9 | 10 | Summary: A Raph's Library for Rendering SVG Data |
a0a0a705 ER |
11 | Summary(pl.UTF-8): Biblioteka Raph's SVG do renderowania danych SVG |
12 | Summary(pt_BR.UTF-8): Biblioteca SVG | |
13 | Summary(ru.UTF-8): SVG библиотека | |
14 | Summary(uk.UTF-8): SVG бібліотека | |
2d89ab37 | 15 | Name: librsvg |
41efbe2b | 16 | Version: %{mver}.%{pver} |
50a3c512 | 17 | Release: 1 |
cfb03eca | 18 | Epoch: 1 |
3e8d876b | 19 | License: LGPL v2+ |
adb8dade | 20 | Group: X11/Libraries |
41efbe2b | 21 | Source0: http://ftp.gnome.org/pub/GNOME/sources/librsvg/%{mver}/%{name}-%{version}.tar.xz |
29233d8a | 22 | # Source0-md5: acdecdb9f08f3bf662a68bf7dafb8b82 |
c2e97a8f | 23 | Source1: rsvg |
5e6c47d1 | 24 | URL: http://librsvg.sourceforge.net/ |
094e0ffa | 25 | BuildRequires: autoconf |
9e46e2bc | 26 | BuildRequires: automake >= 1:1.9 |
17f42d6a | 27 | BuildRequires: cairo-devel >= 1.2.0 |
7fc8862e | 28 | BuildRequires: docbook-dtd412-xml |
41efbe2b | 29 | BuildRequires: gdk-pixbuf2-devel >= 2.20 |
9e46e2bc | 30 | BuildRequires: glib2-devel >= 1:2.24.0 |
17f42d6a | 31 | BuildRequires: gobject-introspection-devel >= 0.10.8 |
c2e97a8f | 32 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.16.0} |
41efbe2b | 33 | BuildRequires: gtk+3-devel >= 3.2.0 |
9e46e2bc | 34 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
60409033 | 35 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.13} |
836d8cf1 | 36 | %{?with_libcroco:BuildRequires: libcroco-devel >= 0.6.1} |
17f42d6a JB |
37 | BuildRequires: libtool >= 2:2.0 |
38 | BuildRequires: libxml2-devel >= 1:2.7.0 | |
732be238 | 39 | BuildRequires: pango-devel >= 1:1.32.6 |
c4caf50c | 40 | BuildRequires: pkgconfig |
836d8cf1 | 41 | BuildRequires: rpm-pythonprov |
7d99b20d | 42 | BuildRequires: sed >= 4.0 |
2628f610 AF |
43 | BuildRequires: tar >= 1:1.22 |
44 | BuildRequires: xz | |
1723e4f4 | 45 | Requires(post,postun): /sbin/ldconfig |
17f42d6a | 46 | Requires: cairo >= 1.2.0 |
41efbe2b | 47 | Requires: gdk-pixbuf2 >= 2.20 |
47b8d8a4 | 48 | Requires: glib2 >= 1:2.24.0 |
836d8cf1 | 49 | %{?with_libcroco:Requires: libcroco >= 0.6.1} |
17f42d6a | 50 | Requires: libxml2 >= 1:2.7.0 |
50a3c512 | 51 | Requires: pango >= 1:1.32.6 |
6681b37f | 52 | Obsoletes: browser-plugin-librsvg |
41efbe2b | 53 | Obsoletes: librsvg-gtk+2 |
29233d8a | 54 | Obsoletes: librsvg0 |
7fc8862e | 55 | Obsoletes: mozilla-plugin-rsvg |
2c6dfdc7 | 56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d89ab37 | 57 | |
d2f85f61 | 58 | # see gdk-pixbuf2.spec for source of these ifdefs |
cc871572 AM |
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} |
17f42d6a | 88 | Requires: cairo-devel >= 1.2.0 |
41efbe2b | 89 | Requires: gdk-pixbuf2-devel >= 2.20 |
ff22cf0f | 90 | Requires: glib2-devel >= 1:2.24.0 |
41efbe2b | 91 | Requires: gtk+3-devel >= 3.2.0 |
6681b37f | 92 | %{?with_libcroco:Requires: libcroco-devel >= 0.6.1} |
17f42d6a | 93 | Requires: libxml2-devel >= 1:2.7.0 |
50a3c512 | 94 | Requires: pango-devel >= 1:1.32.6 |
080ab56a | 95 | Obsoletes: librsvg0-devel |
cc99da29 KT |
96 | |
97 | %description devel | |
d4c0a792 MM |
98 | This package provides the necessary development libraries and include |
99 | files to allow you to develop with librsvg. | |
e03e3432 | 100 | |
1ad972be JR |
101 | %description devel -l pl.UTF-8 |
102 | Pakiet zawiera pliki nagłówkowe potrzebne do tworzenia oprogramowania | |
0780b304 | 103 | z wykorzystaniem librsvg. |
cc99da29 | 104 | |
1ad972be JR |
105 | %description devel -l pt_BR.UTF-8 |
106 | Este pacote contém os arquivos necessários para desenvolver com base | |
080ab56a | 107 | na biblioteca librsvg. |
108 | ||
1ad972be JR |
109 | %description devel -l ru.UTF-8 |
110 | Этот пакет содержит необходимые файлы для разработки программ с | |
111 | использованием librsvg. | |
a3344f74 | 112 | |
1ad972be JR |
113 | %description devel -l uk.UTF-8 |
114 | Цей пакет містить необхідні файли для розробки програм з використанням | |
a3344f74 | 115 | librsvg. |
116 | ||
944586bf | 117 | %package static |
0780b304 | 118 | Summary: Static libraries for developing with librsvg |
a0a0a705 ER |
119 | Summary(es.UTF-8): Archivos estáticos necesarios para el desarrollo de aplicaciones con librsvg |
120 | Summary(pl.UTF-8): Statyczne biblioteki librsvg | |
121 | Summary(pt_BR.UTF-8): Arquivos estáticos necessários para o desenvolvimento de aplicações com librsvg | |
adb8dade | 122 | Group: X11/Development/Libraries |
cfb03eca | 123 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
944586bf PG |
124 | |
125 | %description static | |
0780b304 | 126 | This package contains static version of librsvg libraries. |
944586bf | 127 | |
1ad972be | 128 | %description static -l pl.UTF-8 |
0780b304 | 129 | Statyczna wersja bibliotek librsvg. |
944586bf | 130 | |
1ad972be JR |
131 | %description static -l pt_BR.UTF-8 |
132 | Bibliotecas estáticas para o desenvolvimento de aplicações com | |
080ab56a | 133 | librsvg. |
134 | ||
4983a7a9 MB |
135 | %package apidocs |
136 | Summary: librsvg API documentation | |
137 | Summary(pl.UTF-8): Dokumentacja API biblioteki librsvg | |
138 | Group: Documentation | |
139 | Requires: gtk-doc-common | |
140 | ||
141 | %description apidocs | |
142 | librsvg API documentation. | |
143 | ||
144 | %description apidocs -l pl.UTF-8 | |
145 | Dokumentacja API biblioteki librsvg. | |
146 | ||
d2f85f61 | 147 | %package gtk+3 |
41efbe2b JB |
148 | Summary: librsvg/GTK+3 based SVG viewer |
149 | Summary(pl.UTF-8): Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3 | |
150 | Group: X11/Applications/Graphics | |
d2f85f61 | 151 | Requires: %{name} = %{epoch}:%{version}-%{release} |
41efbe2b | 152 | Requires: gtk+3 >= 3.2.0 |
d2f85f61 JB |
153 | |
154 | %description gtk+3 | |
41efbe2b | 155 | librsvg/GTK+3 based SVG viewer. |
d2f85f61 JB |
156 | |
157 | %description gtk+3 -l pl.UTF-8 | |
41efbe2b | 158 | Przeglądarka plików SVG oparta na bibliotekach librsvg/GTK+3. |
d2f85f61 | 159 | |
cc99da29 | 160 | %prep |
e4690d22 | 161 | %setup -q |
d0d37948 | 162 | |
17f42d6a | 163 | %if %{without apidocs} |
3f3d0e1a KK |
164 | echo 'CLEANFILES=' > gtk-doc.make |
165 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
166 | %endif | |
167 | ||
2066ec98 | 168 | # vala not ready yet here |
41efbe2b | 169 | #echo 'AC_DEFUN([VAPIGEN_CHECK],[AM_CONDITIONAL([ENABLE_VAPIGEN], [false])])' >> acinclude.m4 |
2066ec98 | 170 | |
cc99da29 | 171 | %build |
ff22cf0f | 172 | mkdir m4 |
934cfd64 | 173 | %{?with_apidocs:%{__gtkdocize}} |
094e0ffa JB |
174 | %{__libtoolize} |
175 | %{__aclocal} | |
176 | %{__autoconf} | |
adb8dade | 177 | %{__autoheader} |
094e0ffa | 178 | %{__automake} |
d4f197ce | 179 | %configure \ |
60c9bff9 | 180 | --disable-silent-rules \ |
ff22cf0f ŁK |
181 | %{__enable_disable static_libs static} \ |
182 | %{__enable_disable apidocs gtk-doc} \ | |
cfdffb08 | 183 | --enable-introspection \ |
ff22cf0f | 184 | %{__with_without libcroco croco} \ |
cfb03eca | 185 | --with-html-dir=%{_gtkdocdir}/%{name} |
c4caf50c | 186 | %{__make} |
187 | ||
cc99da29 | 188 | %install |
2d89ab37 | 189 | rm -rf $RPM_BUILD_ROOT |
2aca8b1a | 190 | |
d4c0a792 MM |
191 | %{__make} install \ |
192 | DESTDIR=$RPM_BUILD_ROOT \ | |
cfb03eca | 193 | pkgconfigdir=%{_pkgconfigdir} |
2aca8b1a | 194 | |
b4109bb7 | 195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/*.{la,a} |
47b8d8a4 | 196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/librsvg-2.la |
9cf84f83 | 197 | |
c2e97a8f AO |
198 | %{__ln_s} rsvg-view-3 $RPM_BUILD_ROOT%{_bindir}/rsvg-view |
199 | ||
200 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir} | |
201 | ||
2aca8b1a PG |
202 | %clean |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
3974ae74 | 205 | %post |
206 | /sbin/ldconfig | |
f9f85140 | 207 | umask 022 |
47b8d8a4 | 208 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : |
3974ae74 | 209 | |
210 | %postun | |
211 | /sbin/ldconfig | |
f9f85140 | 212 | umask 022 |
3f3d0e1a | 213 | if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then |
9e46e2bc | 214 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
3f3d0e1a | 215 | fi |
094e0ffa | 216 | |
cc99da29 | 217 | %files |
2d89ab37 | 218 | %defattr(644,root,root,755) |
cfb03eca | 219 | %doc ChangeLog AUTHORS NEWS |
adb8dade PZ |
220 | %attr(755,root,root) %{_bindir}/rsvg |
221 | %attr(755,root,root) %{_bindir}/rsvg-convert | |
edb6ae5a | 222 | %attr(755,root,root) %{_libdir}/librsvg-2.so.*.*.* |
2a1baa24 | 223 | %attr(755,root,root) %ghost %{_libdir}/librsvg-2.so.2 |
cfdffb08 | 224 | %{_libdir}/girepository-1.0/Rsvg-2.0.typelib |
d2f85f61 | 225 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*.*/loaders/libpixbufloader-svg.so |
725978de | 226 | %{_mandir}/man1/rsvg-convert.1* |
cc99da29 KT |
227 | |
228 | %files devel | |
2d89ab37 | 229 | %defattr(644,root,root,755) |
edb6ae5a | 230 | %attr(755,root,root) %{_libdir}/librsvg-2.so |
9e46e2bc | 231 | %{_includedir}/librsvg-2.0 |
cfdffb08 | 232 | %{_datadir}/gir-1.0/Rsvg-2.0.gir |
d2f85f61 | 233 | %{_pkgconfigdir}/librsvg-2.0.pc |
944586bf | 234 | |
3f3d0e1a | 235 | %if %{with static_libs} |
944586bf PG |
236 | %files static |
237 | %defattr(644,root,root,755) | |
edb6ae5a | 238 | %{_libdir}/librsvg-2.a |
3f3d0e1a | 239 | %endif |
4983a7a9 MB |
240 | |
241 | %if %{with apidocs} | |
242 | %files apidocs | |
243 | %defattr(644,root,root,755) | |
244 | %{_gtkdocdir}/%{name} | |
245 | %endif | |
d2f85f61 | 246 | |
d2f85f61 JB |
247 | %files gtk+3 |
248 | %defattr(644,root,root,755) | |
c2e97a8f | 249 | %attr(755,root,root) %{_bindir}/rsvg-view |
41efbe2b | 250 | %attr(755,root,root) %{_bindir}/rsvg-view-3 |