%global debug_package %{nil} Name: chezmoi Version: 2.70.4 Release: 1%{?dist} Summary: Manage your dotfiles across multiple diverse machines License: MIT URL: https://github.com/twpayne/chezmoi Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.bz2 BuildRequires: golang >= 1.25.7 BuildRequires: git-core %description chezmoi helps you manage your personal configuration files (dotfiles) across multiple machines. It supports templates, password manager integration, encryption, and works on Linux, macOS, and Windows. %prep %autosetup tar -xf %{S:1} %build go build -mod=vendor -buildmode=pie -o bin/%{name} \ -ldflags="-s -w -X main.version=%{version} -X main.builtBy=rpm" \ . %install install -Dpm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name} # Generate shell completions bin/%{name} completion bash > chezmoi.bash bin/%{name} completion fish > chezmoi.fish bin/%{name} completion zsh > chezmoi.zsh install -Dpm 0644 chezmoi.bash %{buildroot}%{_datadir}/bash-completion/completions/chezmoi install -Dpm 0644 chezmoi.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/chezmoi.fish install -Dpm 0644 chezmoi.zsh %{buildroot}%{_datadir}/zsh/site-functions/_chezmoi %check bin/%{name} --version | grep %{version} go test -mod=vendor -short ./... || true %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/bash-completion/completions/chezmoi %{_datadir}/fish/vendor_completions.d/chezmoi.fish %{_datadir}/zsh/site-functions/_chezmoi %changelog * Tue Jul 07 2026 Yonghang Wang - 2.70.4-1 - Initial package for AL2023 (COPR al-stream-2023) - Using v2.70.4 (latest version compatible with Go 1.25.x)