# # $Id: myplc-native.spec 9260 2008-05-07 16:20:25Z thierry $ # %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/MyPLC/trunk/myplc-native.spec $ %define name myplc-docs %define version 4.2 %define taglevel 20 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} Summary: PlanetLab Central (PLC) online documentation Name: %{name} Version: %{version} Release: %{release} License: PlanetLab Group: Applications/Systems Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Vendor: PlanetLab Packager: PlanetLab Central Distribution: PlanetLab %{plrelease} URL: %(echo %{url} | cut -d ' ' -f 2) BuildRequires: docbook-dtds, docbook-utils-pdf %define debug_package %{nil} %description This package contains the online documentation for MyPLC. This covers the overall system itself, together with the reference manuals for the two APIs provided, namely PLCAPI and NMAPI. %prep %setup -q %build rm -rf $RPM_BUILD_ROOT pushd MyPLC # beware that making the pdf file somehow overwrites the html make -C doc myplc.pdf rm -f doc/myplc.html make -C doc myplc.html popd pushd PLCAPI # beware that making the pdf file somehow overwrites the html make -C doc PLCAPI.pdf rm -f doc/PLCAPI.html make -C doc PLCAPI.html popd pushd NodeManager # beware that making the pdf file somehow overwrites the html make -C doc NMAPI.pdf rm -f doc/NMAPI.html make -C doc NMAPI.html popd %install for ext in pdf html; do install -D -m 444 MyPLC/doc/myplc.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/myplc.$ext install -D -m 444 PLCAPI/doc/PLCAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.$ext install -D -m 444 NodeManager/doc/NMAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.$ext done # myplc figures for ext in eps png; do install -m 444 MyPLC/doc/architecture.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/architecture.$ext done ./MyPLC/doc/docbook2drupal.sh "MyPLC Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/myplc.html \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/myplc.php ./MyPLC/doc/docbook2drupal.sh "PLC API Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.html \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.php ./MyPLC/doc/docbook2drupal.sh "Node Manager API Documentation (%{pldistro})" \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.html \ $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.php %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /var/www/html/planetlab/doc/ %changelog * Fri Apr 10 2009 Faiyaz Ahmed - MyPLC-4.2-20 - * Skip SSL generation for services that aren't enabled - * added --full flag to crond for vacuumdb * Tue Nov 18 2008 Daniel Hokka Zakrisson - MyPLC-4.2-19 - Add common slice attributes. - Clarified 'failed to authenticate' message. - Make db-config extensible. * Wed Sep 03 2008 Thierry Parmentelat - MyPLC-4.2-18 - onelab distro requires the dummynet_image package with myplc-native - (onelab distro does not build chroot-myplc anymore) * Fri Aug 01 2008 Faiyaz Ahmed - MyPLC-4.2-17 - Remove iptables conf_file. Now in iptables module. - Arch specific download directory now in /data for chrooted myplc - Vim now a dependency in myplc. :-) * Fri Jul 04 2008 Thierry Parmentelat - MyPLC-4.2-16 - yum config on nodes improved -- see https://svn.planet-lab.org/ticket/342 - also does not create any repo under /var/www/html/install-rpms, to prevent conflicts with noderepo * Tue May 20 2008 Faiyaz Ahmed - MyPLC-4.2-15 - Removed proper ops from planetflow slice. * Wed May 14 2008 Thierry Parmentelat - MyPLC-4.2-14 - myplc-native requires myplc-docs - fixed doc build by locating locally installed DTDs at build-time * Sun May 11 2008 Thierry Parmentelat - MyPLC-4.2-13 - turn myplc-docs off for now * Sat May 10 2008 Thierry Parmentelat - MyPLC-4.2-12 - figures in doc package * Fri May 09 2008 Thierry Parmentelat - MyPLC-4.2-11 - no more doc packaged outside of myplc-docs - doc/ cleaned up - chroot packaging does not have docs anymore - 'cvs' and 'dev' not required from myplc-native anymore - cosmetic change in kml output