- split zsh and fish completion into subpackages to have

proper supplements

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=368
This commit is contained in:
Pedro Monreal Gonzalez 2024-06-20 15:19:38 +00:00 committed by Git OBS Bridge
parent 1559703829
commit bc1872d764
2 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 20 14:58:27 UTC 2024 - Dirk Müller <dmueller@suse.com>
- split zsh and fish completion into subpackages to have
proper supplements
-------------------------------------------------------------------
Mon Jun 17 21:29:09 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -95,6 +95,26 @@ BuildArch: noarch
%description -n libcurl-devel-doc
Manual pages for the libcurl C API.
%package fish-completion
Summary: Fish completion for curl
Group: System/Shells
Requires: fish
Supplements: (curl and fish)
BuildArch: noarch
%description fish-completion
Fish command line completion support for %name.
%package zsh-completion
Summary: Zsh Completion for %name
Group: System/Shells
Requires: zsh
Supplements: (curl and zsh)
BuildArch: noarch
%description zsh-completion
ZSH command line completion support for %name.
%prep
%autosetup -p1
@ -161,10 +181,14 @@ popd
%doc README RELEASE-NOTES CHANGES
%doc docs/{BUGS.md,FAQ,FEATURES.md,TODO,TheArtOfHttpScripting.md}
%{_bindir}/curl
%{_datadir}/zsh/site-functions/_curl
%{_mandir}/man1/curl.1%{?ext_man}
%files zsh-completion
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_curl
%files fish-completion
%dir %{_datadir}/fish/
%dir %{_datadir}/fish/vendor_completions.d/
%{_datadir}/fish/vendor_completions.d/curl.fish