SPECS: php-pecl-runkit.spec - fix build with php 5.2; rel 2
glen
glen at pld-linux.org
Mon Oct 13 00:27:46 CEST 2008
Author: glen Date: Sun Oct 12 22:27:46 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fix build with php 5.2; rel 2
---- Files affected:
SPECS:
php-pecl-runkit.spec (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SPECS/php-pecl-runkit.spec
diff -u SPECS/php-pecl-runkit.spec:1.13 SPECS/php-pecl-runkit.spec:1.14
--- SPECS/php-pecl-runkit.spec:1.13 Tue Feb 13 09:06:40 2007
+++ SPECS/php-pecl-runkit.spec Mon Oct 13 00:27:40 2008
@@ -5,13 +5,14 @@
Summary(pl.UTF-8): %{_modname} - obróbka zdefiniowanych przez użytkownika funkcji i klas
Name: php-pecl-%{_modname}
Version: 0.9
-Release: 1
+Release: 2
License: PHP
Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
# Source0-md5: 855786f79a3803972b04e44c32cece8d
+Patch0: %{name}-php52.patch
URL: http://pecl.php.net/package/runkit/
-BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: php-devel >= 4:5.2
BuildRequires: rpmbuild(macros) >= 1.344
%{?requires_php_extension}
Requires: php-common >= 4:5.0.4
@@ -35,9 +36,11 @@
%prep
%setup -q -c
+mv %{_modname}-%{version}/* .
+rmdir %{_modname}-%{version}
+%patch0 -p1
%build
-cd %{_modname}-%{version}
phpize
%configure
%{__make}
@@ -46,7 +49,7 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+install modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
; Enable %{_modname} extension module
extension=%{_modname}.so
@@ -65,7 +68,7 @@
%files
%defattr(644,root,root,755)
-%doc %{_modname}-%{version}/README
+%doc README
%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
@@ -75,6 +78,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2008/10/12 22:27:40 glen
+- fix build with php 5.2; rel 2
+
Revision 1.13 2007/02/13 08:06:40 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pecl-runkit.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list