## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.17.1 %bcond check 1 %global release_commit c3ab5f0ba37b2ba58b534eacc65a9a4e8ed75e86 # https://github.com/twpayne/chezmoi %global goipath github.com/twpayne/chezmoi Version: 2.63.1 %gometa -L -f Name: chezmoi Release: %autorelease Summary: Manage your dotfiles across multiple diverse machines # 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: git-core BuildRequires: go-vendor-tools %description Manage your dotfiles across multiple diverse machines, securely. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS="-X main.version=%{version} \ -X main.commit=%{release_commit} \ -X main.date=$(date -d "@${SOURCE_DATE_EPOCH}" +%Y-%m-%dT%H:%M:%SZ) \ -X main.builtBy=Fedora" export BUILDTAGS="noupgrade" %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/chezmoi-completion.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 completions/%{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish 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 README.md %{_bindir}/chezmoi %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Mon Sep 08 2025 Mikel Olasagasti Uranga - 2.63.1-1 - Initial package - Closes rhbz#2386221 ## END: Generated by rpmautospec