diff --git a/hash_file-0.1.1.tgz b/hash_file-0.1.1.tgz new file mode 100644 index 0000000..7e2619b Binary files /dev/null and b/hash_file-0.1.1.tgz differ diff --git a/nodejs-hash_file.spec b/nodejs-hash_file.spec new file mode 100644 index 0000000..4c3adab --- /dev/null +++ b/nodejs-hash_file.spec @@ -0,0 +1,42 @@ +%global enable_tests 1 +%global srcname hash_file +Name: nodejs-%{srcname} +Version: 0.1.1 +Release: 1 +Summary: A simple utility for getting a hash of a file +License: MIT +URL: https://github.com/timoxley/hash_file +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(mocha) +%endif +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules/ + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{srcname} +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +mocha -t 60000 ./test/test.js +%endif + +%files +%doc README.md +%{nodejs_sitelib}/%{srcname} + +%changelog +* Thu Aug 20 2020 wangxiao - 0.1.1-1 +- Package init diff --git a/nodejs-hash_file.yaml b/nodejs-hash_file.yaml new file mode 100644 index 0000000..9246beb --- /dev/null +++ b/nodejs-hash_file.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/timoxley/hash_file +version_control: github +src_repo: timoxley/hash_file +tag_prefix: "" +seperator: "."