# Generated by go2rpm 1.14.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/direnv/direnv %global goipath github.com/direnv/direnv Version: 2.35.0 %gometa -L -f %global common_description %{expand: direnv augments existing shells with a new feature that can load and unload environment variables depending on the current directory.} %global golicenses LICENSE %global godocs docs CHANGELOG.md README.md version.txt man/direnv-\\\ fetchurl.1.md man/direnv-stdlib.1.md man/direnv.1.md\\\ man/direnv.toml.1.md pkg/dotenv/README.md Name: direnv Release: %autorelease.1 Summary: Per-directory shell configuration tool License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build %gobuild -o %{gobuilddir}/bin/direnv %{goipath} %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 install -m 0644 -vp man/*.1 %{buildroot}%{_mandir}/man1 %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc docs CHANGELOG.md README.md version.txt man/direnv-fetchurl.1.md %doc man/direnv-stdlib.1.md man/direnv.1.md man/direnv.toml.1.md %doc pkg/dotenv/README.md %{_bindir}/* %{_mandir}/man1/* %endif %gopkgfiles %changelog * Fri Aug 15 2025 Maxwell G - 2.35.0-1.1 - Rebuild for golang-1.25.0 %autochangelog