SPECS: adodb.spec - moved out of pear dir (it's not PEAR package) ...

glen glen at pld-linux.org
Sun Mar 12 17:52:12 CET 2006

Author: glen                         Date: Sun Mar 12 16:52:12 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- moved out of pear dir (it's not PEAR package)
- created -pear and php-pear-Auth_Container_ADOdb packages

---- Files affected:
   adodb.spec (1.41 -> 1.42) 

---- Diffs:

Index: SPECS/adodb.spec
diff -u SPECS/adodb.spec:1.41 SPECS/adodb.spec:1.42
--- SPECS/adodb.spec:1.41	Sun Mar 12 15:58:04 2006
+++ SPECS/adodb.spec	Sun Mar 12 17:52:06 2006
@@ -1,21 +1,27 @@
 # $Revision$, $Date$
+%include	/usr/lib/rpm/macros.php
 %define ver	%(echo %{version} | tr -d .)
 Summary:	Unique interface to access different SQL databases
 Summary(pl):	Jednolity inferfejs dostępu do baz danych SQL
 Name:		adodb
 Version:	4.67
-Release:	1
+Release:	1.17
 License:	dual licensed using BSD-Style and LGPL
 Group:		Libraries
 # Source0Download: http://php.weblogs.com/ADOdb#downloads
 Source0:	http://dl.sourceforge.net/adodb/%{name}%{ver}.tgz
 # Source0-md5:	679d4fac06126707f4bf636508e9ec8a
+Patch0:		%{name}-paths.patch
 URL:		http://adodb.sourceforge.net/
-Requires:	php-pear >= 4:4.0.5
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+Requires:	php-common
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define		php_pear_dir	%{_datadir}/pear
+%define		_noautoreq 'pear(\.\./.*)' 'pear(adodb.*)' 'pear(test.*)' 'pear(.*.inc.php)'
+%define		_noautoprov 'pear(adodb/.*)'
+%define		_appdir		%{_datadir}/php/%{name}
 PHP's database access functions are not standardized. This creates a
@@ -35,23 +41,113 @@
 Aktualnie wspiera MySQL, Interbase, Oracle, Microsoft SQL Server,
 Sybase, PostgreSQL, Foxpro, Access, ADO i ODBC.
+%package -n php-pear-Auth_Container_ADOdb
+Summary:	ADOdb container for PEAR Auth
+Group:		Development/Languages/PHP
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-pear
+Requires:	php-pear-Auth
+%description -n php-pear-Auth_Container_ADOdb
+Storage driver for fetching login data from a database using
+This storage driver can use all databases which are supported by the
+ADBdb DB abstraction layer to fetch login data.
+%package pear
+Summary:	PEAR DB Emulation Layer for ADODB.
+Group:		Development/Languages/PHP
+Requires:	%{name} = %{version}-%{release}
+Requires:	php-pear
+%description pear
+PEAR DB Emulation Layer for ADODB.
+%package tests
+Summary:	Tests for ADODB
+Group:		Development/Languages/PHP
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+%description tests
+Tests for ADODB.
+%description tests -l pl
+Testy dla ADODB.
 %setup -q -n %{name}
+# undos the source
+find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
+%patch0 -p1
+mv pear/{readme.Auth.txt,README}
+rm -rf session/old
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/{contrib,drivers,datadict,tests,perf,lang,session,xsl}
+install -d $RPM_BUILD_ROOT%{_appdir}/{drivers,datadict,perf,lang,session,xsl}
+cp -a *.php *.dtd drivers datadict tests lang perf session xsl \
+	$RPM_BUILD_ROOT%{_appdir}
-cp -af *.php *.dtd pear/Auth contrib drivers datadict tests lang perf session xsl \
-	$RPM_BUILD_ROOT%{php_pear_dir}/%{name}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/Auth/Container
+cp -a pear/Auth/Container/ADOdb.php $RPM_BUILD_ROOT%{php_pear_dir}/Auth/Container
+%triggerpostun -- adodb < 4.67-1.17
+%banner -e %{name} <<EOF
+ADODB includes have been moved to %{_appdir}.
+If you're too lazy to fix your code, make compat symlink:
+ln -s %{_appdir} %{php_pear_dir}/adodb
-%doc *.txt docs/ cute_icons_for_site pear/*.txt
+%dir %{_appdir}
+%files tests
+%files pear
+%files -n php-pear-Auth_Container_ADOdb
+%doc pear/README
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -59,6 +155,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
+Revision 1.42  2006/03/12 16:52:06  glen
+- moved out of pear dir (it's not PEAR package)
+- created -pear and php-pear-Auth_Container_ADOdb packages
 Revision 1.41  2006/03/12 14:58:04  glen
 - php-pear epoch

---- CVS-web:

More information about the pld-cvs-commit mailing list