From 1117bff1c9f9ce8babf090f8398846be75af6147 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 2 Sep 2008 13:02:44 +0000 Subject: [PATCH] add require for dummynets in the onelab build + minor issue --- myplc-native.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/myplc-native.spec b/myplc-native.spec index 188e068..158d60a 100644 --- a/myplc-native.spec +++ b/myplc-native.spec @@ -72,6 +72,11 @@ Requires: PLCAPI Requires: bootstrapfs-%{pldistro}-%{_arch} Requires: myplc-docs +# argh - ugly - we might wish to use something from build/config.%{pldistro} instead +%if "%{pldistro}" == "onelab" +Requires: dummynet_image +%endif + Provides: myplc %define debug_package %{nil} @@ -108,7 +113,7 @@ if [ -n "$SUDO_USER" ] ; then # /usr/bin/sudo get created with non-readable permissions. find . -not -perm +0600 -exec chmod u+rw {} \; # Allow user to delete the built RPM(s) - chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} + [ -d %{_rpmdir}/noarch ] && chown -h -R $SUDO_USER %{_rpmdir}/noarch fi %pre -- 2.43.0