The package rpms/nodejs-is-obj.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-is-obj.git/commit/?id=b594e56....
Change: +ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change: ============
commit b594e560efeee02e15d5ebac994c491386ec60fa Author: Jared K. Smith jaredsmith@jaredsmith.net Date: Tue Jun 6 15:30:33 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore index e69de29..a3b3eaf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/is-obj-1.0.1.tgz diff --git a/nodejs-is-obj.spec b/nodejs-is-obj.spec new file mode 100644 index 0000000..9cee3ec --- /dev/null +++ b/nodejs-is-obj.spec @@ -0,0 +1,61 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename is-obj + +# tests missing due to missing npm(ava) +%global enable_tests 0 + +Name: nodejs-is-obj +Version: 1.0.1 +Release: 1%{?dist} +Summary: Check if a value is an object + +License: MIT +URL: https://github.com/sindresorhus/is-obj +Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... +Source1: https://raw.githubusercontent.com/sindresorhus/%%7Bpackagename%7D/v%%7Bversi... + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(ava) +%endif + +%description +Check if a value is 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 +* Sun May 7 2017 Jared Smith jsmith@fedoraproject.org - 1.0.1-1 +- Initial packaging diff --git a/sources b/sources index e69de29..39f6531 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (is-obj-1.0.1.tgz) = 9784721e046a18de18dfef491d5acda8efad374ad5e4ccbbeae5b9fe7b8ee0ad5beafc391bc77f7261633fdb517c4b1d85936dd0815d66e2bf73656be0d6fe42 diff --git a/test.js b/test.js new file mode 100644 index 0000000..d441dee --- /dev/null +++ b/test.js @@ -0,0 +1,25 @@ +import test from 'ava'; +import m from './'; + +test(t => { + t.true(m({})); + t.true(m(new Object())); // eslint-disable-line + t.true(m(new Date())); + t.true(m(new RegExp())); + t.true(m(Object.create(null))); + t.true(m({foo: true})); + t.true(m([])); + t.true(m(['foo', 'bar'])); + t.true(m(() => {})); + t.true(m(arguments)); + t.true(m(/./)); + t.true(m(Object(0))); + t.true(m(Object('foo'))); + t.true(m(Object(false))); + t.false(m(null)); + t.false(m(undefined)); + t.false(m(NaN)); + t.false(m('')); + t.false(m(0)); + t.false(m(false)); +});
arch-excludes@lists.fedoraproject.org