$ git clone -n https://src.fedoraproject.org/rpms/libstorj.git /var/lib/mock/f31-build-59507-28588/root/chroot_tmpdir/scmroot/libstorj Cloning into '/var/lib/mock/f31-build-59507-28588/root/chroot_tmpdir/scmroot/libstorj'... $ git reset --hard 128c9aab379e22fc975d080a2907e7b9f5ebb580 HEAD is now at 128c9aa Use %autosetup. Use %exclude rather than rm for static lib files. Clean-ups and small lib need not wildcard for one file in a folder etc. Update to 1.0.3.