1 Summary: PlanetLab Central API
4 Release: 1%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6 Group: System Environment/Daemons
7 URL: http://cvs.planet-lab.org/cvs/new_plc_api
8 Source0: %{name}-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13 # We use set everywhere
14 Requires: python >= 2.4
17 BuildRequires: postgresql-devel
19 # Standard xmlrpc.so that ships with PHP does not marshal NULL
20 BuildRequires: php-devel
24 # OpenJade does not honor XML catalog files and tries to access
25 # www.oasis-open.org even if DTDs are locally installed. Disable
26 # documentation generation for now.
27 # BuildRequires: docbook-dtds, docbook-utils-pdf
29 Requires: postgresql-server, SOAPpy
32 The PLCAPI package provides an XML-RPC and SOAP API for accessing the
33 PlanetLab Central (PLC) database. The API may be accessed directly via
34 the Python shell program plcsh, through a toy standalone server, or
35 through Apache mod_python.
41 # Build __init__.py metafiles and PHP API. Do not build documentation
43 %{__make} %{?_smp_mflags} subdirs="php php/xmlrpc"
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT" datadir="%{_datadir}" bindir="%{_bindir}"
49 # Install shell symlink
50 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
51 ln -s %{_datadir}/plc_api/Shell.py $RPM_BUILD_ROOT/%{_bindir}/plcsh
53 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/php.d
54 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/php.d/xmlrpc.ini <<EOF
55 ; Enable xmlrpc extension module
60 rm -rf $RPM_BUILD_ROOT
62 %define php_extension_dir %(php-config --extension-dir)
65 %defattr(-,root,root,-)
66 %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
67 %dir %{_datadir}/plc_api
70 %{php_extension_dir}/xmlrpc.so
71 %{_sysconfdir}/php.d/xmlrpc.ini
74 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -