SPECS: adodblite.spec - added files for new DBMS supported - added...

prism prism at pld-linux.org
Sat Nov 12 23:27:34 CET 2005


Author: prism                        Date: Sat Nov 12 22:27:34 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added files for new DBMS supported
- added tests and docs bconds

---- Files affected:
SPECS:
   adodblite.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/adodblite.spec
diff -u SPECS/adodblite.spec:1.4 SPECS/adodblite.spec:1.5
--- SPECS/adodblite.spec:1.4	Sat Nov 12 23:02:56 2005
+++ SPECS/adodblite.spec	Sat Nov 12 23:27:29 2005
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
 
+%bcond_with	tests		# build with tests
+%bcond_without	docs	# build without documentation
+
 %define _major  1
 %define _minor  04
 
@@ -51,17 +54,29 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/adodbSQL_drivers/{fbsql,maxdb,msql,mssql{,po},mysql{,i,t},postgres{,64,7},sqlite,sybase}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/adodbSQL_drivers/{fbsql,maxdb,msql,mssql{,po},mysql{,i,t},postgres{,64,7,8},sqlite{,po},sybase{,_ase}}
 
-cp -af *.php adodbSQL_drivers \
+cp -af *.php adodbSQL_drivers generic_modules session \
 	$RPM_BUILD_ROOT%{php_pear_dir}/%{name}
 
+%if %{with docs}
+install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
+cp -af documentation/* $RPM_BUILD_ROOT%{_docdir}/%{name}
+%endif
+
+%if %{with tests}
+cp -af tests $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %{php_pear_dir}/%{name}
+%if %{with docs}
+%{_docdir}/%{name}
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -69,6 +84,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/11/12 22:27:29  prism
+- added files for new DBMS supported
+- added tests and docs bconds
+
 Revision 1.4  2005/11/12 22:02:56  prism
 - really updated right now (_major version number included)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adodblite.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list