7 %define module_version_varname branchname
8 %define branchname dummynet
11 # this branch was created from tag PLCAPI-4.2-2
15 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
17 Summary: PlanetLab Central API
22 Group: System Environment/Daemons
23 Source0: %{name}-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
27 Packager: PlanetLab Central <support@planet-lab.org>
28 Distribution: PlanetLab %{plrelease}
29 URL: %(echo %{url} | cut -d ' ' -f 2)
33 # We use set everywhere
34 Requires: python >= 2.4
37 BuildRequires: postgresql-devel
39 # Standard xmlrpc.so that ships with PHP does not marshal NULL
40 BuildRequires: php-devel
44 # PostgreSQL and SOAPpy are necessary to run the API server, but not
45 # plcsh. Since the only supported method of running the server is via
46 # MyPLC anyway, don't be so stringent about binary requirements, in
47 # case people want to install this package just for plcsh.
48 # Requires: postgresql-server, SOAPpy
52 The PLCAPI package provides an XML-RPC and SOAP API for accessing the
53 PlanetLab Central (PLC) database. The API may be accessed directly via
54 the Python shell program plcsh, through a toy standalone server, or
55 through Apache mod_python.
61 # python-pycurl and python-psycopg2 avail. from fedora 5
62 # make sure to check build/<pldistro>/plc.pkgs
63 if [ "%{distrorelease}" -le 4 ] ; then
64 modules="psycopg2 pycurl"
68 # Build __init__.py metafiles and PHP API.
69 %{__make} %{?_smp_mflags} subdirs="php php/xmlrpc" modules="$modules"
72 rm -rf $RPM_BUILD_ROOT
73 if [ "%{distrorelease}" -le 4 ] ; then
74 modules="psycopg2 pycurl"
78 %{__make} %{?_smp_mflags} install DESTDIR="$RPM_BUILD_ROOT" datadir="%{_datadir}" bindir="%{_bindir}" modules="$modules"
80 # Install shell symlink
81 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
82 ln -s %{_datadir}/plc_api/plcsh $RPM_BUILD_ROOT/%{_bindir}/plcsh
84 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/php.d
85 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/php.d/xmlrpc.ini <<EOF
86 ; Enable xmlrpc extension module
91 rm -rf $RPM_BUILD_ROOT
93 %define php_extension_dir %(php-config --extension-dir)
96 %defattr(-,root,root,-)
97 %dir %{_datadir}/plc_api
100 %{php_extension_dir}/xmlrpc.so
101 %{_sysconfdir}/php.d/xmlrpc.ini
102 %{_bindir}/refresh-peer.py*
105 * Fri Feb 20 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-13
106 - new method ResolveSlices for planetflow central
108 * Fri Feb 20 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-12
109 - dummybox has support for ISO images
111 * Wed Sep 17 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-11
112 - merged changeset 8463 for properly handling plcsh scripts options
114 * Wed Sep 10 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-10
115 - Improvements in the dummy net boxes area
118 * Wed Sep 03 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-9
119 - new method for controlling dummynet boxes + minor fixes
121 * Mon Jul 28 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-8
122 - change peering logs location under /var/log/peers/
124 * Fri Jul 04 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-7
125 - fix for psycopg2-2.0.7 - more compliant with DBAPI-2.0
126 - as described in http://www.python.org/dev/peps/pep-0249/
128 * Wed Jun 25 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-6
129 - Marta's fixes for dummynet - for inclusion in rc11
131 * Sat Jun 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-5
132 - getbootmedium had an undefined variable
135 * Wed May 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-4
136 - fixed doc build by locating locally installed DTDs at build-time
138 * Fri May 09 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-3
139 - no more doc packaged outside of myplc-docs - doc/ cleaned up
140 - enhancements in doc on filters
142 * Thu Apr 24 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-2
143 - rpm-requires in nodeconfig and PLCWWW need version to be >= 4.2
145 * Fri Feb 01 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-4.2-1 PLCAPI-4.2-2
146 - refresh peer script to use a month-dependent logfile
147 - tracking the starting point for UniPi integration of the dummynet boxes
149 * Thu Jan 31 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-4.2-0 PLCAPI-4.2-1
150 - plcsh adds its own path to sys.path
151 - fix so GetNodes can be called from a Node
153 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -