nodejs-next-tick/nodejs-next-tick.spec

52 lines
1.2 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 16:17:49 +08:00
%{?nodejs_find_provides_and_requires}
%global packagename next-tick
%global enable_tests 0
Name: nodejs-next-tick
2022-06-30 17:34:48 +08:00
Version: 1.1.0
2020-08-20 16:17:49 +08:00
Release: 1
Summary: Environment agnostic nextTick polyfill
License: MIT
URL: https://github.com/medikoo/next-tick.git
2022-06-30 17:34:48 +08:00
Source0: https://github.com/medikoo/next-tick/archive/refs/tags/v%{version}.tar.gz
2020-08-20 16:17:49 +08:00
BuildArch: noarch
2020-08-21 17:22:40 +08:00
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
2020-08-20 16:17:49 +08:00
%if 0%{?enable_tests}
2020-08-21 17:22:40 +08:00
BuildRequires: npm(tad)
2020-08-20 16:17:49 +08:00
%endif
%description
Environment agnostic nextTick polyfill
%prep
2022-06-30 17:34:48 +08:00
%autosetup -n next-tick-%{version}
2020-08-20 16:17:49 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr package.json *.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
%else
echo "Tests disabled..."
%endif
%files
%{!?_licensedir:%global license %doc}
%doc *.md
2022-06-30 17:34:48 +08:00
%license LICENSE
2020-08-20 16:17:49 +08:00
%{nodejs_sitelib}/%{packagename}
%changelog
2022-06-30 17:34:48 +08:00
* Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 1.1.0-1
- Upgrade to 1.1.0
2020-08-20 16:17:49 +08:00
* Thu Aug 20 2020 wangchong <wangchong56@huawei.com> - 0.2.2-1
- package init