rpms/php-pecl-xdebug/F-7 php-pecl-xdebug.spec,1.6,1.7

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Sun Sep 30 16:35:03 UTC 2007


Author: xulchris

Update of /cvs/extras/rpms/php-pecl-xdebug/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18506/F-7

Modified Files:
	php-pecl-xdebug.spec 
Log Message:
update to latest standards


Index: php-pecl-xdebug.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-xdebug/F-7/php-pecl-xdebug.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- php-pecl-xdebug.spec	8 Sep 2007 20:04:06 -0000	1.6
+++ php-pecl-xdebug.spec	30 Sep 2007 16:34:31 -0000	1.7
@@ -1,9 +1,10 @@
 %global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
-%global php_extdir  %(php-config --extension-dir 2>/dev/null || echo "undefined")
+%{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}
+%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
 
 Name:           php-pecl-xdebug
 Version:        2.0.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        PECL package for debugging PHP scripts
 
 License:        BSD
@@ -16,11 +17,10 @@
 Provides:       php-pecl(Xdebug) = %{version}
 
 %if %{?php_zend_api}0
-# for fedora >= 6
 Requires:       php(zend-abi) = %{php_zend_api}
 Requires:       php(api) = %{php_core_api}
 %else
-# for fedora <= 5
+# for EL-5
 Requires:       php-api = %{php_apiver}
 %endif
 
@@ -31,6 +31,10 @@
 
 %prep
 %setup -qcn xdebug-%{version}
+cd xdebug-%{version}
+
+# fix rpmlint warnings
+iconv -f iso8859-1 -t utf-8 Changelog > Changelog.conv && mv -f Changelog.conv Changelog
 
 
 %build
@@ -57,6 +61,20 @@
 install -pm 644 Changelog CREDITS LICENSE NEWS README docs
 
 
+%if 0%{?pecl_install:1}
+%post
+%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+%endif
+
+
+%if 0%{?pecl_uninstall:1}
+%postun
+if [ $1 -eq 0 ] ; then
+    %{pecl_uninstall} %{pecl_name} >/dev/null || :
+fi
+%endif
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -69,6 +87,10 @@
 
 
 %changelog
+* Sun Sep 30 2007 Christopher Stone <chris.stone at gmail.com> 2.0.0-2
+- Update to latest standards
+- Fix encoding on Changelog
+
 * Sat Sep 08 2007 Christopher Stone <chris.stone at gmail.com> 2.0.0-1
 - Upstream sync
 - Remove %%{?beta} tags




More information about the scm-commits mailing list