diff --git a/libguestfs.spec b/libguestfs.spec index c34a06df28bf0e62074c28272e73218999724dae..032932dab18ca0d6027e442204391703f0b0f0a4 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -203,7 +203,9 @@ 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 + if [ -d "/.pkgs" ];then + find /.pkgs/ -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo + fi createrepo repo sed -e "s|@PWD@|$(pwd)|" %{SOURCE2} > yum.conf extra=--with-supermin-packager-config=$(pwd)/yum.conf diff --git a/libguestfs.yaml b/libguestfs.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be8326369ca656d719d376a0c88c8f989361d0bb --- /dev/null +++ b/libguestfs.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: libguestfs/libguestfs +tag_prefix: ^v +seperator: .