2020-08-31 20:18:46 +08:00
|
|
|
%global enable_tests 0
|
|
|
|
|
%global srcname path-exists
|
|
|
|
|
Epoch: 1
|
|
|
|
|
Name: nodejs-%{srcname}
|
2023-11-01 15:03:29 +08:00
|
|
|
Version: 4.0.0
|
2020-08-31 20:18:46 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Promisify a callback-style function
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/sindresorhus/path-exists
|
2020-09-08 16:16:37 +08:00
|
|
|
Source0: https://github.com/sindresorhus/path-exists/archive/v%{version}.tar.gz
|
2020-08-31 20:18:46 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
BuildRequires: npm(ava)
|
|
|
|
|
%endif
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-09-08 16:16:37 +08:00
|
|
|
%autosetup -n path-exists-%{version}
|
2020-08-31 20:18:46 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
|
|
cp -pr index.js package.json \
|
|
|
|
|
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
|
|
%nodejs_symlink_deps
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%nodejs_symlink_deps --check
|
|
|
|
|
%{__nodejs} -e 'require("./")'
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
ava
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc readme.md
|
|
|
|
|
%license license
|
|
|
|
|
%{nodejs_sitelib}/%{srcname}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-11-01 15:03:29 +08:00
|
|
|
* Tue Oct 31 2023 Ge Wang <wang__ge@126.com> - 1:4.0.0-1
|
|
|
|
|
- Update to version 4.0.0
|
|
|
|
|
|
2020-08-31 20:18:46 +08:00
|
|
|
* Mon Aug 31 2020 wutao <wutao61@huawei.com> - 3.0.0-1
|
|
|
|
|
- Package init
|