# Generated by go2rpm 1.17.1 %bcond check 1 # https://github.com/twpayne/chezmoi %global goipath github.com/twpayne/chezmoi Version: 2.64.0 %gometa -L -f Name: chezmoi Release: %autorelease Summary: Manage your dotfiles across multiple diverse machines, securely # Generated by go-vendor-tools License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools Patch0: disable-upgrade.diff Suggests: git-core Suggests: age Suggests: gnupg2 Suggests: pinentry Suggests: gopass Suggests: keepassxc Suggests: lastpass-cli Suggests: pass Suggests: rbw # 1password-command (op) not available # bitwarden-command (bw) not available # bitwarden-secrets-command (bws) not available # dashlane-command (dcli) not available # doppler-command (doppler) not available # keeper-command (keeper) not available # passhole-command (ph) not available # vault-command (vault) not available %description Manage your dotfiles across multiple diverse machines, securely. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 # disable upgrade rm internal/cmd/upgradecmd.go internal/cmd/upgradecmd_test.go internal/cmd/upgradecmd_unix.go internal/cmd/upgradecmd_windows.go %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %define currentgoldflags -X main.version=%{version} ${currentgoldflags} %gobuild -o %{gobuilddir}/bin/chezmoi %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 completions/%{name}-completion.bash %{buildroot}%{bash_completions_dir}/%{name}.bash install -Dpm 0644 completions/%{name}.fish -t %{buildroot}%{fish_completions_dir} install -Dpm 0644 completions/%{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc .markdownlint-cli2.yaml README.md docs %doc assets/chezmoi.io/snippets/config-format.md %doc assets/chezmoi.io/snippets/common-flags/exclude.md %doc assets/chezmoi.io/snippets/common-flags/format.md %doc assets/chezmoi.io/snippets/common-flags/include.md %doc assets/chezmoi.io/snippets/common-flags/init.md %doc assets/chezmoi.io/snippets/common-flags/nul-path-separator.md %doc assets/chezmoi.io/snippets/common-flags/parent-dirs.md %doc assets/chezmoi.io/snippets/common-flags/path-style.md %doc assets/chezmoi.io/snippets/common-flags/recursive.md %doc assets/chezmoi.io/snippets/common-flags/tree.md %{_bindir}/chezmoi %{bash_completions_dir}/%{name}.bash %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog %autochangelog