SHA256
1
0
forked from pool/dpdk
dpdk/pre_checkin.sh
Markos Chandras fe796e1570 Accepting request 452112 from home:ndas:branches:network
- Fix possible parallel installation of dpdk subpackages.
- Fix possible parallel installation of dpdk subpackages.

OBS-URL: https://build.opensuse.org/request/show/452112
OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=26
2017-01-24 10:01:26 +00:00

20 lines
570 B
Bash

#!/bin/sh
# Start fresh
for f in spec changes; do
cp dpdk.$f dpdk-thunderx.$f || exit 1
done
#
#- Add comment about generated file
#- Fix {,sub-}package name, description, summary
#- Enable the dpdk conditional build
sed -i -e "/^Name:.*dpdk$/i \
# Do NOT edit this auto generated file! Edit dpdk.spec instead\n\
# and run 'pre_checkin.sh' before committing" \
-e "/^#\s*spec file/s/dpdk$/&-thunderx/" \
-e "/^Name:/s/dpdk/&-thunderx/g" \
-e "/^Summary:/s/^.*$/&\ \(thunderx\)/g" \
-e "/^%define machine2 armv8a/s/armv8a/thunderx/g" \
dpdk-thunderx.spec || exit 1