diff --git a/nodejs-grunt-contrib-uglify.spec b/nodejs-grunt-contrib-uglify.spec new file mode 100644 index 0000000..ef1d100 --- /dev/null +++ b/nodejs-grunt-contrib-uglify.spec @@ -0,0 +1,50 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +Name: nodejs-grunt-contrib-uglify +Version: 0.11.1 +Release: 1 +Summary: Minify files with UglifyJS +License: MIT +URL: https://github.com/gruntjs/grunt-contrib-uglify +Source0: https://github.com/gruntjs/grunt-contrib-uglify/archive/v%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(chalk) npm(lodash) npm(maxmin) npm(uglify-js) npm(uri-path) npm(grunt-cli) +BuildRequires: npm(grunt-contrib-clean) npm(grunt-contrib-internal) +BuildRequires: npm(grunt-contrib-nodeunit) +%endif +%description +%{summary}. + +%prep +%autosetup -n grunt-contrib-uglify-%{version} +%nodejs_fixdep lodash "^3.10.1" +%nodejs_fixdep maxmin "^2.1.0" +%nodejs_fixdep uglify-js ">=2.6.0" + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-uglify +cp -pr package.json tasks/ \ + %{buildroot}%{nodejs_sitelib}/grunt-contrib-uglify +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +/usr/bin/grunt uglify +/usr/bin/grunt nodeunit +%endif + +%files +%doc README.md CONTRIBUTING.md AUTHORS CHANGELOG docs/ +%license LICENSE-MIT +%{nodejs_sitelib}/grunt-contrib-uglify + +%changelog +* Thu Aug 20 2020 Anan Fu - 0.11.1-1 +- package init diff --git a/nodejs-grunt-contrib-uglify.yaml b/nodejs-grunt-contrib-uglify.yaml new file mode 100644 index 0000000..7ac9d86 --- /dev/null +++ b/nodejs-grunt-contrib-uglify.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: gruntjs/grunt-contrib-uglify +tag_prefix: "^v" +seperator: "." diff --git a/v0.11.1.tar.gz b/v0.11.1.tar.gz new file mode 100644 index 0000000..df39956 Binary files /dev/null and b/v0.11.1.tar.gz differ