diff --git a/nodejs-grunt-contrib-clean-0.7.0.tar.gz b/nodejs-grunt-contrib-clean-0.7.0.tar.gz new file mode 100644 index 0000000..3edeab5 Binary files /dev/null and b/nodejs-grunt-contrib-clean-0.7.0.tar.gz differ diff --git a/nodejs-grunt-contrib-clean.spec b/nodejs-grunt-contrib-clean.spec new file mode 100644 index 0000000..bb5f557 --- /dev/null +++ b/nodejs-grunt-contrib-clean.spec @@ -0,0 +1,44 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-grunt-contrib-clean +Version: 0.7.0 +Release: 1 +Summary: A Grunt plugin to clean files and folders +License: MIT +URL: https://github.com/gruntjs/grunt-contrib-clean +Source0: https://github.com/gruntjs/grunt-contrib-clean/archive/v%{version}/nodejs-grunt-contrib-clean-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(grunt-cli) npm(grunt-contrib-nodeunit) npm(rimraf) +%endif +%description +%{summary}. + +%prep +%autosetup -p 1 -n grunt-contrib-clean-%{version} + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-clean +cp -pr package.json tasks/ \ + %{buildroot}%{nodejs_sitelib}/grunt-contrib-clean +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +/usr/bin/grunt nodeunit +%endif + +%files +%doc AUTHORS CHANGELOG CONTRIBUTING.md README.md docs/ +%license LICENSE-MIT +%{nodejs_sitelib}/grunt-contrib-clean + +%changelog +* Thu Aug 20 2020 Anan Fu - 0.7.0-1 +- package init diff --git a/nodejs-grunt-contrib-clean.yaml b/nodejs-grunt-contrib-clean.yaml new file mode 100644 index 0000000..4e627e0 --- /dev/null +++ b/nodejs-grunt-contrib-clean.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: gruntjs/grunt-contrib-clean +tag_prefix: "^v" +seperator: "."