Prevent having 2 spec files in the source tree, it causes troubles with rpmbuild.

This commit is contained in:
Ghislain MARY 2018-03-26 11:57:45 +02:00
parent c31ccedd1b
commit e1b1d47543
2 changed files with 2 additions and 1 deletions

View file

@ -74,4 +74,5 @@ cd ..
mkdir -p ${RPM_FOLDER}/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
tar --transform "s/^${REPO_FOLDER}/${RPM_NAME}/" -czvf ${RPM_FOLDER}/rpmbuild/SOURCES/${RPM_NAME}.tar.gz ${REPO_FOLDER}/
rpmbuild -bb --define "_topdir $PWD/${RPM_FOLDER}/rpmbuild" build/rpm/qt5.spec
rpmbuild -bb --define "_topdir $PWD/${RPM_FOLDER}/rpmbuild" build/rpm/qt5.spec.in