[packages/php-pecl-oci8] setup oci8.ini as source in git
glen
glen at pld-linux.org
Sun Apr 6 23:51:37 CEST 2014
commit a1790e2424dc5ec2dd775672277aa58667d9094d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Apr 7 00:51:23 2014 +0300
setup oci8.ini as source in git
oci8.ini | 2 ++
php-pecl-oci8.spec | 9 ++-------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/php-pecl-oci8.spec b/php-pecl-oci8.spec
index 840e2df..362690b 100644
--- a/php-pecl-oci8.spec
+++ b/php-pecl-oci8.spec
@@ -14,6 +14,7 @@ License: PHP 3.01
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 9de75c4649bb047c6192f13092f9751d
+Source1: oci8.ini
Patch0: instantclient.patch
URL: http://pecl.php.net/package/oci8/
%{?with_tests:BuildRequires: %{php_name}-cli}
@@ -64,18 +65,12 @@ test -f failed.log -a ! -s failed.log
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-
%{__make} install \
EXTENSION_DIR=%{php_extensiondir} \
INSTALL_ROOT=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
-; Enable %{modname} extension module
-extension=%{modname}.so
-EOF
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/oci8.ini b/oci8.ini
new file mode 100644
index 0000000..6c36cb3
--- /dev/null
+++ b/oci8.ini
@@ -0,0 +1,2 @@
+; Enable oci8 extension module
+extension=oci8.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-oci8.git/commitdiff/a1790e2424dc5ec2dd775672277aa58667d9094d
More information about the pld-cvs-commit
mailing list