echo "----------------------------------"
echo "Clone Fedora copr repo and copy files."
echo
- git clone http://copr-dist-git.fedorainfracloud.org/cgit/pmatilai/dpdk-snapshot/openvswitch.git
- cd openvswitch
+ git clone https://github.com/tfherbert/ovs-snap.git
+ cd ovs-snap
git checkout $COPR_OVS_VERSION
- cp $TMPDIR/openvswitch/openvswitch.spec $RPMDIR/SPECS
- cp $TMPDIR/openvswitch/* $RPMDIR/SOURCES
- snapgit=`grep "define snapver" $TMPDIR/openvswitch/openvswitch.spec | cut -c26-33`
+ cp $TMPDIR/ovs-snap/openvswitch.spec $RPMDIR/SPECS
+ cp $TMPDIR/ovs-snap/* $RPMDIR/SOURCES
+ snapgit=`grep "define snapver" $TMPDIR/ovs-snap/openvswitch.spec | cut -c26-33`
echo "-------------------------------------------"
echo "Remove old dpdk, ovs and dpdk development rpms"
echo
prefix=openvswitch-${basever}
archive=${prefix}-${snapser}.git${snapgit}.tar.gz
git archive --prefix=${prefix}-${snapser}.git${snapgit}/ HEAD | gzip -9 > $RPMDIR/SOURCES/${archive}
- cd $TMPDIR/openvswitch
+ cd $TMPDIR/ovs-snap
echo "--------------------------------------------"
echo "Build openvswitch RPM"
echo