[packages/php-bytekit] php multiversion support; builds with php5.3 only now
glen
glen at pld-linux.org
Thu Jul 10 21:25:32 CEST 2014
commit bf0ec116ab884c054824b9663c928dceff3a81d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jul 10 22:25:30 2014 +0300
php multiversion support; builds with php5.3 only now
php-bytekit.spec | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/php-bytekit.spec b/php-bytekit.spec
index 733784a..a82f989 100644
--- a/php-bytekit.spec
+++ b/php-bytekit.spec
@@ -2,19 +2,21 @@
# Conditional build:
%bcond_without tests # build without tests
+%define php_name php%{?php_suffix}
%define modname bytekit
Summary: An extension to represent the opcodes generated by Zend Engine
-Name: php-%{modname}
+Name: %{php_name}-%{modname}
Version: 0.1.1
-Release: 2
+Release: 3
License: Bytekit 1.0 (based on PHP 3.0)
Group: Development/Languages/PHP
Source0: http://www.bytekit.org/download/%{modname}-%{version}.tgz
# Source0-md5: 83d0a325713201947aec441f30be58d8
URL: http://www.bytekit.org/
-BuildRequires: php-devel >= 4:5.0.4
-BuildRequires: rpmbuild(macros) >= 1.519
+BuildRequires: %{php_name}-devel
+BuildRequires: rpmbuild(macros) >= 1.666
%{?requires_php_extension}
+Obsoletes: php-bytekit < 0.1.1-3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -40,18 +42,17 @@ phpize
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
-install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir},%{_examplesdir}/%{name}-%{version}}
-
%{__make} install \
EXTENSION_DIR=%{php_extensiondir} \
INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
; Enable %{modname} extension module
extension=%{modname}.so
EOF
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-bytekit.git/commitdiff/bf0ec116ab884c054824b9663c928dceff3a81d2
More information about the pld-cvs-commit
mailing list