rpms/php-pecl-xdebug/devel php-pecl-xdebug.spec,1.4,1.5
Christopher Stone (xulchris)
fedora-extras-commits at redhat.com
Sun Mar 11 23:40:34 UTC 2007
Author: xulchris
Update of /cvs/extras/rpms/php-pecl-xdebug/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7581/devel
Modified Files:
php-pecl-xdebug.spec
Log Message:
- Use new ABI check for FC-6
- Create directory to untar sources
- Remove %%{release} from Provides
Index: php-pecl-xdebug.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-xdebug/devel/php-pecl-xdebug.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- php-pecl-xdebug.spec 30 Jan 2007 01:05:36 -0000 1.4
+++ php-pecl-xdebug.spec 11 Mar 2007 23:40:02 -0000 1.5
@@ -4,18 +4,26 @@
Name: php-pecl-xdebug
Version: 2.0.0
-Release: 0.4.%{beta}%{?dist}
+Release: 0.5.%{?beta}%{?dist}
Summary: PECL package for debugging PHP scripts
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/xdebug
-Source0: http://pecl.php.net/get/xdebug-%{version}%{beta}.tgz
+Source0: http://pecl.php.net/get/xdebug-%{version}%{?beta}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: php-devel
+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
Requires: php-api = %{php_apiver}
-Provides: php-pecl(Xdebug) = %{version}-%{release}
+%endif
%description
The Xdebug extension helps you debugging your script by providing a lot
@@ -23,16 +31,18 @@
%prep
-%setup -q -n xdebug-%{version}%{beta}
+%setup -qcn xdebug-%{version}%{?beta}
%build
+cd xdebug-%{version}%{?beta}
phpize
%configure --enable-xdebug
CFLAGS="$RPM_OPT_FLAGS" make
%install
+cd xdebug-%{version}%{?beta}
rm -rf $RPM_BUILD_ROOT
make install INSTALL_ROOT=$RPM_BUILD_ROOT
@@ -43,6 +53,10 @@
zend_extension=%{php_extdir}/xdebug.so
EOF
+# install doc files
+install -d docs
+install -pm 644 Changelog CREDITS LICENSE NEWS README docs
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -50,12 +64,17 @@
%files
%defattr(-,root,root,-)
-%doc Changelog CREDITS LICENSE NEWS README
+%doc xdebug-%{version}%{?beta}/docs/*
%config(noreplace) %{_sysconfdir}/php.d/xdebug.ini
%{php_extdir}/xdebug.so
%changelog
+* Sun Mar 11 2007 Christopher Stone <chris.stone at gmail.com> 2.0.0-0.5.RC2
+- Create directory to untar sources
+- Use new ABI check for FC6
+- Remove %%{release} from Provides
+
* Mon Jan 29 2007 Christopher Stone <chris.stone at gmail.com> 2.0.0-0.4.RC2
- Compile with $RPM_OPT_FLAGS
- Use $RPM_BUILD_ROOT instead of %%{buildroot}
More information about the scm-commits
mailing list