# Generated by go2rpm 1 %bcond_without check # https://github.com/direnv/direnv %global goipath github.com/direnv/direnv Version: 2.20.1 %gometa %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.md %global godocs docs CHANGELOG.md README.md version.txt man/direnv-\\\ stdlib.1.md man/direnv.toml.1.md man/direnv.1.md Name: direnv Release: 1%{?dist} Summary: Per-directory shell configuration tool License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/direnv/go-dotenv) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/direnv %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 install -m 0755 -vp man/*.1 %{buildroot}%{_mandir}/man1 %if %{with check} %check %gocheck %endif %files %license LICENSE.md %doc docs CHANGELOG.md README.md version.txt %{_bindir}/* %{_mandir}/* %gopkgfiles %changelog * Wed Oct 30 14:02:01 PDT 2019 Ed Marshall - 2.20.1-1 - Initial (re-)package