]> git.pld-linux.org Git - packages/php-adodb.git/commitdiff
- don't copy pear files without pear
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 14 May 2009 14:59:13 +0000 (14:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-adodb.spec -> 1.52

php-adodb.spec

index 5853b82e8b5364742ed2fa870f149a22adb3a425..45d104556dda213423cbc8e559b8a0b32e73f0c8 100644 (file)
@@ -1,17 +1,20 @@
+# TODO
+# - rename to php-adodb
 #
 %bcond_without pear    # Don't build pear-dependent packages.
 
 %include       /usr/lib/rpm/macros.php
-%define ver    %(echo %{version} | tr -d .)
-%define        _postrel        a
+%define                ver     %(echo %{version} | tr -d .)
+%define                subver  a
+%define                rel             0.1
 Summary:       Unique interface to access different SQL databases
 Summary(pl.UTF-8):     Jednolity inferfejs dostępu do baz danych SQL
 Name:          adodb
 Version:       4.96
-Release:       %{_postrel}.0.1
+Release:       %{subver}.%{rel}
 License:       dual licensed using BSD-Style and LGPL
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/adodb/%{name}%{ver}%{_postrel}.tgz
+Source0:       http://dl.sourceforge.net/adodb/%{name}%{ver}%{subver}.tgz
 # Source0-md5: 9aebb0e04d8e67493c0e70fc75c9fc43
 Patch0:                %{name}-paths.patch
 URL:           http://adodb.sourceforge.net/
@@ -106,8 +109,10 @@ 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}
 
+%if %{with pear}
 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
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.08326 seconds and 4 git commands to generate.