The package rpms/nodejs-spec-js.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-spec-js.git/commit/?id=fc3....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit fc36ab731ac7986d70c8192ad5c1602bad39d7fc
Author: Jared Smith <jsmith(a)fedoraproject.org>
Date: Thu May 24 10:15:36 2018 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4ded0d6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/spec-js-1.0.0.tgz
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..318d49e
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Kory Nunn
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
deleted file mode 100644
index 57e4a8f..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# nodejs-spec-js
-
-'Creates fast, prototypicaly inherited, super-calling constructors'
\ No newline at end of file
diff --git a/nodejs-spec-js.spec b/nodejs-spec-js.spec
new file mode 100644
index 0000000..5216c28
--- /dev/null
+++ b/nodejs-spec-js.spec
@@ -0,0 +1,64 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename spec-js
+%global enable_tests 1
+
+Name: nodejs-spec-js
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: Creates fast, prototypicaly inherited, super-calling constructors
+
+License: MIT
+URL:
https://github.com/KoryNunn/spec.git
+Source0:
https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+Source1:
https://raw.githubusercontent.com/KoryNunn/spec/master/test/test.js
+Source2:
https://raw.githubusercontent.com/KoryNunn/spec/master/LICENSE.txt
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(tape)
+%endif
+
+%description
+Creates fast, prototypicaly inherited, super-calling constructors
+
+
+%prep
+%autosetup -n package
+# setup the tests
+mkdir test
+cp -p %{SOURCE1} test/
+# the license
+cp -p %{SOURCE2} .
+
+%build
+# nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json *.js \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%__nodejs test/test.js
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE.txt
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Mon May 21 2018 Jared K. Smith <jsmith(a)fedoraproject.org> - 1.0.0-1
+- Initial packaging
diff --git a/sources b/sources
new file mode 100644
index 0000000..fec4209
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (spec-js-1.0.0.tgz) =
2cfe7b69ccd5c2b1b82420da6e6c37a559d294dbf5e516022faff6289d4de2ec35828db7ef57b0f934009fae07b6b4405bedd08b5bc7dc17e6635bc2401581c1
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..f2f5221
--- /dev/null
+++ b/test.js
@@ -0,0 +1,71 @@
+var test = require('tape'),
+ createSpec = require('../');
+
+
+//Base
+function Shape(){
+ this.sides = null;
+}
+Shape = createSpec(Shape);
+
+
+//Inherits from Shape
+function Square(){
+ this.sides = 4;
+}
+Square = createSpec(Square, Shape);
+
+
+//Inherits from Square
+function RoundedSquare(){
+ this.cornerRadius = 10;
+}
+RoundedSquare = createSpec(RoundedSquare, Square);
+
+
+
+test('inherit from parent', function (t) {
+ t.plan(4);
+
+ var shape = new Shape();
+
+ t.ok(shape instanceof Object);
+ t.ok(shape instanceof Shape);
+ t.ok('sides' in shape);
+ t.ok(shape.sides === null);
+ t.end();
+});
+
+test('inherit from inherited parent', function (t) {
+ t.plan(4);
+
+ var square = new Square();
+
+ t.ok(square instanceof Object);
+ t.ok(square instanceof Shape);
+ t.ok(square instanceof Square);
+ t.ok(square.sides === 4);
+ t.end();
+});
+
+test('inherit from object', function (t) {
+ t.plan(6);
+
+ var roundedSquare = new RoundedSquare();
+
+ t.ok(roundedSquare instanceof Object);
+ t.ok(roundedSquare instanceof Shape);
+ t.ok(roundedSquare instanceof Square);
+ t.ok(roundedSquare instanceof RoundedSquare);
+ t.ok(roundedSquare.sides === 4);
+ t.ok(roundedSquare.cornerRadius === 10);
+ t.end();
+});
+
+test('inherited constructor has correct super', function (t) {
+ t.plan(3);
+
+ t.ok(RoundedSquare.__super__ === Square);
+ t.ok(RoundedSquare.__super__.__super__ === Shape);
+ t.ok(Square.__super__ === Shape);
+});
\ No newline at end of file