SPECS: php-pear-Net_LDAP.spec - new pear packaging; fixed license; ...
glen
glen at pld-linux.org
Thu Sep 29 01:47:38 CEST 2005
Author: glen Date: Wed Sep 28 23:47:38 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new pear packaging; fixed license; rel 2
---- Files affected:
SPECS:
php-pear-Net_LDAP.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/php-pear-Net_LDAP.spec
diff -u SPECS/php-pear-Net_LDAP.spec:1.17 SPECS/php-pear-Net_LDAP.spec:1.18
--- SPECS/php-pear-Net_LDAP.spec:1.17 Sun Mar 27 14:55:17 2005
+++ SPECS/php-pear-Net_LDAP.spec Thu Sep 29 01:47:33 2005
@@ -9,14 +9,14 @@
Summary(pl): %{_pearname} - obiektowy interfejs do przeszukiwania i modyfikowania wpisów LDAP
Name: php-pear-%{_pearname}
Version: 0.6.6
-Release: 1
-License: PHP 2.02
+Release: 2
+License: LGPL
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: d19f11c671122d0ff30928d86a868096
Patch0: %{name}-path_fix.patch
URL: http://pear.php.net/package/Net_LDAP/
-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)
@@ -43,32 +43,60 @@
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
-%patch0 -p1
+%pear_package_setup
+
+rm -f docs/%{_pearname}/LICENSE # GPL V2.1
+
+install -d ./%{php_pear_dir}/tests/%{_pearname}
+mv docs/%{_pearname}/tests/* ./%{php_pear_dir}/tests/%{_pearname}
+rmdir docs/%{_pearname}/tests
+
+cd ./%{php_pear_dir}/%{_class}
+%patch0 -p2
%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}/doc
+%doc install.log
+%doc docs/%{_pearname}/*
+%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/%{_class}/*.php
%{php_pear_dir}/%{_class}/%{_subclass}
+%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.18 2005/09/28 23:47:33 glen
+- new pear packaging; fixed license; rel 2
+
Revision 1.17 2005/03/27 12:55:17 adamg
- updated to 0.6.6
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pear-Net_LDAP.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list