Add yaml file

This commit is contained in:
lizhenhua 2020-05-26 16:50:13 +08:00
parent 8a5b5d3c4a
commit 89e3bb49e8
2 changed files with 13 additions and 5 deletions

View File

@ -201,6 +201,9 @@ ip addr list ||:
ip route list ||: ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra= extra=
else
if [ ! -d "/.pkgs" ];then
extra=
else else
install -d cachedir repo install -d cachedir repo
find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo
@ -208,6 +211,7 @@ else
sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf extra=--with-supermin-packager-config=$(pwd)/yum.conf
fi fi
fi
%global localconfigure \ %global localconfigure \
%{configure} \\\ %{configure} \\\

4
libguestfs.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: libguestfs/libguestfs
tag_prefix: ^v
seperator: .