]> git.pld-linux.org Git - packages/adodblite.git/commitdiff
- added files for new DBMS supported
authorMichał Łukaszek <mlukaszek+pld@gmail.com>
Sat, 12 Nov 2005 22:27:29 +0000 (22:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added tests and docs bconds

Changed files:
    adodblite.spec -> 1.5

adodblite.spec

index 283867ecc3ca16f9920e61618d3c0417f622dc9f..0be704513c72f453a6de630123d6224941013eda 100644 (file)
@@ -1,4 +1,7 @@
 
+%bcond_with    tests           # build with tests
+%bcond_without docs    # build without documentation
+
 %define _major  1
 %define _minor  04
 
@@ -50,14 +53,26 @@ PostgreSQL7, PostgreSQL8, SQLite, SQLite Pro, Sybase oraz Sybase ASE.
 
 %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
This page took 0.033465 seconds and 4 git commands to generate.