[packages/hiphop-php] install files

glen glen at pld-linux.org
Sun Oct 6 17:26:24 CEST 2013


commit 8d9f731fea6d9d9cb45114f18400ff55ac4cf743
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Oct 6 18:26:17 2013 +0300

    install files

 hiphop-php.spec | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/hiphop-php.spec b/hiphop-php.spec
index c0f713a..7b90770 100644
--- a/hiphop-php.spec
+++ b/hiphop-php.spec
@@ -146,12 +146,22 @@ CPPFLAGS="%{rpmcppflags} -fno-permissive"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -p build/src/hphp/hphp $RPM_BUILD_ROOT%{_bindir}
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# install our libevent for now
+install -d $RPM_BUILD_ROOT%{_libdir}
+libtool --mode=install install -p libevent/libevent.la $RPM_BUILD_ROOT%{_libdir}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libevent.{a,la,so}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/hphp
+%attr(755,root,root) %{_bindir}/hhvm
+%attr(755,root,root) %{_libdir}/libevent-1.4.so.*.*.*
+%ghost %{_libdir}/libevent-1.4.so.2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hiphop-php.git/commitdiff/8d9f731fea6d9d9cb45114f18400ff55ac4cf743



More information about the pld-cvs-commit mailing list