2 # $Id: myplc-native.spec 9260 2008-05-07 16:20:25Z thierry $
4 %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/MyPLC/trunk/myplc-native.spec $
6 %define name myplc-docs
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Central (PLC) online documentation
17 Group: Applications/Systems
18 Source0: %{name}-%{version}.tar.gz
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
23 Packager: PlanetLab Central <support@planet-lab.org>
24 Distribution: PlanetLab %{plrelease}
25 URL: %(echo %{url} | cut -d ' ' -f 2)
27 %define debug_package %{nil}
30 This package contains the online documentation for MyPLC. This covers
31 the overall system itself, together with the reference manuals for the
32 two APIs provided, namely PLCAPI and NMAPI.
38 rm -rf $RPM_BUILD_ROOT
41 # beware that making the pdf file somehow overwrites the html
44 make -C doc myplc.html
48 # beware that making the pdf file somehow overwrites the html
49 make -C doc PLCAPI.pdf
51 make -C doc PLCAPI.html
55 # beware that making the pdf file somehow overwrites the html
58 make -C doc NMAPI.html
63 for ext in pdf html; do
64 install -D -m 444 MyPLC/doc/myplc.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/
65 install -D -m 444 PLCAPI/doc/PLCAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/
66 install -D -m 444 NodeManager/doc/NMAPI.$ext $RPM_BUILD_ROOT/var/www/html/planetlab/doc/
69 ./MyPLC/doc/docbook2drupal.sh "MyPLC Documentation (%{pldistro})" \
70 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/myplc.html \
71 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/myplc.php
72 ./MyPLC/doc/docbook2drupal.sh "PLC API Documentation (%{pldistro})" \
73 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.html \
74 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/PLCAPI.php
75 ./MyPLC/doc/docbook2drupal.sh "Node Manager API Documentation (%{pldistro})" \
76 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.html \
77 $RPM_BUILD_ROOT/var/www/html/planetlab/doc/NMAPI.php
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(-,root,root,-)
84 /var/www/html/planetlab/doc/