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 # OpenJade does not honor XML catalog files and tries to access
14 # www.oasis-open.org even if DTDs are locally installed. Disable
15 # documentation generation for now.
16 # BuildRequires: docbook-dtds, docbook-utils-pdf
18 Requires: postgresql-server, SOAPpy
21 The PLCAPI package provides an XML-RPC and SOAP API for accessing the
22 PlanetLab Central (PLC) database. The API may be accessed directly via
23 the Python shell program plcsh, through a toy standalone server, or
24 through Apache mod_python.
30 # Build __init__.py metafiles and PHP API. Do not build documentation
32 %{__make} %{?_smp_mflags} SUBDIRS=php
35 %{__python} setup.py build
38 rm -rf $RPM_BUILD_ROOT
40 # Install in /usr/share/plc_api
41 %{__python} setup.py install \
42 --install-purelib=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
43 --install-scripts=$RPM_BUILD_ROOT/%{_datadir}/plc_api \
44 --install-data=$RPM_BUILD_ROOT/%{_datadir}/plc_api
46 # Install shell symlink
47 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
48 ln -s %{_datadir}/plc_api/Shell.py $RPM_BUILD_ROOT/%{_bindir}/plcsh
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(-,root,root,-)
55 %doc doc/PLCAPI.xml doc/PLCAPI.pdf doc/PLCAPI.html
56 %dir %{_datadir}/plc_api
61 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -