2 # $Id: PLCWWW.spec 7881 2008-01-22 14:45:22Z thierry $
4 %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/WWW/trunk/PLCWWW.spec $
6 %define name nodeconfig
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Central (PLC) nodes configuration files generator
17 Group: System Environment/Daemons
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 # We use set everywhere
29 Requires: PLCAPI >= 4.0
33 The nodeconfig package provides various php scripts that are used to
34 generate configuration files for nodes. It is taken out of the PLCWWW
35 module because it has crucial impact on nodes, while PLCWWW can and
36 does have several implementations at this moment. For historical
37 reasons these scripts get installed in /var/www/html/PlanetLabConf.
43 echo "There is no build stage for this component."
44 echo "All files just need to be installed as is from the codebase."
47 rm -rf $RPM_BUILD_ROOT
49 echo "* nodeconfig: Installing PlanetLabConf pages"
51 mkdir -p $RPM_BUILD_ROOT/var/www/html/PlanetLabConf
52 # let's be conservative and exclude codebase files, though there should not be any
53 rsync -a --exclude \*.spec --exclude .svn --exclude CVS ./ $RPM_BUILD_ROOT/var/www/html/PlanetLabConf
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(-,root,root,-)
60 /var/www/html/PlanetLabConf