packages: php-bytekit/php-bytekit.spec (NEW) - new

glen glen at pld-linux.org
Sun Feb 27 13:38:11 CET 2011


Author: glen                         Date: Sun Feb 27 12:38:11 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/php-bytekit:
   php-bytekit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php-bytekit/php-bytekit.spec
diff -u /dev/null packages/php-bytekit/php-bytekit.spec:1.1
--- /dev/null	Sun Feb 27 13:38:11 2011
+++ packages/php-bytekit/php-bytekit.spec	Sun Feb 27 13:38:05 2011
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		modname		bytekit
+Summary:	An extension to represent the opcodes generated by Zend Engine
+Name:		php-%{modname}
+Version:	0.1.1
+Release:	1
+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
+%{?requires_php_extension}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Bytekit is a PHP extension that provides a userspace representation of
+the opcodes generated by the Zend engine compiler built into PHP.
+
+This extension provides not only access to the raw op_array data but
+also contains a Zend engine disassembler that exports control flow
+information in form of code flow graphs and basic blocks. Bytekit is
+meant as a tool to understand the internals of PHP better, to debug
+Zend engine error cases and as base to develop all kinds of static and
+dynamic code analysis tools.
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%build
+phpize
+%configure
+%{__make}
+
+%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
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
+
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
+%{_examplesdir}/%{name}-%{version}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/02/27 12:38:05  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list