CI: Keep patches near the specs to ease using the script from other dist-gits
That way, if a package (such as python-tox) uses it, the patches in dist-git are available. In the future, it also allows us to add patches without URLs to our tested spec files. Related: rhbz#2168193
This commit is contained in:
parent
05ff98103f
commit
81dd6d1601
@ -50,12 +50,12 @@ if [ ! -f $config ]; then
|
||||
fi
|
||||
|
||||
# prepare the rpmbuild folders, make sure nothing relevant is there
|
||||
mkdir -p ~/rpmbuild/{SOURCES,SRPMS}
|
||||
mkdir -p ~/rpmbuild/SRPMS
|
||||
rm -f ~/rpmbuild/SRPMS/${pkgname}-*.src.rpm
|
||||
|
||||
# download the sources and create SRPM
|
||||
spectool -g -R ${pkgname}.spec
|
||||
rpmbuild -bs ${pkgname}.spec
|
||||
spectool -g ${pkgname}.spec
|
||||
rpmbuild -bs --define '_sourcedir .' ${pkgname}.spec
|
||||
|
||||
# build the SRPM in mock
|
||||
res=0
|
||||
|
Loading…
Reference in New Issue
Block a user