------------------------------------------------------------------

- Update specfile:
  * Use mandown to generate manpage for zellij from a markdown file.
  * Move docs with %doc macro properly.

OBS-URL: https://build.opensuse.org/package/show/utilities/zellij?expand=0&rev=27
This commit is contained in:
Soc Virnyl Estela 2022-10-09 02:31:26 +00:00 committed by Git OBS Bridge
parent e0c3c74b0c
commit a7c95550bd
2 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,11 @@
-------------------------------------------------------------------
------------------------------------------------------------------
Sun Oct 9 02:05:25 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Explicitly just enable unstable features with `--features unstable`
- Rebuild wasm-wasi plugins manually.
- Update specfile:
* Use mandown to generate manpage for zellij from a markdown file.
* Move docs with %doc macro properly.
-------------------------------------------------------------------
Sat Oct 8 10:51:51 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -29,6 +29,7 @@ Source2: cargo_config
Source3: README.suse-maint.md
BuildRequires: cargo-packaging
BuildRequires: libgcc_s1
BuildRequires: mandown
BuildRequires: rust+cargo >= 1.62
ExclusiveArch: %{rust_arches}
%if %{with test}
@ -104,13 +105,14 @@ mv target/wasm32-wasi/release/*.wasm assets/plugins/
./target/release/zellij setup --generate-completion bash > target/zellij.bash
./target/release/zellij setup --generate-completion fish > target/zellij.fish
./target/release/zellij setup --generate-completion zsh > target/zellij.zsh
mandown ./docs/MANPAGE.md > ./assets/zellij.1
%install
install -Dm644 -T ./target/zellij.bash %{buildroot}%{_datadir}/bash-completion/completions/zellij
install -Dm644 -T ./target/zellij.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/zellij.fish
install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions/_zellij
install -Dm644 -T ./assets/zellij.1 %{buildroot}%{_mandir}/man1/zellij.1
%{cargo_install} --features unstable
%if %{with test}
%check
%{cargo_test}
@ -118,7 +120,9 @@ install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions
%files
%{_bindir}/zellij
%{_mandir}/man1/zellij.1
%license LICENSE.md
%doc README.md docs/ARCHITECTURE.md docs/MANPAGE.md docs/TERMINOLOGY.md docs/THIRD_PARTY_INSTALL.md
%files bash-completion
%{_datadir}/bash-completion/*
@ -131,6 +135,4 @@ install -Dm644 -T ./target/zellij.zsh %{buildroot}%{_datadir}/zsh/site-functions
%dir %{_datadir}/zsh
%{_datadir}/zsh/*
%doc README.md
%changelog