diff --git a/skopeo.spec b/skopeo.spec index 36b64d3..8530ec3 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -30,14 +30,14 @@ ExcludeArch: ppc64 Name: %{repo} Epoch: 1 Version: 1.1.0 -Release: 4.dev.git%{shortcommit0} +Release: 5.dev.git%{shortcommit0} Summary: Work with remote images registries - retrieving information, images, signing content License: ASL 2.0 URL: https://github.com/containers/skopeo Source0: https://github.com/containers/skopeo/archive/v1.1.0.tar.gz +Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz BuildRequires: go-srpm-macros golang git pkgconfig(devmapper) make -BuildRequires: golang-github-cpuguy83-go-md2man BuildRequires: gpgme-devel libassuan-devel btrfs-progs-devel ostree-devel glib2-devel Requires: containers-common = %{epoch}:%{version}-%{release} @@ -225,8 +225,13 @@ policy under `/etc/containers/`. %prep %autosetup -Sgit -n %{name}-%{commit0} +tar -xf %SOURCE1 %build +cd go-md2man-* +go build -mod=vendor -o go-md2man . +export GOMD2MAN=$(realpath go-md2man) +cd - mkdir -p src/github.com/containers ln -s ../../../ src/%{import_path} @@ -330,5 +335,7 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/bash-completion/completions/%{name} %changelog +* Fri Feb 19 2021 haozi007 - 1.1.0-5.dev.git63085f5 +- Change BuildRequires to source go-md2man * Mon Feb 8 2021 haozi007 - 1.1.0-4.dev.git63085f5 - Change BuildRequires to golang diff --git a/v1.0.10.tar.gz b/v1.0.10.tar.gz new file mode 100644 index 0000000..c6b658c Binary files /dev/null and b/v1.0.10.tar.gz differ