45 lines
1.2 KiB
RPMSpec
45 lines
1.2 KiB
RPMSpec
%{?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 <fuanan3@huawei.com> - 0.7.0-1
|
|
- package init
|