File pre_checkin.sh of Package dpdk
21
1
2
3
# Start fresh
4
for f in spec changes; do
5
cp dpdk.$f dpdk-thunderx.$f || exit 1
6
done
7
8
#
9
#- Add comment about generated file
10
#- Fix {,sub-}package name, description, summary
11
#- Enable the dpdk conditional build
12
sed -i -e "/^Name:.*dpdk$/i \
13
# Do NOT edit this auto generated file! Edit dpdk.spec instead\n\
14
# and run 'pre_checkin.sh' before committing" \
15
-e "/^#\s*spec file/s/dpdk$/&-thunderx/" \
16
-e "/^Name:/s/dpdk/&-thunderx/g" \
17
-e "/^Summary:/s/^.*$/&\ \(thunderx\)/g" \
18
-e "/^%define machine2 armv8a/s/armv8a/thunderx/g" \
19
-e "/ExclusiveArch/c\ExclusiveArch: aarch64" \
20
dpdk-thunderx.spec || exit 1
21