SPECS (DEVEL): php-pear-Auth_HTTP.spec - use php-pear-build
glen
glen at pld-linux.org
Sun Sep 18 13:04:58 CEST 2005
Author: glen Date: Sun Sep 18 11:04:58 2005 GMT
Module: SPECS Tag: DEVEL
---- Log message:
- use php-pear-build
---- Files affected:
SPECS:
php-pear-Auth_HTTP.spec (1.27 -> 1.27.2.1)
---- Diffs:
================================================================
Index: SPECS/php-pear-Auth_HTTP.spec
diff -u SPECS/php-pear-Auth_HTTP.spec:1.27 SPECS/php-pear-Auth_HTTP.spec:1.27.2.1
--- SPECS/php-pear-Auth_HTTP.spec:1.27 Thu May 5 09:38:50 2005
+++ SPECS/php-pear-Auth_HTTP.spec Sun Sep 18 13:04:52 2005
@@ -1,5 +1,6 @@
# $Revision$, $Date$
%include /usr/lib/rpm/macros.php
+%include /usr/lib/rpm/macros.pear
%define _class Auth
%define _subclass HTTP
%define _status beta
@@ -15,7 +16,7 @@
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: d5209f0d1f1874e23b44fbfb397a2aa0
URL: http://pear.php.net/package/Auth_HTTP/
-BuildRequires: rpm-php-pearprov >= 4.0.2-98
+BuildRequires: php-pear-build
Requires: php-pear
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,30 +35,44 @@
Ta klasa ma w PEAR status: %{_status}.
+%package tests
+Summary: Tests for PEAR::%{_pearname}
+Group: Development
+Requires: %{name} = %{version}-%{release}
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
%prep
-%setup -q -c
+%pear_package_setup
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-
-install %{_pearname}-%{version}/%{_class}_%{_subclass}.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}.php
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+cp -a ./%{php_pear_dir}/{.registry,*} $RPM_BUILD_ROOT%{php_pear_dir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{_pearname}-%{version}/tests
+%{php_pear_dir}/.registry/*.reg
%dir %{php_pear_dir}/%{_class}
%{php_pear_dir}/%{_class}/*.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.27.2.1 2005/09/18 11:04:52 glen
+- use php-pear-build
+
Revision 1.27 2005/05/05 07:38:50 adamg
- updated to 2.1.6
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pear-Auth_HTTP.spec?r1=1.27&r2=1.27.2.1&f=u
More information about the pld-cvs-commit
mailing list