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 * Tue Feb 24 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-14
106 - fixed ResolveSlices
108 * Fri Feb 20 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-13
109 - new method ResolveSlices for planetflow central
111 * Fri Feb 20 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-12
112 - dummybox has support for ISO images
114 * Wed Sep 17 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-11
115 - merged changeset 8463 for properly handling plcsh scripts options
117 * Wed Sep 10 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-10
118 - Improvements in the dummy net boxes area
121 * Wed Sep 03 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-9
122 - new method for controlling dummynet boxes + minor fixes
124 * Mon Jul 28 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-8
125 - change peering logs location under /var/log/peers/
127 * Fri Jul 04 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-7
128 - fix for psycopg2-2.0.7 - more compliant with DBAPI-2.0
129 - as described in http://www.python.org/dev/peps/pep-0249/
131 * Wed Jun 25 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-6
132 - Marta's fixes for dummynet - for inclusion in rc11
134 * Sat Jun 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-5
135 - getbootmedium had an undefined variable
138 * Wed May 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-4
139 - fixed doc build by locating locally installed DTDs at build-time
141 * Fri May 09 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-3
142 - no more doc packaged outside of myplc-docs - doc/ cleaned up
143 - enhancements in doc on filters
145 * Thu Apr 24 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-dummynet-2
146 - rpm-requires in nodeconfig and PLCWWW need version to be >= 4.2
148 * Fri Feb 01 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-4.2-1 PLCAPI-4.2-2
149 - refresh peer script to use a month-dependent logfile
150 - tracking the starting point for UniPi integration of the dummynet boxes
152 * Thu Jan 31 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-4.2-0 PLCAPI-4.2-1
153 - plcsh adds its own path to sys.path
154 - fix so GetNodes can be called from a Node
156 * Fri Oct 27 2006 Mark Huang <mlhuang@CS.Princeton.EDU> -