packages: php-pear-XML_svg2image/php-pear-XML_svg2image.spec - up to 0.2.0 ...

glen glen at pld-linux.org
Sat Oct 9 18:46:35 CEST 2010


Author: glen                         Date: Sat Oct  9 16:46:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.2.0
- this package needs java to run, or it is really optional?

---- Files affected:
packages/php-pear-XML_svg2image:
   php-pear-XML_svg2image.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec
diff -u packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec:1.17 packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec:1.18
--- packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec:1.17	Thu Jan 31 13:17:20 2008
+++ packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec	Sat Oct  9 18:46:30 2010
@@ -1,38 +1,39 @@
 # $Revision$, $Date$
+# NOTE
+# - imho it requires java ext, it is not optional? making it php4-only package
 %include	/usr/lib/rpm/macros.php
-%define		_class		XML
-%define		_subclass	svg2image
 %define		_status		beta
-%define		_pearname	%{_class}_%{_subclass}
-
+%define		_pearname	XML_svg2image
 Summary:	%{_pearname} - converts a SVG file to a PNG/JPEG image
 Summary(pl.UTF-8):	%{_pearname} - konwersja plików SVG do obrazków PNG/JPEG
 Name:		php-pear-%{_pearname}
-Version:	0.1
-Release:	5
+Version:	0.2.0
+Release:	1
 License:	PHP 2.02
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5:	952ba13f07b57b24f54288b8e333b29d
+# Source0-md5:	2ec2aa629af1d0bac9af1dc9a0e6badc
 URL:		http://pear.php.net/package/XML_svg2image/
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.300
 Requires:	php-pear
+Suggests:	java-xmlgraphics-batik
+Suggests:	php-java
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Converts a SVG file to a PNG/JPEG image with the help of apache-batik
 (java-program), needs therefore a PHP with ext/java compiled-in and
-the batik files from http://xml.apache.org/batik/.
+the batik files from <http://xml.apache.org/batik/>.
 
 In PEAR status of this package is: %{_status}.
 
 %description -l pl.UTF-8
 Klasa ta przekształca pliki SVG do obrazków PNG/JPEG przy pomocy
 programu apache-batik (w Javie), dlatego wymaga PHP z rozszerzeniem
-java i plików batik z http://xml.apache.org/batik/.
+java i plików batik z <http://xml.apache.org/batik/>.
 
 Ta klasa ma w PEAR status: %{_status}.
 
@@ -44,15 +45,17 @@
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+# tests should not be packaged
+rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc install.log
-%doc docs/%{_pearname}/*
 %{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/%{_class}/*.php
+%{php_pear_dir}/XML/svg2image.php
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -60,6 +63,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2010/10/09 16:46:30  glen
+- up to 0.2.0
+- this package needs java to run, or it is really optional?
+
 Revision 1.17  2008/01/31 12:17:20  glen
 - rel 5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-XML_svg2image/php-pear-XML_svg2image.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list