The package rpms/nodejs-require-main-filename.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-require-main-filename.git/....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 01ee8207f5209cf329c5bed05c6db59a0ddb4189
Author: Jared Smith <jsmith(a)fedoraproject.org>
Date: Wed May 2 14:55:52 2018 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5971db9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/require-main-filename-1.0.1.tgz
diff --git a/README.md b/README.md
deleted file mode 100644
index 803d121..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# nodejs-require-main-filename
-
-'Shim for require.main.filename() that works in as many environments as
possible'
\ No newline at end of file
diff --git a/nodejs-require-main-filename.spec b/nodejs-require-main-filename.spec
new file mode 100644
index 0000000..67c6830
--- /dev/null
+++ b/nodejs-require-main-filename.spec
@@ -0,0 +1,63 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename require-main-filename
+
+# tests disabled, as they require a newer version of npm(tap), and this package
+# is a dependency of a newer npm(tap)
+%global enable_tests 0
+
+Name: nodejs-require-main-filename
+Version: 1.0.1
+Release: 1%{?dist}
+Summary: Shim for require.main.filename() that works in as many environments as possible
+
+License: ISC
+URL:
https://github.com/yargs/require-main-filename.git
+Source0:
https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: npm(chai)
+BuildRequires: npm(tap)
+%endif
+
+%description
+Shim for require.main.filename() that works in as many environments as possible
+
+
+%prep
+%autosetup -n package
+
+
+%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}
+NODE_ENV=test %{_bindir}/tap test.js
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE.txt
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Thu Apr 26 2018 Jared K. Smith <jsmith(a)fedoraproject.org> - 1.0.1-1
+- Initial packaging
diff --git a/sources b/sources
new file mode 100644
index 0000000..fddfcd5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (require-main-filename-1.0.1.tgz) =
22a494b4e54fe24b1dd42fde8f9cde121fc120fd9a8eaa67f1ce71faaf7d82f7081bf41fd1cb9de6b6959c4fc3c1dd2e6bd4d7603a03734444e61052773db652