2020-08-20 19:21:31 +08:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
|
Name: nodejs-osenv
|
2023-11-02 09:36:12 +08:00
|
|
|
Version: 0.1.5
|
|
|
|
|
Release: 1
|
2020-08-20 19:21:31 +08:00
|
|
|
Summary: Look up environment settings specific to different operating systems
|
2022-05-09 19:54:42 +08:00
|
|
|
License: ISC
|
2020-08-20 19:21:31 +08:00
|
|
|
URL: https://github.com/isaacs/osenv
|
2023-11-02 09:36:12 +08:00
|
|
|
Source0: https://github.com/npm/osenv/archive/refs/tags/v%{version}.tar.gz
|
2020-08-20 19:21:31 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
|
BuildRequires: npm(tap) npm(os-homedir) npm(os-tmpdir)
|
|
|
|
|
%description
|
|
|
|
|
Look up environment settings specific to different operating systems.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-11-02 09:36:12 +08:00
|
|
|
%setup -q -n osenv-%{version}
|
2020-08-20 19:21:31 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/osenv
|
|
|
|
|
cp -pr package.json osenv.js %{buildroot}%{nodejs_sitelib}/osenv
|
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%nodejs_symlink_deps --check
|
|
|
|
|
%tap test/*.js
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{nodejs_sitelib}/osenv
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-11-02 09:36:12 +08:00
|
|
|
* Wed Nov 01 2023 Ge Wang <wang__ge@126.com> - 0.1.5-1
|
|
|
|
|
- Update to version 0.1.5
|
|
|
|
|
|
2022-05-09 19:54:42 +08:00
|
|
|
* Mon May 9 2022 liyanan <liyanan32@h-partners.com> - 0.1.3-2
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2020-08-20 19:21:31 +08:00
|
|
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 0.1.3-1
|
|
|
|
|
- Package init
|