From: Thierry Parmentelat Date: Wed, 27 Feb 2008 10:55:07 +0000 (+0000) Subject: creation X-Git-Tag: nodeconfig-4.2-1~1 X-Git-Url: http://git.onelab.eu/?p=nodeconfig.git;a=commitdiff_plain;h=04c200194240c88c32e76e1ba0d5b3d664268c08 creation --- diff --git a/nodeconfig.spec b/nodeconfig.spec new file mode 100644 index 0000000..ef5e128 --- /dev/null +++ b/nodeconfig.spec @@ -0,0 +1,61 @@ +# +# $Id: PLCWWW.spec 7881 2008-01-22 14:45:22Z thierry $ +# +%define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/WWW/trunk/PLCWWW.spec $ + +%define name nodeconfig +%define version 4.2 +%define taglevel 1 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Summary: PlanetLab Central (PLC) nodes configuration files generator +Name: %{name} +Version: %{version} +Release: %{release} +License: PlanetLab +Group: System Environment/Daemons +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) + +# We use set everywhere +Requires: php >= 5.0 +Requires: PLCAPI >= 4.0 + +%description + +The nodeconfig package provides various php scripts that are used to +generate configuration files for nodes. It is taken out of the PLCWWW +module because it has crucial impact on nodes, while PLCWWW can and +does have several implementations at this moment. For historical +reasons these scripts get installed in /var/www/html/PlanetLabConf. + +%prep +%setup -q + +%build +echo "There is no build stage for this component." +echo "All files just need to be installed as is from the codebase." + +%install +rm -rf $RPM_BUILD_ROOT + +echo "* nodeconfig: Installing PlanetLabConf pages" + +mkdir -p $RPM_BUILD_ROOT/var/www/html/PlanetLabConf +# let's be conservative and exclude codebase files, though there should not be any +rsync -a --exclude \*.spec --exclude .svn --exclude CVS ./ $RPM_BUILD_ROOT/var/www/html/PlanetLabConf + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +/var/www/html/PlanetLabConf +