File direnv.spec of Package direnv

# spec file for package direnv
# Copyright (c) 2021 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define gopackagepath
Name:           direnv
Version:        2.28.0
Release:        0
Summary:        Environment switcher for shells
License:        MIT
Group:          Productivity/File utilities
Source1:        vendor.tar.gz
BuildRequires:  fish
BuildRequires:  go >= 1.6
BuildRequires:  make

direnv knows how to hook into bash, zsh, tcsh and fish shell to load
or unload environment variables depending on the current directory.
This allows to have project-specific environment variables and not
clutter the "~/.profile" file.

%setup -q -a 1

%make_build PREFIX=%{_prefix} \
%ifnarch ppc64

%make_install PREFIX=%{_prefix}

# Fish environment config

openSUSE Build Service is sponsored by