packages: php-pear-Auth/php-pear-Auth.spec - suggests, lua post, drop tests...
glen
glen at pld-linux.org
Sat Aug 21 13:18:50 CEST 2010
Author: glen Date: Sat Aug 21 11:18:50 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- suggests, lua post, drop tests, include changelog; rel 2
---- Files affected:
packages/php-pear-Auth:
php-pear-Auth.spec (1.54 -> 1.55)
---- Diffs:
================================================================
Index: packages/php-pear-Auth/php-pear-Auth.spec
diff -u packages/php-pear-Auth/php-pear-Auth.spec:1.54 packages/php-pear-Auth/php-pear-Auth.spec:1.55
--- packages/php-pear-Auth/php-pear-Auth.spec:1.54 Fri Aug 20 15:11:23 2010
+++ packages/php-pear-Auth/php-pear-Auth.spec Sat Aug 21 13:18:45 2010
@@ -1,28 +1,45 @@
# $Revision$, $Date$
%include /usr/lib/rpm/macros.php
-%define _class Auth
%define _status stable
-%define _pearname %{_class}
+%define _pearname Auth
Summary: %{_pearname} - PHP PEAR authentication class
Summary(pl.UTF-8): %{_pearname} - klasa dla PHP PEAR z klasami uwierzytelniającymi
Name: php-pear-%{_pearname}
Version: 1.6.2
-Release: 1
-Epoch: 0
+Release: 2
License: PHP 2.02
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: 59e13ecba066722a911c216d03d52524
URL: http://pear.php.net/package/Auth/
+BuildRequires: php-packagexml2cl
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: rpmbuild(macros) >= 1.571
Requires: php-pear >= 4:1.0-8
+Suggests: php-imap
+Suggests: php-pear-Auth_RADIUS
+Suggests: php-pear-Crypt_CHAP
+Suggests: php-pear-DB
+Suggests: php-pear-File_Passwd
+Suggests: php-pear-File_SMBPasswd
+Suggests: php-pear-HTTP_Client
+Suggests: php-pear-Log
+Suggests: php-pear-MDB
+Suggests: php-pear-MDB2
+Suggests: php-pear-Net_POP3
+Suggests: php-pear-Net_Vpopmaild
+Suggests: php-pear-SOAP
+Suggests: php-pecl-kadm5
+Suggests: php-pecl-vpopmail
+Suggests: php-saprfc
+Suggests: php-soap
+Obsoletes: php-pear-Auth-tests
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# optional
-%define _noautoreq 'pear(Auth/RADIUS.php)' 'pear(File/Passwd.php)' 'pear(File/SMBPasswd.php)' 'pear(Net/POP3.php)' 'pear(DB.*)' 'pear(MDB.*)' 'pear(MDB2.*)' 'pear(Crypt/CHAP.*)' 'pear(SOAP.*)' 'pear(Log.*)' 'pear(HTTP/Client.*)' 'pear(vpopmail.*)' 'pear(kadm5.*)' 'pear(Log.*)' 'pear(HTTP/Client.*)'
+# exclude optional dependencies
+%define _noautoreq pear(Auth/RADIUS.*) pear(Crypt/CHAP.*) pear(DB.*) pear(File/Passwd.*) pear(File/SMBPasswd.*) pear(HTTP/Client.*) pear(Log.*) pear(MDB.*) pear(MDB2.*) pear(Net/POP3.*) pear(Net/Vpopmaild.*) pear(SOAP.*)
%description
The PEAR::Auth package provides methods for creating an authentication
@@ -36,49 +53,35 @@
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} = %{epoch}:%{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
+%build
+packagexml2cl package.xml > ChangeLog
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}
%pear_package_install
+# don't care for tests
+rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
- cat %{_docdir}/%{name}-%{version}/optional-packages.txt
-fi
+%post -p <lua>
+%pear_package_print_optionalpackages
%files
%defattr(644,root,root,755)
-%doc install.log optional-packages.txt
+%doc ChangeLog install.log optional-packages.txt
%doc docs/%{_pearname}/README*
%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/*.php
-%{php_pear_dir}/%{_class}/*.php
-%{php_pear_dir}/%{_class}/Container
-%{php_pear_dir}/%{_class}/Frontend
-
-%files tests
-%defattr(644,root,root,755)
-%{php_pear_dir}/tests/*
+%{php_pear_dir}/Auth/*.php
+%{php_pear_dir}/Auth/Container
+%{php_pear_dir}/Auth/Frontend
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -86,6 +89,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.55 2010/08/21 11:18:45 glen
+- suggests, lua post, drop tests, include changelog; rel 2
+
Revision 1.54 2010/08/20 13:11:23 glen
- updated to: 1.6.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-Auth/php-pear-Auth.spec?r1=1.54&r2=1.55&f=u
More information about the pld-cvs-commit
mailing list