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.
This commit is contained in:
parent
25a125d3ac
commit
e5c4bb2455
@ -50,12 +50,12 @@ if [ ! -f $config ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# prepare the rpmbuild folders, make sure nothing relevant is there
|
# 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
|
rm -f ~/rpmbuild/SRPMS/${pkgname}-*.src.rpm
|
||||||
|
|
||||||
# download the sources and create SRPM
|
# download the sources and create SRPM
|
||||||
spectool -g -R ${pkgname}.spec
|
spectool -g ${pkgname}.spec
|
||||||
rpmbuild -bs ${pkgname}.spec
|
rpmbuild -bs --define '_sourcedir .' ${pkgname}.spec
|
||||||
|
|
||||||
# build the SRPM in mock
|
# build the SRPM in mock
|
||||||
res=0
|
res=0
|
||||||
|
Loading…
Reference in New Issue
Block a user