1 Summary: PlanetLab Central API
4 Release: 2%{?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 # PostgreSQL and SOAPpy are necessary to run the API server, but not
30 # plcsh. Since the only supported method of running the server is via
31 # MyPLC anyway, don't be so stringent about binary requirements, in
32 # case people want to install this package just for plcsh.
33 # Requires: postgresql-server, SOAPpy
37 The PLCAPI package provides an XML-RPC and SOAP API for accessing the
38 PlanetLab Central (PLC) database. The API may be accessed directly via
39 the Python shell program plcsh, through a toy standalone server, or
40 through Apache mod_python.
46 # Build __init__.py metafiles and PHP API. Do not build documentation
48 %{__make} %{?_smp_mflags} subdirs="php php/xmlrpc"
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT" datadir="%{_datadir}" bindir="%{_bindir}"
54 # Install shell symlink
55 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
56 ln -s %{_datadir}/plc_api/plcsh $RPM_BUILD_ROOT/%{_bindir}/plcsh
58 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/php.d
59 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/php.d/xmlrpc.ini <<EOF
60 ; Enable xmlrpc extension module
65 rm -rf $RPM_BUILD_ROOT
67 %define php_extension_dir %(php-config --extension-dir)
70 %defattr(-,root,root,-)
71 %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
72 %dir %{_datadir}/plc_api
75 %{php_extension_dir}/xmlrpc.so
76 %{_sysconfdir}/php.d/xmlrpc.ini
77 %{_bindir}/refresh-peer.py*
80 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -