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 URL: http://pear.php.net/package/%{_pearname}/
15 BuildRequires: rpm-php-pearprov >= 4.0.2-98
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Converts a SVG file to a PNG/JPEG image with the help of apache-batik
22 (java-program), needs therefore a php with ext/java compiled-in and
23 the batik files from http://xml.apache.org/batik/.
25 This class has in PEAR status: %{_status}.
28 Klasa ta przekszta³ca pliki SVG do obrazków PNG/JPEG przy pomocy
29 programu apache-batik (w Javie), dlatego wymaga php z rozszerzeniem
30 java i plików batik z http://xml.apache.org/batik/.
32 Ta klasa ma w PEAR status: %{_status}.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
41 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc %{_pearname}-%{version}/README*
49 %doc %{_pearname}-%{version}/gvt.svg
50 %{php_pear_dir}/%{_class}/*.php