packages: hiphop-php/hiphop-php.spec - try building it, updated deps

glen glen at pld-linux.org
Sun May 16 12:28:26 CEST 2010


Author: glen                         Date: Sun May 16 10:28:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- try building it, updated deps

---- Files affected:
packages/hiphop-php:
   hiphop-php.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/hiphop-php/hiphop-php.spec
diff -u packages/hiphop-php/hiphop-php.spec:1.2 packages/hiphop-php/hiphop-php.spec:1.3
--- packages/hiphop-php/hiphop-php.spec:1.2	Sat May 15 23:12:20 2010
+++ packages/hiphop-php/hiphop-php.spec	Sun May 16 12:28:21 2010
@@ -1,35 +1,41 @@
 # $Revision$, $Date$
+# TODO
+# - offline build (without git)
 Summary:	HipHop for PHP transforms PHP source code into highly optimized C++
 Name:		hiphop-php
 Version:	0.1
 Release:	0.1
 License:	PHP 3.01
-Group:		Development/Languages/PHP
+Group:		Development/Languages
 # git clone git://github.com/facebook/hiphop-php.git
-Source0:	%{name}-%{version}.tar.gz
-# Source0-md5:	-
+# tar -cjf hiphop-php.tar.bz2 hiphop-php
+Source0:	%{name}.tar.bz2
+# Source0-md5:	675d6bb36d1c5a8ec51346635f19498c
 URL:		http://wiki.github.com/facebook/hiphop-php/
 BuildRequires:	binutils-devel
 BuildRequires:	bison
 BuildRequires:	boost-devel >= 1.37
 BuildRequires:	cmake >= 2.6.4
+BuildRequires:	curl-devel >= 7.20.1-2
 BuildRequires:	expat-devel
 BuildRequires:	flex
 BuildRequires:	gd-devel
+BuildRequires:	git-core
 BuildRequires:	libcap-devel
-BuildRequires:	libicu >= 4.2
-BuildRequires:	libmbfl
+BuildRequires:	libevent-devel >= 1.4.13-2
+BuildRequires:	libicu-devel >= 4.2
+#BuildRequires:	libmbfl-devel
 BuildRequires:	libmcrypt
 BuildRequires:	libstdc++-devel >= 6:4.1
-BuildRequires:	libxml2
+BuildRequires:	libxml2-devel
 BuildRequires:	mysql-devel
-BuildRequires:	oniguruma
+BuildRequires:	oniguruma-devel
 BuildRequires:	openssl-devel
 BuildRequires:	pcre-devel
 BuildRequires:	re2c >= 0.13.0
-BuildRequires:	tbb >= 2.2
+BuildRequires:	tbb-devel >= 2.2
 BuildRequires:	zlib-devel
-BuildArch:	noarch
+ExclusiveArch:	%{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,10 +53,23 @@
 Discussion Group.
 
 %prep
-%setup -q
+%setup -qn %{name}
+
+%build
+export HPHP_HOME=$(pwd)
+export HPHP_LIB=$HPHP_HOME/bin
+
+git submodule init
+git submodule update
+
+%cmake .
+%{__make}
+
+%{__sed} -i -e 's,/usr/local/bin/php,/usr/bin/php,g' src/crutch.php
 
 %install
 rm -rf $RPM_BUILD_ROOT
+cd $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,6 +83,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/05/16 10:28:21  glen
+- try building it, updated deps
+
 Revision 1.2  2010/05/15 21:12:20  glen
 - deps from readme
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/hiphop-php/hiphop-php.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list