aac29e6
# Generated by go2rpm 1
aac29e6
%bcond_without check
aac29e6
ce9dbfc
# https://github.com/direnv/direnv
aac29e6
%global goipath         github.com/direnv/direnv
af5c82a
Version:                2.21.2
ce9dbfc
aac29e6
%gometa
ce9dbfc
aac29e6
%global common_description %{expand:
aac29e6
direnv augments existing shells with a new feature that can load and unload
aac29e6
environment variables depending on the current directory.}
ce9dbfc
9ba1f70
%global golicenses      LICENSE
aac29e6
%global godocs          docs CHANGELOG.md README.md version.txt man/direnv-\\\
aac29e6
                        stdlib.1.md man/direnv.toml.1.md man/direnv.1.md
ce9dbfc
aac29e6
Name:           direnv
af5c82a
Release:        1%{?dist}
aac29e6
Summary:        Per-directory shell configuration tool
ce9dbfc
aac29e6
License:        MIT
aac29e6
URL:            %{gourl}
aac29e6
Source0:        %{gosource}
ce9dbfc
aac29e6
# Work around bug in markdown->man generation
aac29e6
# https://github.com/direnv/direnv/pull/113
aac29e6
Patch0:         direnv-fix-manpage.patch
ce9dbfc
aac29e6
BuildRequires:  golang(github.com/BurntSushi/toml)
aac29e6
BuildRequires:  golang(github.com/direnv/go-dotenv)
9ba1f70
BuildRequires:  golang(golang.org/x/mod/semver)
ce9dbfc
aac29e6
%description
aac29e6
%{common_description}
ce9dbfc
aac29e6
%gopkg
ce9dbfc
aac29e6
%prep
aac29e6
%goprep
aac29e6
%patch0 -p1
ce9dbfc
aac29e6
%build
aac29e6
%gobuild -o %{gobuilddir}/bin/direnv %{goipath}
ce9dbfc
aac29e6
%install
aac29e6
%gopkginstall
aac29e6
install -m 0755 -vd                     %{buildroot}%{_bindir}
aac29e6
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
ce9dbfc
aac29e6
install -m 0755 -vd         %{buildroot}%{_mandir}/man1
aac29e6
install -m 0644 -vp man/*.1 %{buildroot}%{_mandir}/man1
ce9dbfc
aac29e6
%if %{with check}
aac29e6
%check
aac29e6
%gocheck
aac29e6
%endif
ce9dbfc
aac29e6
%files
9ba1f70
%license LICENSE
aac29e6
%doc docs CHANGELOG.md README.md version.txt
aac29e6
%{_bindir}/*
aac29e6
%{_mandir}/man1/*
ce9dbfc
aac29e6
%gopkgfiles
ce9dbfc
aac29e6
%changelog
af5c82a
* Sun Jan 26 2020 Ed Marshall <esm@logic.net> - 2.21.2-1
af5c82a
- Update to 2.21.2
af5c82a
8e402ed
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.21.1-2
8e402ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8e402ed
9ba1f70
* Sun Jan 26 2020 Ed Marshall <esm@logic.net> - 2.21.1-1
9ba1f70
- Update to 2.21.1
9ba1f70
aac29e6
* Wed Oct 30 2019 Ed Marshall <esm@logic.net> - 2.20.1-1
aac29e6
- Update to 2.20.1
aac29e6
- Update spec to latest Fedora go packaging guidelines
ce9dbfc
ce9dbfc
* Tue Aug 30 2016 Dominic Cleal <dominic@cleal.org> - 2.9.0-2
ce9dbfc
- Fix make call to use parallel flag macro
ce9dbfc
- Fix default values of EA/BRs when macros aren't defined
ce9dbfc
ce9dbfc
* Wed Jul 20 2016 Dominic Cleal <dominic@cleal.org> - 2.9.0-1
ce9dbfc
- Initial build for Fedora