diff --git a/libguestfs.spec b/libguestfs.spec index c34a06df28bf0e62074c28272e73218999724dae..bb7143d18cf9907c2104ad609dff69ac1afffde3 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -4,7 +4,7 @@ Name: libguestfs Version: 1.40.2 -Release: 6 +Release: 7 Epoch: 1 Summary: A set of tools for accessing and modifying virtual machine (VM) disk images License: LGPLv2+ @@ -196,18 +196,18 @@ fi sed -i 's/FEDORA | RHEL | CENTOS)/FEDORA | RHEL | CENTOS | EULEROS | GENERIC)/g' configure -%build -ip addr list ||: -ip route list ||: -if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then - extra= -else - install -d cachedir repo - find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo - createrepo repo - sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf - extra=--with-supermin-packager-config=$(pwd)/yum.conf -fi +#%build +#ip addr list ||: +#ip route list ||: +#if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then +# extra= +#else +# install -d cachedir repo +# find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo +# createrepo repo +# sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf +# extra=--with-supermin-packager-config=$(pwd)/yum.conf +#fi %global localconfigure \ %{configure} \\\ diff --git a/yum.conf.in b/yum.conf.in index c1fbe8e6492a29f0113fcf2ffd6648a438f21783..6258f6b2d60884e98220204dc11cd72f4edbbe39 100644 --- a/yum.conf.in +++ b/yum.conf.in @@ -10,9 +10,14 @@ assumeyes=1 reposdir=/dev/null modulesdir=@PWD@/modules -[local] -name=local -baseurl=file://@PWD@/repo -failovermethod=priority +[obs-1] +name=obs-1 +baseurl=http://10.175.102.91:82/openEuler:/Mainline/standard_aarch64/ enabled=1 gpgcheck=0 + +[obs-2] +name=obs-2 +baseurl=http://10.175.102.91:82/openEuler:/Extras/standard_aarch64/ +enabled=1 +gpgcheck=0 \ No newline at end of file