!1 add package

From: @fly_fzc
Reviewed-by: @solarhu
Signed-off-by: @solarhu
This commit is contained in:
openeuler-ci-bot 2020-09-11 22:12:41 +08:00 committed by Gitee
commit 618e850171
3 changed files with 54 additions and 0 deletions

View File

@ -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 <fuanan3@huawei.com> - 0.11.1-1
- package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: gruntjs/grunt-contrib-uglify
tag_prefix: "^v"
seperator: "."

BIN
v0.11.1.tar.gz Normal file

Binary file not shown.