diff --git a/grunt-legacy-util-1.0.0.tgz b/grunt-legacy-util-1.0.0.tgz new file mode 100644 index 0000000..0a08460 Binary files /dev/null and b/grunt-legacy-util-1.0.0.tgz differ diff --git a/nodejs-grunt-legacy-util.spec b/nodejs-grunt-legacy-util.spec new file mode 100644 index 0000000..fd77d19 --- /dev/null +++ b/nodejs-grunt-legacy-util.spec @@ -0,0 +1,51 @@ +%global enable_tests 1 +Name: nodejs-grunt-legacy-util +Version: 1.0.0 +Release: 1 +Summary: Deprecated Grunt utils provided for backwards compatibility +License: MIT +URL: https://github.com/gruntjs/grunt-legacy-util +Source0: https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(grunt-contrib-nodeunit) npm(temporary) npm(grunt-cli) +BuildRequires: npm(underscore.string) npm(lodash) npm(getobject) npm(exit) npm(which) +BuildRequires: npm(async) npm(hooker) +%endif +%description +%{summary}. + +%prep +%setup -q -n package +%nodejs_fixdep async '^1.5.0' +%nodejs_fixdep lodash '^3.10.1' +%nodejs_fixdep underscore.string '~2.3.1' +%nodejs_fixdep which + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-legacy-util +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/grunt-legacy-util +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +/usr/bin/grunt nodeunit -v +%else +%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" +%endif + +%files +%doc README.md CHANGELOG +%license LICENSE-MIT +%{nodejs_sitelib}/grunt-legacy-util + +%changelog +* Thu Aug 20 2020 Anan Fu - 1.0.0-1 +- package init diff --git a/nodejs-grunt-legacy-util.yaml b/nodejs-grunt-legacy-util.yaml new file mode 100644 index 0000000..f82b7c6 --- /dev/null +++ b/nodejs-grunt-legacy-util.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: gruntjs/grunt-legacy-util +tag_prefix: "^v" +seperator: "."