Fix install of embedded files

Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
W. Michael Petullo 2022-10-26 13:34:29 -05:00
parent 0af22f8842
commit fecc930bb6

View File

@ -41,8 +41,8 @@ done
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vd %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/lexers/embedded
install -m 0644 -vp %{gobuilddir}/src/github.com/alecthomas/chroma/v2/lexers/embedded/* %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/lexers/embedded
install -m 0755 -vd %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded
install -m 0644 -vp %{gobuilddir}/src/github.com/alecthomas/chroma/v2/lexers/embedded/* %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded
%if %{with check}
%check
@ -56,7 +56,7 @@ install -m 0644 -vp %{gobuilddir}/src/github.com/alecthomas/chroma/v2/lexers/emb
%{_bindir}/*
%gopkgfiles
%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/lexers/embedded/
%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded/
%changelog
%autochangelog