Add bash-completion and man pages.
This commit is contained in:
parent
d0e3d2a959
commit
ae5310d626
12
hugo.spec
12
hugo.spec
|
@ -5,7 +5,7 @@ Version: 0.54.0
|
|||
%gometa
|
||||
|
||||
Name: hugo
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A Fast and Flexible Static Site Generator built with love in GoLang
|
||||
License: ASL 2.0 and MIT
|
||||
URL: %{gourl}
|
||||
|
@ -120,6 +120,8 @@ sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
|
|||
%gobuildroot
|
||||
|
||||
%gobuild -o _bin/hugo %{goipath}
|
||||
_bin/hugo gen autocomplete --completionfile hugo-completion
|
||||
_bin/hugo gen man
|
||||
|
||||
|
||||
%install
|
||||
|
@ -127,6 +129,8 @@ sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
|
|||
|
||||
install -d -p %{buildroot}%{_bindir}
|
||||
install -p -m 0755 _bin/hugo %{buildroot}%{_bindir}
|
||||
install -Dp hugo-completion %{buildroot}%{_datadir}/bash-completion/completions/hugo
|
||||
install -Dp man/* -t %{buildroot}%{_mandir}/man1
|
||||
|
||||
|
||||
%check
|
||||
|
@ -140,6 +144,8 @@ install -p -m 0755 _bin/hugo %{buildroot}%{_bindir}
|
|||
%doc CONTRIBUTING.md README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/hugo
|
||||
%{_datadir}/bash-completion/completions/hugo
|
||||
%{_mandir}/man1/*.1*
|
||||
|
||||
%files -n %{goname}-devel -f devel.file-list
|
||||
%doc CONTRIBUTING.md README.md
|
||||
|
@ -147,6 +153,10 @@ install -p -m 0755 _bin/hugo %{buildroot}%{_bindir}
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Mar 22 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.54.0-2
|
||||
- Add bash-completion
|
||||
- Add man pages
|
||||
|
||||
* Mon Mar 04 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.54.0-1
|
||||
- Update to latest version
|
||||
|
||||
|
|
Loading…
Reference in New Issue