From: Thierry Parmentelat Date: Tue, 2 Sep 2008 13:02:44 +0000 (+0000) Subject: add require for dummynets in the onelab build + minor issue X-Git-Tag: MyPLC-4.2-18~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=22c116244c94df0564f05510b4f04495c8101f45;p=myplc.git add require for dummynets in the onelab build + minor issue --- diff --git a/myplc-native.spec b/myplc-native.spec index 56dce61..c69b272 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) - [ -d %{_rpmdir}/%{_arch} ] && chown -h -R $SUDO_USER %{_rpmdir}/%{_arch} + [ -d %{_rpmdir}/noarch ] && chown -h -R $SUDO_USER %{_rpmdir}/noarch fi %pre