Drop %autosetup -Sgit

I forgot to add BuildRequires: git-core for %autosetup -Sgit. It
happened to build successfully anyway in c9s but failed downstream in
RHEL. Drop the -Sgit option for now because I don't use this feature
anyway.

related: rhbz#2166106
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Stefan Hajnoczi 2023-04-25 13:19:58 -04:00
parent d3a7cba9a1
commit b09145b6bd

View File

@ -1,7 +1,7 @@
Version: 1.2.2
Summary: Block device I/O library
Name: libblkio
Release: 1%{?dist}
Release: 2%{?dist}
URL: https://gitlab.com/libblkio/libblkio
Source0: %{url}/-/archive/v%{version}/libblkio-v%{version}.tar.bz2
Source1: libblkio-vendor-v%{version}.tar.bz2
@ -34,7 +34,7 @@ This package contains development tools for %{name}.
%prep
%autosetup -n libblkio-v%{version} -p1 -Sgit -b 1
%autosetup -n libblkio-v%{version} -p1 -b 1
sed -e 's/--locked/--offline/' -i src/cargo-build.sh
@ -63,5 +63,7 @@ sed -e 's/--locked/--offline/' -i src/cargo-build.sh
%changelog
* Wed Apr 26 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-2
- Remove %autosetup -Sgit as it's not used and the build could break because BuildRequires: git-core was missing
* Tue Apr 11 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-1
- Import Fedora rpm 1.2.2-4 spec file with license updates (https://src.fedoraproject.org/rpms/libblkio/pull-request/1)