The package rpms/nodejs-base-option.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-base-option.git/commit/?id=ea....
Change: -ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change: ============
commit ea27eea73610249360bd3a0d3293490daf5dcb7a Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Aug 8 16:02:09 2019 +0000
nodejs-base-option fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675462
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e598c47..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/base-option-0.8.4.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 207d987..0000000 --- a/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# obuf - Offset buffer implementation. - -Byte buffer specialized for data in chunks with special cases for dropping -bytes in the front, merging bytes in to various integer types and -abandoning buffer without penalty for previous chunk merges. - -Used in spyd-transport, part of spdy support for http2. - -This software is licensed under the MIT License. - -By Fedor Indutny, 2015. - diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..92e1f5f --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +nodejs-base-option fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675462 diff --git a/nodejs-base-option.spec b/nodejs-base-option.spec deleted file mode 100644 index 729fc19..0000000 --- a/nodejs-base-option.spec +++ /dev/null @@ -1,92 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename base-option -%global enable_tests 1 - -Name: nodejs-base-option -Version: 0.8.4 -Release: 7%{?dist} -Summary: Adds a few options methods to base, like option, enable and disable - -License: MIT -URL: https://github.com/node-base/base-option -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/node-base/%%7Bpackagename%7D/master/test.j... -Source2: https://raw.githubusercontent.com/node-base/%%7Bpackagename%7D/master/README... - - -ExclusiveArch: %{nodejs_arches} noarch -BuildArch: noarch - -BuildRequires: nodejs-packaging -%if 0%{?enable_tests} -BuildRequires: mocha -BuildRequires: npm(base) -BuildRequires: npm(base-plugins) -BuildRequires: npm(is-valid-app) -BuildRequires: npm(option-cache) -%endif - -%description -Adds a few options methods to base, like option, enable and disable. See -the readme for the full API. - - -%prep -%autosetup -n package -# setup the tests and readme -cp -p %{SOURCE1} . -cp -p %{SOURCE2} . - -%nodejs_fixdep isobject -%nodejs_fixdep is-valid-app -%nodejs_fixdep set-value -%nodejs_fixdep define-property -%nodejs_fixdep option-cache - -%build -# nothing to do! - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} -cp -pr package.json index.js utils.js \ - %{buildroot}%{nodejs_sitelib}/%{packagename} - -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -%{_bindir}/mocha -R spec -%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 - 0.8.4-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.8.4-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.8.4-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 0.8.4-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Fri Aug 18 2017 Jared Smith jsmith@fedoraproject.org - 0.8.4-3 -- Relax dependency on npm(define-property) - -* Wed May 10 2017 Jared Smith jsmith@fedoraproject.org - 0.8.4-2 -- Relax version of npm(isobject) - -* Sat Apr 15 2017 Jared Smith jsmith@fedoraproject.org - 0.8.4-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index 7cd2092..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (base-option-0.8.4.tgz) = 092f55f2dae1c0471c1458e6bde0475b1e16af8af06a8873321c19c750d25077461d5f4d99ede36f1250d14f09b2b2c526f1ad89abf7e4d8872de35df27ef85c diff --git a/test.js b/test.js deleted file mode 100644 index ff91a93..0000000 --- a/test.js +++ /dev/null @@ -1,206 +0,0 @@ -'use strict'; - -require('mocha'); -var Base = require('base'); -var assert = require('assert'); -var plugins = require('base-plugins'); -var options = require('./'); -var app; - -Base.use(function() { - this.isApp = true; -}); - -describe('option', function() { - beforeEach(function() { - app = new Base(); - app.use(options()); - }); - - describe('method', function() { - it('should add the option method to the `app` instance:', function() { - assert.equal(typeof app.option, 'function'); - }); - - it('should not add the option method to the `Base` prototype:', function() { - assert.notEqual(typeof Base.prototype.option, 'function'); - }); - }); - - describe('plugin', function() { - it('should add options passed to the plugin', function() { - app = new Base(); - app.use(options({z: 'y'})); - assert.equal(app.options.z, 'y'); - }); - - it('should pass the plugin to "run" when the `plugins` plugin is used', function() { - app = new Base(); - app.use(plugins()); - app.use(options()); - assert.equal(app.fns.length, 1); - }); - - it('should pass the plugin to "run" when {run:false} is defined', function() { - app.use(plugins()); - app.use(options({run: false})); - assert.equal(app.fns.length, 0); - }); - - it('should not overwrite existing options', function() { - app.options.foo = 'bar'; - app.use(options()); - app.option('a', 'b'); - assert.equal(app.options.foo, 'bar'); - assert.equal(app.options.a, 'b'); - }); - - it('should set options as key-value pairs', function() { - app.option('a', 'b'); - assert.equal(app.options.a, 'b'); - }); - - it('should set an object', function() { - app.option({c: 'd'}); - var c = app.option('c'); - assert.equal(c, 'd'); - }); - - it('should set multiple values', function() { - app.option({a: 'b'}); - app.option({c: 'd'}); - assert.equal(app.options.a, 'b'); - assert.equal(app.options.c, 'd'); - }); - - it('should set multiple values using key-value', function() { - app.option('a', 'b'); - app.option('c', 'd'); - assert.equal(app.options.a, 'b'); - assert.equal(app.options.c, 'd'); - }); - - it('should set multiple nested values using dot-notation', function() { - app.option('a.b', 'c'); - app.option('a.c', 'd'); - assert.equal(app.options.a.b, 'c'); - assert.equal(app.options.a.c, 'd'); - }); - - it('should get options', function() { - app.option('a', 'b'); - var a = app.option('a'); - assert.equal(a, 'b'); - }); - - it('should return true if an option exists', function() { - app.option('a', 'b'); - assert(app.hasOption('a')); - }); - - it('should enable an option', function() { - assert(!app.options.a); - app.enable('a'); - assert(app.options.a); - }); - - it('should disable an option', function() { - app.enable('a'); - assert(app.options.a); - app.disable('a'); - assert(!app.options.a); - }); - - it('should set nested options', function() { - app.option('a.b.c', 'd'); - assert.deepEqual(app.options.a, {b: {c: 'd'}}); - }); - - it('should get nested options', function() { - app.option('a.b.c', 'd'); - assert.deepEqual(app.option('a'), {b: {c: 'd'}}); - assert.deepEqual(app.option('a.b'), {c: 'd'}); - assert.deepEqual(app.option('a.b.c'), 'd'); - }); - }); - - describe('option.set', function() { - beforeEach(function() { - app = new Base(); - app.use(options()); - }); - - it('should set a key-value pair on app.options', function() { - app.option.set('a', 'b'); - app.option.set('c', 'd'); - assert.equal(app.options.a, 'b'); - assert.equal(app.options.c, 'd'); - }); - }); - - describe('option.get', function() { - beforeEach(function() { - app = new Base(); - app.use(options()); - }); - - it('should get a key-value pair from app.options', function() { - app.option.set('a', 'b'); - app.option.set('c', 'd'); - assert.equal(app.option.get('a'), 'b'); - assert.equal(app.option.get('c'), 'd'); - }); - }); - - describe('option.create', function() { - beforeEach(function() { - app = new Base(); - app.use(options()); - }); - - it('should clone options', function() { - app.option({a: 'b', c: 'd'}); - var opts = app.option.create(); - app.option({e: 'f'}); - assert.equal(opts.a, 'b'); - assert.equal(opts.c, 'd'); - assert.equal(typeof opts.e, 'undefined'); - }); - - it('should expose a set method', function() { - app.option({a: 'b', c: 'd'}); - var opts = app.option.create(); - - opts.set('e', 'f'); - opts.set('g', 'h'); - assert.equal(opts.a, 'b'); - assert.equal(opts.c, 'd'); - assert.equal(opts.e, 'f'); - assert.equal(opts.g, 'h'); - }); - - it('should expose a get method', function() { - app.option({a: 'b', c: 'd'}); - var opts = app.option.create(); - - opts.set('e', 'f'); - opts.set('g', 'h'); - - assert.equal(opts.get('a'), 'b'); - assert.equal(opts.get('c'), 'd'); - assert.equal(opts.get('e'), 'f'); - assert.equal(opts.get('g'), 'h'); - }); - - it('should expose a merge method', function() { - app.option({a: 'b', c: 'd'}); - var opts = app.option.create(); - - opts.merge({e: 'f'}, {g: 'h'}); - assert.equal(opts.a, 'b'); - assert.equal(opts.c, 'd'); - assert.equal(opts.e, 'f'); - assert.equal(opts.g, 'h'); - }); - }); -});