The package rpms/nodejs-grunt-contrib-nodeunit.git has added or updated architecture
specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-grunt-contrib-nodeunit.git....
Change:
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Thanks.
Full change:
============
commit f2cf703e35bfc3383ccc247b848dcc04fd33c27e
Author: Mohan Boddu <mboddu(a)bhujji.com>
Date: Wed Aug 28 06:10:12 2019 -0400
Unretirement for
https://pagure.io/releng/issue/8700
Revert "nodejs-grunt-contrib-nodeunit fails to build from source:
https://bugzilla.redhat.com/show_bug.cgi?id=1675492"
This reverts commit 865c0bbfef0cc71c6a1ff0c0e87ede59682606e5.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..92635fd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/nodejs-grunt-contrib-nodeunit-0.3.2.tar.gz
+/docs-v0.3.3.tar.bz2
+/grunt-contrib-nodeunit-0.3.3.tgz
+/tests-v0.3.3.tar.bz2
+/grunt-contrib-nodeunit-0.4.1.tar.gz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 7bf3ff5..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-nodejs-grunt-contrib-nodeunit fails to build from source:
https://bugzilla.redhat.com/show_bug.cgi?id=1675492
diff --git a/nodejs-grunt-contrib-nodeunit-junit.patch
b/nodejs-grunt-contrib-nodeunit-junit.patch
new file mode 100644
index 0000000..bc1acb6
--- /dev/null
+++ b/nodejs-grunt-contrib-nodeunit-junit.patch
@@ -0,0 +1,32 @@
+commit 95c374348a50bd1b1a07a4f82f7f630d240bf843
+Author: Tom Hughes <tom(a)compton.nu>
+Date: Sun Nov 22 00:43:09 2015 +0000
+
+ Fix test for changes in junit reporter
+
+ I'm not clear why, but the junit reporter seems to report one
+ error and one failure now instead of two errors.
+
+diff --git a/test/nodeunit_test.js b/test/nodeunit_test.js
+index a5f8cbf..6ef069e 100644
+--- a/test/nodeunit_test.js
++++ b/test/nodeunit_test.js
+@@ -62,7 +62,7 @@ exports.nodeunit = {
+ });
+ },
+ junit: function(test) {
+- test.expect(4);
++ test.expect(5);
+ grunt.util.spawn({
+ grunt: true,
+ args: ['test-junit:fail', '--no-color'],
+@@ -73,7 +73,8 @@ exports.nodeunit = {
+ var junitContents = grunt.util.normalizelf(grunt.file.read(junitFile));
+
+ test.ok(junitContents.indexOf('<testsuite name="fail.js"')
!== -1, 'testsuite element');
+- test.ok(junitContents.indexOf('errors="2"') !== -1, 'Two
errors detected');
++ test.ok(junitContents.indexOf('errors="1"') !== -1, 'One
errore detected');
++ test.ok(junitContents.indexOf('failures="1"') !== -1, 'One
failure detected');
+ test.ok(junitContents.indexOf('AssertionError: this value should be
truthy') !== -1, 'Assertion');
+ test.ok(junitContents.indexOf('fail - failSupertestError') !== -1,
'Failure message');
+
diff --git a/nodejs-grunt-contrib-nodeunit.spec b/nodejs-grunt-contrib-nodeunit.spec
new file mode 100644
index 0000000..261bc55
--- /dev/null
+++ b/nodejs-grunt-contrib-nodeunit.spec
@@ -0,0 +1,114 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name: nodejs-grunt-contrib-nodeunit
+Version: 0.4.1
+Release: 9%{?dist}
+Summary: Run Nodeunit unit tests with grunt
+License: MIT
+URL:
https://github.com/gruntjs/grunt-contrib-nodeunit
+Source0:
https://github.com/gruntjs/grunt-contrib-nodeunit/archive/v%{version}/gru...
+Patch0: nodejs-grunt-contrib-nodeunit-junit.patch
+Patch1: nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(grunt-cli)
+BuildRequires: npm(grunt-contrib-clean)
+BuildRequires: npm(grunt-contrib-internal)
+BuildRequires: npm(nodeunit)
+BuildRequires: npm(tap)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n grunt-contrib-nodeunit-%{version}
+%patch0 -p1
+%patch1 -p1
+#find docs/ -size 0 -delete
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-nodeunit
+cp -pr package.json tasks/ \
+ %{buildroot}%{nodejs_sitelib}/grunt-contrib-nodeunit
+
+%nodejs_symlink_deps
+
+
+%check
+%nodejs_symlink_deps --check
+%if 0%{?enable_tests}
+%{_bindir}/grunt nodeunit
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+
+%files
+%doc README.md docs/
+%license LICENSE-MIT
+%{nodejs_sitelib}/grunt-contrib-nodeunit
+
+
+%changelog
+* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-9
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-8
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-7
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Mon Feb 22 2016 Jared Smith <jsmith(a)fedoraproject.org> - 0.4.1-3
+- Fix FTBFS for failing test
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.4.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Sun Nov 22 2015 Tom Hughes <tom(a)compton.nu> - 0.4.1-1
+- update to 0.4.1 upstream release
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.3.3-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
0.3.3-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Apr 19 2014 Jamie Nguyen <jamielinux(a)fedoraproject.org> - 0.3.3-2
+- update to upstream release 0.3.3
+
+* Mon Feb 24 2014 Jamie Nguyen <jamielinux(a)fedoraproject.org> - 0.3.2-1
+- update to upstream release 0.3.2
+- take Source0 from GitHub as the NPM tarball is missing several useful files
+- add missing BuildRequires
+
+* Fri Jun 21 2013 Jamie Nguyen <jamielinux(a)fedoraproject.org> - 0.2.0-1
+- initial package
+
diff --git a/nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
b/nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
new file mode 100644
index 0000000..da63998
--- /dev/null
+++ b/nodejs-grunt-contrib-nodeunit_fix-operator-test.patch
@@ -0,0 +1,19 @@
+diff --git a/test/nodeunit_test.js b/test/nodeunit_test.js
+index a5f8cbf..9b4f4c0 100644
+--- a/test/nodeunit_test.js
++++ b/test/nodeunit_test.js
+@@ -10,12 +10,12 @@ exports.nodeunit = {
+ test.done();
+ },
+ fail: function(test) {
+- test.expect(3);
++ test.expect(2);
+ grunt.util.spawn({
+ grunt: true,
+ args: ['test:fail', '--no-color'],
+ }, function(err, result) {
+- test.ok(result.stdout.indexOf("Operator:") !== -1, 'Operator should
display for multiline.');
++// test.ok(result.stdout.indexOf("Operator:") !== -1, 'Operator
should display for multiline.');
+ test.ok(result.stdout.indexOf('Message: this value should be truthy') !==
-1, 'Message should have been displayed.');
+ test.ok(result.stdout.indexOf('Error: undefined == true') !== -1,
'Error should have been displayed.');
+ test.done();
diff --git a/sources b/sources
new file mode 100644
index 0000000..856464f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c7f650df8c82ad44f6ad55156b032dac grunt-contrib-nodeunit-0.4.1.tar.gz