The package rpms/nodejs-sort-keys.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-sort-keys.git/commit/?id=1c07....
Change: -ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change: ============
commit 1c07ae9e12b3a6c13e54132234ddf0eef817e23f Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Aug 8 16:10:55 2019 +0000
nodejs-sort-keys fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675531
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ea9fecb..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/sort-keys-1.1.2.tgz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..64b5f03 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +nodejs-sort-keys fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675531 diff --git a/nodejs-sort-keys.spec b/nodejs-sort-keys.spec deleted file mode 100644 index bd0c8ff..0000000 --- a/nodejs-sort-keys.spec +++ /dev/null @@ -1,78 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename sort-keys - -# tests missing due to missing npm(ava) -%global enable_tests 0 - -Name: nodejs-sort-keys -Version: 1.1.2 -Release: 6%{?dist} -Summary: Sort the keys of an object - -License: MIT -URL: https://github.com/sindresorhus/sort-keys -Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... -# The test files are not included in the npm tarball. -Source1: https://raw.githubusercontent.com/sindresorhus/sort-keys/v%%7Bversion%7D/tes... - -ExclusiveArch: %{nodejs_arches} noarch -BuildArch: noarch - -BuildRequires: nodejs-packaging -BuildRequires: npm(is-plain-obj) -%if 0%{?enable_tests} -BuildRequires: npm(ava) -%endif - -%description -Sort the keys of an object - - -%prep -%autosetup -n package -# setup the tests -cp -p %{SOURCE1} . - -%build -# nothing to do! - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/%{packagename} - -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -%{_bindir}/ava -%else -%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" -%endif - -%files -%doc readme.md -%license license -%{nodejs_sitelib}/%{packagename} - -%changelog -* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 1.1.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 1.1.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 1.1.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 1.1.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering releng@fedoraproject.org - 1.1.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Thu Apr 20 2017 Jared Smith jsmith@fedoraproject.org - 1.1.2-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index a6b86b1..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (sort-keys-1.1.2.tgz) = bf39fc692a8a832b558a4d22c1d0448becdebdb4d866881ec1350ce9db69986c0471dcdbb9bfd35f86c2cd185e6c30910b74335e026c2d1281d95fcea1fec75e diff --git a/test.js b/test.js deleted file mode 100644 index c5e41ea..0000000 --- a/test.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict'; -/* eslint-env mocha */ -var assert = require('assert'); -var sortKeys = require('./'); - -it('should sort the keys of an object', function () { - assert.strictEqual( - JSON.stringify(sortKeys({c: 0, a: 0, b: 0})), - JSON.stringify({a: 0, b: 0, c: 0}) - ); -}); - -it('DEPRECATED - should sort the keys of an object with a custom sort function', function () { - var sortFn = function (a, b) { - return -a.localeCompare(b); - }; - - assert.strictEqual( - JSON.stringify(sortKeys({c: 0, a: 0, b: 0}, sortFn)), - JSON.stringify({c: 0, b: 0, a: 0}) - ); -}); - -it('custom compare function', function () { - var compare = function (a, b) { - return -a.localeCompare(b); - }; - - assert.strictEqual( - JSON.stringify(sortKeys({c: 0, a: 0, b: 0}, {compare: compare})), - JSON.stringify({c: 0, b: 0, a: 0}) - ); -}); - -it('deep option', function () { - assert.strictEqual( - JSON.stringify(sortKeys({c: {c: 0, a: 0, b: 0}, a: 0, b: 0}, {deep: true})), - JSON.stringify({a: 0, b: 0, c: {a: 0, b: 0, c: 0}}) - ); - - assert.doesNotThrow(function () { - var obj = {a: 0}; - obj.circular = obj; - sortKeys(obj, {deep: true}); - }); - - var obj = {z: 0}; - obj.circular = obj; - var sortedObj = sortKeys(obj, {deep: true}); - assert.strictEqual(sortedObj, sortedObj.circular); - assert.strictEqual( - JSON.stringify(Object.keys(sortedObj)), - JSON.stringify(['circular', 'z']) - ); - - var obj1 = {b: 0}; - var obj2 = {d: 0}; - obj1.a = obj2; - obj2.c = obj1; - - assert.doesNotThrow(function () { - sortKeys(obj1, {deep: true}); - sortKeys(obj2, {deep: true}); - }); - - var sorted = sortKeys(obj1, {deep: true}); - - assert.strictEqual(sorted, sorted.a.c); - assert.strictEqual( - JSON.stringify(Object.keys(sorted)), - JSON.stringify(['a', 'b']) - ); - - assert.strictEqual( - JSON.stringify(sortKeys({c: {c: 0, a: 0, b: 0}, a: 0, b: 0, z: [9, 8, 7, 6, 5]}, {deep: true})), - JSON.stringify({a: 0, b: 0, c: {a: 0, b: 0, c: 0}, z: [9, 8, 7, 6, 5]}) - ); -});
arch-excludes@lists.fedoraproject.org