diff --git a/abbrev-1.0.7.tgz b/abbrev-1.0.7.tgz new file mode 100644 index 0000000..f9a0ef8 Binary files /dev/null and b/abbrev-1.0.7.tgz differ diff --git a/nodejs-abbrev.spec b/nodejs-abbrev.spec new file mode 100644 index 0000000..ba08ac6 --- /dev/null +++ b/nodejs-abbrev.spec @@ -0,0 +1,35 @@ +%{?nodejs_find_provides_and_requires} +Name: nodejs-abbrev +Version: 1.0.7 +Release: 1 +Summary: Abbreviation calculator for Node.js +License: MIT +URL: https://github.com/isaacs/abbrev-js +Source0: https://registry.npmjs.org/abbrev/-/abbrev-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +Calculate the set of unique abbreviations for a given set of strings. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/abbrev +cp -pr abbrev.js package.json %{buildroot}%{nodejs_sitelib}/abbrev +%nodejs_symlink_deps + +%check +node abbrev.js + +%files +%{nodejs_sitelib}/abbrev +%doc README.md +%license LICENSE + +%changelog +* Sat Aug 8 2020 wutao - 1.0.7-1 +- package init diff --git a/nodejs-abbrev.yaml b/nodejs-abbrev.yaml new file mode 100644 index 0000000..b42fa69 --- /dev/null +++ b/nodejs-abbrev.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: isaacs/abbrev-js +tag_prefix: "^v" +seperator: "."