| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Name: chezmoi |
| Version: 2.56.0 |
| Release: 0 |
| Summary: A multi-host manager for dotfiles |
| License: MIT |
| Group: Development/Tools/Version Control |
| URL: https://chezmoi.io |
| Source: %{name}-%{version}.tar.gz |
| Source1: vendor.tar.gz |
| Recommends: git |
| BuildRequires: golang(API) >= 1.22 |
| |
| %description |
| chezmoi is a manager for personal preference configs and state files |
| ("dotfiles") that programs such as editors might create. chezmoi |
| sources dotfiles from a GitHub repository and installs them onto new, |
| empty machines. |
| |
| %package bash-completion |
| Summary: Bash completion for %{name} |
| Requires: %{name} = %{version} |
| Supplements: (%{name} and bash-completion) |
| BuildArch: noarch |
| |
| %description bash-completion |
| Bash command line completion support for %{name}. |
| |
| %package fish-completion |
| Summary: Fish completion for %{name} |
| Requires: %{name} = %{version} |
| Supplements: (%{name} and fish) |
| BuildArch: noarch |
| |
| %description fish-completion |
| Fish command line completion support for %{name}. |
| |
| %package zsh-completion |
| Summary: Zsh completion for %{name} |
| Requires: %{name} = %{version} |
| Supplements: (%{name} and zsh) |
| BuildArch: noarch |
| |
| %description zsh-completion |
| Zsh command line completion support for %{name}. |
| |
| %prep |
| %autosetup -a 1 |
| |
| %build |
| go build \ |
| -mod=vendor \ |
| -buildmode=pie \ |
| -tags noupgrade \ |
| -ldflags "-X main.version=%version |
| -X main.builtBy=build.opensuse.org" |
| |
| %check |
| |
| go test \ |
| -mod=vendor \ |
| -buildmode=pie \ |
| -skip TestGoToolDistList \ |
| ./... |
| |
| %install |
| install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}" |
| install -D -m 0644 "completions/%{name}-completion.bash" "%{buildroot}/%{_datadir}/bash-completion/completions/%{name}" |
| install -D -m 0644 "completions/%{name}.fish" "%{buildroot}/%{_datadir}/fish/vendor_completions.d/%{name}.fish" |
| install -D -m 0644 "completions/%{name}.zsh" "%{buildroot}/%{_datadir}/zsh/site-functions/_%{name}" |
| |
| %files |
| %license LICENSE |
| %doc README.md |
| %{_bindir}/%{name} |
| |
| %files bash-completion |
| %{_datadir}/bash-completion/completions/%{name} |
| |
| %files fish-completion |
| %dir %{_datadir}/fish |
| %dir %{_datadir}/fish/vendor_completions.d |
| %{_datadir}/fish/vendor_completions.d/%{name}.fish |
| |
| %files zsh-completion |
| %dir %{_datadir}/zsh |
| %dir %{_datadir}/zsh/site-functions |
| %{_datadir}/zsh/site-functions/_%{name} |
| |
| %changelog |