creation
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 27 Feb 2008 10:55:07 +0000 (10:55 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 27 Feb 2008 10:55:07 +0000 (10:55 +0000)
nodeconfig.spec [new file with mode: 0644]

diff --git a/nodeconfig.spec b/nodeconfig.spec
new file mode 100644 (file)
index 0000000..ef5e128
--- /dev/null
@@ -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 <support@planet-lab.org>
+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
+