SPECS: php-pear-Translation2.spec - new pear packaging; complete f...

glen glen at pld-linux.org
Fri Sep 30 20:44:05 CEST 2005


Author: glen                         Date: Fri Sep 30 18:44:05 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new pear packaging; complete files; rel 2

---- Files affected:
SPECS:
   php-pear-Translation2.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/php-pear-Translation2.spec
diff -u SPECS/php-pear-Translation2.spec:1.11 SPECS/php-pear-Translation2.spec:1.12
--- SPECS/php-pear-Translation2.spec:1.11	Sat Feb  5 20:34:41 2005
+++ SPECS/php-pear-Translation2.spec	Fri Sep 30 20:44:00 2005
@@ -8,18 +8,22 @@
 Summary(pl):	%{_pearname} - klasa do zarządzania wersjami językowymi aplikacji
 Name:		php-pear-%{_pearname}
 Version:	2.0.0
-%define	_version 2.0.0beta6
-Release:	0.beta6.1
+%define	_beta	beta6
+%define	_rel	2
+Release:	0.%{_beta}.%{_rel}
 License:	PHP 2.02
 Group:		Development/Languages/PHP
-Source0:	http://pear.php.net/get/%{_pearname}-%{_version}.tgz
+Source0:	http://pear.php.net/get/%{_pearname}-%{version}%{_beta}.tgz
 # Source0-md5:	fab1b6dbbad1f46ea5e9cb67fd01561c
 URL:		http://pear.php.net/package/Translation2/
-BuildRequires:	rpm-php-pearprov >= 4.0.2-98
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 Requires:	php-pear
 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.*)'
+
 %description
 This class provides an easy way to retrieve all the strings for a
 multilingual site from a data source (i.e. db). A PEAR::DB and a
@@ -42,33 +46,56 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package tests
+Summary:	Tests for PEAR::%{_pearname}
+Summary(pl):	Testy dla PEAR::%{_pearname}
+Group:		Development
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+AutoReq:	no
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl
+Testy dla PEAR::%{_pearname}.
+
 %prep
-%setup -q -c
+%pear_package_setup
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/{Admin/Container,Container}
-
-install %{_pearname}-%{_version}/%{_pearname}.php $RPM_BUILD_ROOT%{php_pear_dir}/
-install %{_pearname}-%{_version}/{Admin,Container,Decorator}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-install %{_pearname}-%{_version}/Admin/Container/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Admin/Container
-install %{_pearname}-%{_version}/Container/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Container
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
+	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc %{_pearname}-%{_version}/docs
+%doc install.log
+%doc docs/%{_pearname}/*
+%{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/%{_class}.php
 %{php_pear_dir}/%{_class}
 
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/*
+
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2005/09/30 18:44:00  glen
+- new pear packaging; complete files; rel 2
+
 Revision 1.11  2005/02/05 19:34:41  adamg
 - updated to 2.0.0beta6
 
@@ -76,7 +103,7 @@
 - updated to 2.0.0beta5
 
 Revision 1.9  2004/12/05 12:16:15  adamg
-- install Translation2.php in %%{php_pear_dir}, not in %%{php_pear_dir}/Translation2
+- install Translation2.php in %{php_pear_dir}, not in %{php_pear_dir}/Translation2
 - release .2
 
 Revision 1.8  2004/12/05 10:56:32  adamg
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pear-Translation2.spec?r1=1.11&r2=1.12&f=u




More information about the pld-cvs-commit mailing list