package init
This commit is contained in:
parent
f19b8af1c7
commit
dfa0c97aaf
BIN
maxmin-2.1.0.tar.gz
Normal file
BIN
maxmin-2.1.0.tar.gz
Normal file
Binary file not shown.
45
nodejs-maxmin.spec
Normal file
45
nodejs-maxmin.spec
Normal file
@ -0,0 +1,45 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 0
|
||||
Name: nodejs-maxmin
|
||||
Version: 2.1.0
|
||||
Release: 1
|
||||
Summary: Get pretty output of the original, minified gzipped size of a string/buffer
|
||||
License: MIT
|
||||
URL: https://github.com/sindresorhus/maxmin
|
||||
Source0: https://github.com/sindresorhus/maxmin/archive/v%{version}/maxmin-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging npm(chalk) npm(figures) npm(gzip-size) npm(pretty-bytes)
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(ava)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n maxmin-%{version}
|
||||
%nodejs_fixdep chalk ^1.1.1
|
||||
%nodejs_fixdep pretty-bytes
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/maxmin
|
||||
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/maxmin
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%__nodejs -e "require('./')"
|
||||
%if 0%{?enable_tests}
|
||||
${binddir}/ava
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc readme.md screenshot.png
|
||||
%license license
|
||||
%{nodejs_sitelib}/maxmin
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 2.1.0-1
|
||||
- Package init
|
||||
4
nodejs-maxmin.yaml
Normal file
4
nodejs-maxmin.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: sindresorhus/maxmin
|
||||
tag_pattern: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user