diff --git a/ocid.spec b/ocid.spec index 523aeb8..9a04761 100644 --- a/ocid.spec +++ b/ocid.spec @@ -52,6 +52,7 @@ ExclusiveArch: x86_64 aarch64 ppc64le # If go_compiler is not set to 1, there is no virtual provide. Use golang instead. BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: btrfs-progs-devel +BuildRequires: git BuildRequires: glib2-devel BuildRequires: glibc-static BuildRequires: go-md2man @@ -413,7 +414,7 @@ providing packages with %{import_path} prefix. %endif %prep -%setup -q -n %{name}-1-%{commit0} +%autosetup -Sgit -n %{name}-1-%{commit0} cp %{SOURCE1} . cp %{SOURCE3} contrib/systemd/.