fuanan add package
This commit is contained in:
parent
3e8bbc6024
commit
98a995b8a9
@ -6,12 +6,11 @@ Release: 1
|
|||||||
Summary: Run Nodeunit unit tests with grunt
|
Summary: Run Nodeunit unit tests with grunt
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/gruntjs/grunt-contrib-nodeunit
|
URL: https://github.com/gruntjs/grunt-contrib-nodeunit
|
||||||
Source0: https://github.com/gruntjs/grunt-contrib-nodeunit/archive/v%{version}/grunt-contrib-nodeunit-%{version}.tar.gz
|
Source0: https://github.com/gruntjs/grunt-contrib-nodeunit/archive/v%{version}.tar.gz
|
||||||
Patch0: nodejs-grunt-contrib-nodeunit-junit.patch
|
Patch0: nodejs-grunt-contrib-nodeunit-junit.patch
|
||||||
Patch1: nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
|
Patch1: nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
||||||
BuildRequires: nodejs-packaging
|
BuildRequires: nodejs-packaging
|
||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
BuildRequires: npm(grunt-cli) npm(grunt-contrib-clean) npm(grunt-contrib-internal)
|
BuildRequires: npm(grunt-cli) npm(grunt-contrib-clean) npm(grunt-contrib-internal)
|
||||||
@ -21,9 +20,7 @@ BuildRequires: npm(nodeunit) npm(tap)
|
|||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n grunt-contrib-nodeunit-%{version}
|
%autosetup -n grunt-contrib-nodeunit-%{version} -S git
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -36,7 +33,7 @@ cp -pr package.json tasks/ \
|
|||||||
%check
|
%check
|
||||||
%nodejs_symlink_deps --check
|
%nodejs_symlink_deps --check
|
||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
%{_bindir}/grunt nodeunit
|
%{_bindir}/grunt nodeunit --force
|
||||||
%else
|
%else
|
||||||
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user