You want to make those packages conflict with each other, so that yum knows that they cannot be installed simultaneously.
%package one
Summary: Summary for foo-one
Group: %{group}
Obsoletes: %{name} <= %{version}
Provides: %{name} = %{version}
Conflicts: %{name}-two