| |
@@ -30,10 +30,16 @@
|
| |
%gopkg
|
| |
|
| |
%prep
|
| |
+ %if %{defined rhel}
|
| |
+ %goprep -k
|
| |
+ # unpack vendored dependencies to GOPATH
|
| |
+ tar c -C vendor/ . | tar x -C %{gobuilddir}/src
|
| |
+ %else
|
| |
%goprep
|
| |
|
| |
%generate_buildrequires
|
| |
%go_generate_buildrequires
|
| |
+ %endif
|
| |
|
| |
%build
|
| |
%gobuild -o %{gobuilddir}/bin/go-md2man %{goipath}
|
| |
@@ -52,7 +58,7 @@
|
| |
%endif
|
| |
|
| |
%files
|
| |
- %license LICENSE.md
|
| |
+ %license LICENSE.md %{?rhel:vendor/modules.txt}
|
| |
%doc go-md2man.1.md README.md
|
| |
%{_bindir}/*
|
| |
%{_mandir}/man1/go-md2man.1*
|
| |
RHEL does not include packages for Go module dependencies.
This is needed to avoid importing the unwanted
golang-gopkg-russross-blackfriday-2
package into RHEL 10.