1 %include /usr/lib/rpm/macros.php
3 %define _subclass svg2image
5 %define _pearname %{_class}_%{_subclass}
6 Summary: %{_pearname} - Converts a SVG file to a PNG/JPEG image
7 Summary(pl): %{_pearname} - konwersja plików SVG do obrazków PNG/JPEG
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 952ba13f07b57b24f54288b8e333b29d
15 URL: http://pear.php.net/package/%{_pearname}/
16 BuildRequires: rpm-php-pearprov >= 4.0.2-98
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Converts a SVG file to a PNG/JPEG image with the help of apache-batik
23 (java-program), needs therefore a php with ext/java compiled-in and
24 the batik files from http://xml.apache.org/batik/.
26 This class has in PEAR status: %{_status}.
29 Klasa ta przekszta³ca pliki SVG do obrazków PNG/JPEG przy pomocy
30 programu apache-batik (w Javie), dlatego wymaga php z rozszerzeniem
31 java i plików batik z http://xml.apache.org/batik/.
33 Ta klasa ma w PEAR status: %{_status}.
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
42 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc %{_pearname}-%{version}/README*
50 %doc %{_pearname}-%{version}/gvt.svg
51 %{php_pear_dir}/%{_class}/*.php