1 Summary: PlanetLab Central API
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 BuildRequires: docbook-dtds, docbook-utils-pdf
15 Requires: postgresql-server, SOAPpy
18 The PLCAPI package provides an XML-RPC and SOAP API for accessing the
19 PlanetLab Central (PLC) database. The API may be accessed directly via
20 the Python shell program plcsh, through a toy standalone server, or
21 through Apache mod_python.
27 # Build __init__.py metafiles, documentation, and PHP API
28 %{__make} %{?_smp_mflags}
31 %{__python} setup.py build
34 rm -rf $RPM_BUILD_ROOT
36 # Install in /usr/share/plc_api
37 %{__python} setup.py install \
38 --install-purelib=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
39 --install-scripts=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
40 --install-data=$RPM_BUILD_ROOT/%{_datadir}/plc_api
42 # Install shell symlink
43 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
44 ln -s %{_datadir}/plc_api/Shell.py $RPM_BUILD_ROOT/%{_bindir}/plcsh
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(-,root,root,-)
51 %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
52 %dir %{_datadir}/plc_api
57 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -