Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 7ed928da692b49bf311d5868a4adf1b0 > files > 3

roadsend-php-2.9.8-1mdv2010.1.src.rpm

%define _provides_exceptions devel(
%define _requires_exceptions devel(

Summary:	The Roadsend PCC Compiler for PHP
Name:		roadsend-php
Version:	2.9.8
Release:	%mkrel 1
Group:		Development/PHP
License:	GPLv2+
URL:		http://code.roadsend.com/pcc/
Source0:	http://code.roadsend.com/snaps/%{name}-%{version}.tar.bz2
Patch0:		roadsend-php-mandriva_bigloo.diff
BuildRequires:	bigloo-devel >= 3.0c
BuildRequires:	curl-devel >= 7.15.1
BuildRequires:	indent
BuildRequires:	info-install
BuildRequires:	libfcgi-devel
BuildRequires:	libxml2-devel
BuildRequires:	mysql-devel
BuildRequires:	openssl-devel
BuildRequires:	pcre-devel
BuildRequires:	sqlite3-devel >= 3.0.0
BuildRequires:	texinfo
Requires:	bigloo >= 3.0c
Requires:	indent
Requires(post): info-install
Requires(preun): info-install
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Roadsend Compiler for PHP produces optimized stand alone applications,
libraries, and Web applications from standard PHP source code. The compiler
produces native machine code, not PHP byte code, so no interpreter is
required. It is a new implementation of the PHP language and runtime
environment compatible with Zend PHP. It does not share any code with the
original PHP implementation.

%prep

%setup -q -n %{name}-%{version}
#patch0 -p1

%build
%configure2_5x \
    --libdir=%{_libdir}/pcc \
    --mandir=%{_mandir}/man1 \
    --with-pcre \
    --with-fcgi \
    --with-xml \
    --with-mysql \
    --with-sqlite3 \
    --with-gtk=no \
    --with-gtk2=no

export LD_LIBRARY_PATH=`pwd`/libs
make

# make the manual
pushd doc/manual
    make
popd

%install
rm -rf %{buildroot}

export LD_LIBRARY_PATH=`pwd`/libs
%makeinstall_std

pushd %{buildroot}%{_libdir}
for i in pcc/*.so; do
    f=`basename $i`
    mv $i .
    chmod 755 $f
    ln -sf ../$f pcc/$f
done
popd

# cleanup
rm -f %{buildroot}%{_libdir}/pcc/*.a
rm -f %{buildroot}%{_libdir}/pcc/*.h

# prepare the manual
rm -rf html-manual
install -d html-manual/resources
install -m0644 doc/manual/html/*.html html-manual/
install -m0644 doc/resources/* html-manual/resources/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc html-manual/* doc/COMPILER-LICENSE doc/RUNTIME-LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pcc.conf
%attr(0755,root,root) %dir %{_libdir}/pcc
%attr(0755,root,root) %{_libdir}/*.so
%attr(0644,root,root) %{_libdir}/pcc/*.heap
%attr(0755,root,root) %{_libdir}/pcc/*.so
%attr(0644,root,root) %{_libdir}/pcc/*.sch
%attr(0644,root,root) %{_libdir}/pcc/*.init
%attr(0755,root,root) %{_bindir}/pcc
%attr(0755,root,root) %{_bindir}/pcc.fcgi
%attr(0755,root,root) %{_bindir}/pcctags
%attr(0755,root,root) %{_bindir}/pdb



%changelog
* Mon Apr 12 2010 Funda Wang <fwang@mandriva.org> 2.9.8-1mdv2010.1
+ Revision: 533659
- New version 2.9.8

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Sat Aug 02 2008 Thierry Vignaud <tv@mandriva.org> 2.9.5-4mdv2009.0
+ Revision: 260277
- rebuild

* Mon Jul 28 2008 Thierry Vignaud <tv@mandriva.org> 2.9.5-3mdv2009.0
+ Revision: 251329
- rebuild

* Thu Feb 21 2008 Oden Eriksson <oeriksson@mandriva.com> 2.9.5-1mdv2008.1
+ Revision: 173474
- 2.9.5
- rediffed P0

* Mon Jan 21 2008 Oden Eriksson <oeriksson@mandriva.com> 2.9.4-0.1mdv2008.1
+ Revision: 155676
- fix deps (curl-devel)
- import roadsend-php


* Mon Jan 21 2008 Oden Eriksson <oeriksson@mandriva.com> 2.9.4-0.1mdv2008.1
- initial Mandriva package (WIP)