rpms/php-pecl-json/EL-5 php-pecl-json.spec,1.1,1.2

Remi Collet remi at fedoraproject.org
Fri Feb 13 18:46:29 UTC 2009


Author: remi

Update of /cvs/extras/rpms/php-pecl-json/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11290

Modified Files:
	php-pecl-json.spec 
Log Message:
add configuration file


Index: php-pecl-json.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-json/EL-5/php-pecl-json.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- php-pecl-json.spec	8 Aug 2008 04:47:56 -0000	1.1
+++ php-pecl-json.spec	13 Feb 2009 18:45:58 -0000	1.2
@@ -6,18 +6,18 @@
 
 Name:           php-pecl-json
 Version:        1.2.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        PECL library to implement JSON in PHP
 
-Group:         	Development/Libraries 
+Group:          Development/Libraries 
 License:        PHP
 URL:            http://pecl.php.net/package/json
 Source0:        http://pecl.php.net/get/json-%{version}.tgz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  php-devel, php-pear
-Requires(post):	%{__pecl}
-Requires(postun):	%{__pecl}
+BuildRequires:    php-devel, php-pear
+Requires(post):   %{__pecl}
+Requires(postun): %{__pecl}
 
 %if %{?php_zend_api}0
 Requires:     php(zend-abi) = %{php_zend_api}
@@ -51,6 +51,12 @@
 %{__mkdir_p} %{buildroot}%{pecl_xmldir}
 %{__install} -m 644 ../package.xml %{buildroot}%{pecl_xmldir}/%{pecl_name}.xml
 
+# Drop in the bit of configuration
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
+%{__cat} > %{buildroot}%{_sysconfdir}/php.d/%{pecl_name}.ini << 'EOF'
+; Enable %{pecl_name} extension module
+extension = %{pecl_name}.so
+EOF
 
 
 %if 0%{?pecl_install:1}
@@ -74,11 +80,17 @@
 %files
 %defattr(-,root,root,-)
 %doc json-%{version}/README
-%{php_extdir}/json.so
+%config(noreplace) %{_sysconfdir}/php.d/%{pecl_name}.ini
+%{php_extdir}/%{pecl_name}.so
 %{pecl_xmldir}/%{pecl_name}.xml
 
+
 %changelog
+* Fri Feb 13 2009  Remi Collet <Fedora at FamilleCollet.com> 1.2.1-3
+- add configuration file
+
 * Fri Aug 08 2008 Nigel Jones <dev at nigelj.com> - 1.2.1-2
 - Fix Requires:
+
 * Thu Aug 07 2008 Nigel Jones <dev at nigelj.com> - 1.2.1-1
 - Initial RPM (EL4/EL5)




More information about the scm-commits mailing list