!1 add package
From: @fly_fzc Reviewed-by: @solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
618e850171
50
nodejs-grunt-contrib-uglify.spec
Normal file
50
nodejs-grunt-contrib-uglify.spec
Normal 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
|
||||||
4
nodejs-grunt-contrib-uglify.yaml
Normal file
4
nodejs-grunt-contrib-uglify.yaml
Normal 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
BIN
v0.11.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user