packages: php-pear-Translation2/php-pear-Translation2.spec - up to 2.0.3

glen glen at pld-linux.org
Tue Nov 16 13:47:00 CET 2010


Author: glen                         Date: Tue Nov 16 12:47:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 2.0.3

---- Files affected:
packages/php-pear-Translation2:
   php-pear-Translation2.spec (1.31 -> 1.32) 

---- Diffs:

================================================================
Index: packages/php-pear-Translation2/php-pear-Translation2.spec
diff -u packages/php-pear-Translation2/php-pear-Translation2.spec:1.31 packages/php-pear-Translation2/php-pear-Translation2.spec:1.32
--- packages/php-pear-Translation2/php-pear-Translation2.spec:1.31	Sat Aug 21 21:08:34 2010
+++ packages/php-pear-Translation2/php-pear-Translation2.spec	Tue Nov 16 13:46:55 2010
@@ -1,17 +1,16 @@
 # $Revision$, $Date$
 %include	/usr/lib/rpm/macros.php
-%define		_class		Translation2
 %define		_status		stable
-%define		_pearname	%{_class}
+%define		_pearname	Translation2
 Summary:	%{_pearname} - class for multilingual applications management
 Summary(pl.UTF-8):	%{_pearname} - klasa do zarządzania wersjami językowymi aplikacji
 Name:		php-pear-%{_pearname}
-Version:	2.0.1
-Release:	2
+Version:	2.0.3
+Release:	1
 License:	PHP 2.02
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5:	804b3541d3604c87112fd5ac362b2758
+# Source0-md5:	62b9b5eab827f4507d22fcade514c477
 URL:		http://pear.php.net/package/Translation2/
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
@@ -26,11 +25,12 @@
 Suggests:	php-pear-MDB
 Suggests:	php-pear-MDB2
 Suggests:	php-pear-XML_Serializer
+Obsoletes:	php-pear-Translation2-tests
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # exclude optional dependencies
-%define		_noautoreq	'pear(Cache/Lite.*)' 'pear(DB.*)' 'pear(DB/DataObject.*)' 'pear(MDB.*)' 'pear(MDB2.*)' 'pear(gettext.*)' 'pear(File/Gettext.*)' 'pear(I18Nv2.*)' 'pear(XML/Serializer.*)'
+%define		_noautoreq	pear(Cache/Lite.*) pear(DB.*) pear(DB/DataObject.*) pear(MDB.*) pear(MDB2.*) pear(gettext.*) pear(File/Gettext.*) pear(I18Nv2.*) pear(XML/Serializer.*)
 
 %description
 This class provides an easy way to retrieve all the strings for a
@@ -54,28 +54,22 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
-%package tests
-Summary:	Tests for PEAR::%{_pearname}
-Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
-Group:		Development/Languages/PHP
-Requires:	%{name} = %{version}-%{release}
-AutoProv:	no
-AutoReq:	no
-
-%description tests
-Tests for PEAR::%{_pearname}.
-
-%description tests -l pl.UTF-8
-Testy dla PEAR::%{_pearname}.
-
 %prep
 %pear_package_setup
 
+mv docs/%{_pearname}/docs/examples .
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# tests should not be packaged
+%{__rm} -r $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,14 +81,11 @@
 %files
 %defattr(644,root,root,755)
 %doc install.log optional-packages.txt
-%doc docs/%{_pearname}/*
+%doc docs/%{_pearname}/docs/*
 %{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/%{_class}.php
-%{php_pear_dir}/%{_class}
+%{php_pear_dir}/Translation2
 
-%files tests
-%defattr(644,root,root,755)
-%{php_pear_dir}/tests/*
+%{_examplesdir}/%{name}-%{version}
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -102,6 +93,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.32  2010/11/16 12:46:55  glen
+- up to 2.0.3
+
 Revision 1.31  2010/08/21 19:08:34  glen
 - updated deps with pearize.sh
 - release 2
================================================================

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



More information about the pld-cvs-commit mailing list