rendered paste body%define _provides_exceptions devel(
%define _requires_exceptions devel(
Summary: The Roadsend PCC Compiler for PHP
Name: roadsend-php
Version: 2.9.5
Release: 1%{?dist}
Group: Development/Languages
License: GPLv2+
URL: http://code.roadsend.com/pcc/
Source0: http://code.roadsend.com/snaps/%{name}-%{version}.tar.bz2
BuildRequires: bigloo
BuildRequires: fcgi-devel
BuildRequires: curl-devel
BuildRequires: indent
BuildRequires: libxml2-devel
BuildRequires: mysql-devel
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: sqlite-devel
BuildRequires: texinfo
Requires: bigloo
Requires: indent
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: x86_64
%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}
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir}/man1 \
--infodir=%{_infodir} \
--docdir=%{_docdir} \
--with-pcre \
--with-fcgi \
--with-xml \
--with-mysql \
--with-pdo=yes \
--without-odbc \
--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 $RPM_BUILD_ROOT
export LD_LIBRARY_PATH=`pwd`/libs
%makeinstall
#to be ok with X64 platforms
sed -i 's/\/usr\/lib64/\/usr\/lib/g' $RPM_BUILD_ROOT%{_sysconfdir}/pcc.conf
sed -i 's/\/usr\/lib/\/usr\/lib64/g' $RPM_BUILD_ROOT%{_sysconfdir}/pcc.conf
# cleanup
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.h
install -d $RPM_BUILD_ROOT%{_libdir}/pcc
pushd $RPM_BUILD_ROOT%{_libdir}
for f in {*.so,*.heap,*.init,*.sch}
do
mv $f $RPM_BUILD_ROOT%{_libdir}/pcc/
done
popd
chmod +x $RPM_BUILD_ROOT%{_libdir}/pcc/*.so
install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/pcc" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/pcc.conf
mv doc/manual/html doc/html
rm -f doc/html/resources
mv doc/resources doc/html/resources
%post
ldconfig
%postun
ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc doc/COMPILER-LICENSE doc/RUNTIME-LICENSE README doc/html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pcc.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ld.so.conf.d/pcc.conf
%dir %{_libdir}/pcc
%attr(0755,root,root) %{_libdir}/pcc/*.so
%{_libdir}/pcc/*.init
%{_libdir}/pcc/*.sch
%{_libdir}/pcc/*.heap
%attr(0755,root,root) %{_bindir}/pcc.fcgi
%attr(0755,root,root) %{_bindir}/pcctags
%attr(0755,root,root) %{_bindir}/pdb
%attr(0755,root,root) %{_bindir}/pcc
%changelog
* Fri Apr 12 2008 Patrice Ferlet <metal3d@copix.org> 2.9.5-1.fc8
+ Modification for fedora
* 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)