SPECS: php-pear-HTTP_Header.spec - new pear packaging

glen glen at pld-linux.org
Mon Sep 26 22:49:43 CEST 2005


Author: glen                         Date: Mon Sep 26 20:49:43 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new pear packaging

---- Files affected:
SPECS:
   php-pear-HTTP_Header.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/php-pear-HTTP_Header.spec
diff -u SPECS/php-pear-HTTP_Header.spec:1.16 SPECS/php-pear-HTTP_Header.spec:1.17
--- SPECS/php-pear-HTTP_Header.spec:1.16	Fri Dec  3 23:12:56 2004
+++ SPECS/php-pear-HTTP_Header.spec	Mon Sep 26 22:49:38 2005
@@ -9,13 +9,13 @@
 Summary(pl):	%{_pearname} - Obiektowy interfejs do modyfikowania nagłówków HTTP
 Name:		php-pear-%{_pearname}
 Version:	1.1.1
-Release:	2
+Release:	2.1
 License:	PHP 2.02
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
 # Source0-md5:	fb12d419ac03a5f741fbaa60a1d614a0
 URL:		http://pear.php.net/package/HTTP_Header/
-BuildRequires:	rpm-php-pearprov >= 4.0.2-98
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 Requires:	php-pear
 Requires:	php-pear-HTTP >= 1.2
 BuildArch:	noarch
@@ -36,32 +36,50 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package tests
+Summary:	Tests for PEAR::%{_pearname}
+Summary(pl):	Testy dla PEAR::%{_pearname}
+Group:		Development
+Requires:	%{name} = %{version}-%{release}
+
+%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}/%{_subclass}
-
-install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{_pearname}-%{version}/tests
+%doc install.log
+%{php_pear_dir}/.registry/*.reg
 %dir %{php_pear_dir}/%{_class}/%{_subclass}
 %{php_pear_dir}/%{_class}/*.php
 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
 
+%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.17  2005/09/26 20:49:38  glen
+- new pear packaging
+
 Revision 1.16  2004/12/03 22:12:56  adamg
 - rebuild with new PEAR provides/requires scripts
 - release 2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pear-HTTP_Header.spec?r1=1.16&r2=1.17&f=u




More information about the pld-cvs-commit mailing list