File nodejs-package-config.spec of Package nodejs-package-config

#
# spec file for package nodejs-package-config
#
# 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 https://bugs.opensuse.org/
#

Name:           nodejs-package-config
Version:        20220604
Release:        0
Summary:        Adding Nodejs bin to PATH
License:        MIT
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Languages/NodeJS
URL:            https://npmjs.com
Source0:        %{name}.sh
Source1:        %{name}.csh
BuildRequires:  fdupes
Requires:       nodejs(abi) >= 14
Requires:       npm(npm)
BuildArch:      noarch

%description
This one addes %{_prefix}/lib/node_modules/.bin to path so you can use Nodejs applications

%prep

%build

%install
install -m 0755 -d %{buildroot}%{_sysconfdir}/profile.d
install -m 0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/profile.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d

%files
%{_sysconfdir}/profile.d/%{name}.sh
%{_sysconfdir}/profile.d/%{name}.csh

%changelog
openSUSE Build Service is sponsored by