diff --git a/maxmin-2.1.0.tar.gz b/maxmin-2.1.0.tar.gz new file mode 100644 index 0000000..72fd1aa Binary files /dev/null and b/maxmin-2.1.0.tar.gz differ diff --git a/nodejs-maxmin.spec b/nodejs-maxmin.spec new file mode 100644 index 0000000..a14c9be --- /dev/null +++ b/nodejs-maxmin.spec @@ -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 - 2.1.0-1 +- Package init diff --git a/nodejs-maxmin.yaml b/nodejs-maxmin.yaml new file mode 100644 index 0000000..2dfd33e --- /dev/null +++ b/nodejs-maxmin.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sindresorhus/maxmin +tag_pattern: "^v" +seperator: "."