commit 29b44cd39f32f1b1f4103630d9d22e8354565bee
Author: Elan Ruusamäe <g...@pld-linux.org>
Date:   Tue Oct 17 20:35:21 2017 +0300

    version .ini file separately

 mongodb.ini           |  5 +++++
 php-pecl-mongodb.spec | 12 ++----------
 2 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index c6c9cf1..5a9966f 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -12,6 +12,7 @@ License:      Apache v2.0
 Group:         Development/Languages/PHP
 Source0:       https://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: c3b36a24b7e47e3b4148cd9bc4d163b2
+Source1:       mongodb.ini
 URL:           https://pecl.php.net/package/mongodb
 BuildRequires: %{php_name}-devel >= 4:5.4.0
 BuildRequires: rpmbuild(macros) >= 1.666
@@ -38,15 +39,6 @@ MongoDB driver.
 %setup -qc
 mv %{modname}-%{version}/* .
 
-# Create configuration file
-cat << 'EOF' > %{modname}.ini
-; Enable %{summary} extension module
-extension=%{modname}.so
-
-; Configuration
-;mongodb.debug=''
-EOF
-
 %build
 # Sanity check, really often broken
 extver=$(sed -n '/#define PHP_MONGODB_VERSION/{s/.* "//;s/".*$//;p}' 
php_phongo.h)
@@ -98,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-cp -p %{modname}.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cp -p %{SOURCE1}.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/mongodb.ini b/mongodb.ini
new file mode 100644
index 0000000..cdf76bd
--- /dev/null
+++ b/mongodb.ini
@@ -0,0 +1,5 @@
+; Enable mongodb extension module
+extension=mongodb.so
+
+; Configuration
+;mongodb.debug=''
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-mongodb.git/commitdiff/29b44cd39f32f1b1f4103630d9d22e8354565bee

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to