[packages/php-pecl-scream] move .ini to git repo

glen glen at pld-linux.org
Tue Jun 17 16:39:32 CEST 2014


commit 35d5644c62151ff86139992b17ece25c9e7279ee
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jun 17 17:09:19 2014 +0300

    move .ini to git repo

 php-pecl-scream.spec | 12 +++++-------
 scream.ini           |  2 ++
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/php-pecl-scream.spec b/php-pecl-scream.spec
index 5ff7911..684aa0b 100644
--- a/php-pecl-scream.spec
+++ b/php-pecl-scream.spec
@@ -10,6 +10,7 @@ License:	PHP 3.01
 Group:		Development/Languages/PHP
 Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	ec606b6b9f23bd7de532c7f77c953852
+Source1:	%{modname}.ini
 URL:		http://pecl.php.net/package/scream/
 BuildRequires:	%{php_name}-devel >= 3:5.0.4
 BuildRequires:	rpmbuild(macros) >= 1.650
@@ -31,7 +32,7 @@ uzyskania pełnych komunikatów błędu.
 To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
+%setup -qc
 mv %{modname}-%{version}/* .
 
 %build
@@ -41,15 +42,12 @@ phpize
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-
 %{__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
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/scream.ini b/scream.ini
new file mode 100644
index 0000000..69bd10d
--- /dev/null
+++ b/scream.ini
@@ -0,0 +1,2 @@
+; Enable scream extension module
+extension=scream.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-scream.git/commitdiff/c6dc2cca5cb1db61e77edab4cda94e364a9420a2



More information about the pld-cvs-commit mailing list