Author: glen                         Date: Sun Mar 28 20:52:00 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- php ext to speedup adodb

---- Files affected:
packages/php-pecl-adodb:
   php-pecl-adodb.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php-pecl-adodb/php-pecl-adodb.spec
diff -u /dev/null packages/php-pecl-adodb/php-pecl-adodb.spec:1.1
--- /dev/null   Sun Mar 28 22:52:00 2010
+++ packages/php-pecl-adodb/php-pecl-adodb.spec Sun Mar 28 22:51:55 2010
@@ -0,0 +1,76 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests           # build without tests
+
+%define                modname adodb
+%define                ver             %(echo %{version} | tr -d .)
+Summary:       ADOdb PHP extension
+Name:          php-pecl-%{modname}
+Version:       5.0.4
+Release:       1
+License:       BSD
+Group:         Development/Languages/PHP
+Source0:       http://phplens.com/lens/dl/adodb-ext-%{ver}.zip
+# Source0-md5: 4efb3fc1f5a347f20be9222885779688
+URL:           http://pecl.php.net/package/Modname/
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.519
+BuildRequires: sed >= 4.0
+%{?requires_php_extension}
+Requires:      php-common >= 4:5.0.4
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ADOdb PHP extension provides up to 100% speedup by replacing parts of
+ADOdb with C code. ADOdb will auto-detect if this extension is
+installed and use it automatically.
+
+%prep
+%setup -q -c
+mv %{modname}-%{ver}/* .
+
+%{__sed} -i -e 's,\r$,,' README.txt
+
+%build
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+
+%{__make} install \
+       INSTALL_ROOT=$RPM_BUILD_ROOT \
+       EXTENSION_DIR=%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+       %php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS README.txt
+%config(noreplace) %verify(not md5 mtime size) 
%{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/03/28 20:51:55  glen
+- php ext to speedup adodb
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to