Fix exclusion while building tarball

Also exclude the tests to use even less temp dir space.
This commit is contained in:
Jon Griffiths 2016-03-03 00:18:03 +13:00
parent 094b6613d1
commit 7a14453ac4

View file

@ -33,7 +33,7 @@ sed -e "s/__NAME__/${name}/g" -e "s/__VERSION__/${version}/g" platform/rpm/${nam
# FIXME: We could parse RELNOTES and create a %changelog section here
# Copy the source to build into a tarball
tar czf ${tmpdir}/SOURCES/${name}-${version}.tar.gz . --transform "s/^./${name}-${version}/" --exclude='.git/*'
tar czf ${tmpdir}/SOURCES/${name}-${version}.tar.gz . --transform "s/^./${name}-${version}/" --exclude='./.git*' --exclude='./test*'
# Build the files (rpm, debug rpm and source rpm)
rpmbuild --quiet --define "_topdir ${tmpdir}" -ba ${tmp_spec_file}