nodejs-grunt-contrib-uglify/nodejs-grunt-contrib-uglify.spec
2020-08-25 14:30:30 +08:00

51 lines
1.5 KiB
RPMSpec

%{?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}/grunt-contrib-uglify-%{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
%setup -q -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 <fuanan3@huawei.com> - 0.11.1-1
- package init