The package rpms/jowl.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/jowl.git/commit/?id=86074ed076c31....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 86074ed076c3186e6a04dd2ccb0a0cdfb2c7eef2
Author: Daniel Axelrod <git(a)danonline.net>
Date: Wed Sep 21 18:49:00 2022 -0400
Initial import (fedora#2127737)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a44acf2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/jowl-2.2.0-nm-dev.tgz
+/jowl-2.2.0-nm-prod.tgz
+/jowl-2.2.0.tar.gz
diff --git a/jowl-2.2.0-bundled-licenses.txt b/jowl-2.2.0-bundled-licenses.txt
new file mode 100644
index 0000000..fb9b424
--- /dev/null
+++ b/jowl-2.2.0-bundled-licenses.txt
@@ -0,0 +1 @@
+"MIT"
diff --git a/jowl.spec b/jowl.spec
new file mode 100644
index 0000000..353fa29
--- /dev/null
+++ b/jowl.spec
@@ -0,0 +1,93 @@
+Name: jowl
+Version: 2.2.0
+Release: 1%{?dist}
+Summary: CLI for JSON operations with Lodash
+
+License: MIT
+URL:
https://jowl.app
+Source0:
https://github.com/daxelrod/%{name}/archive/v%{version}/%{name}-%{version...
+# Also at
https://registry.npmjs.org/{name}/-/{name}-{version}.tgz
+# however,
npmjs.org has a build product which does not contain docs or tests
+
+# The following sources are generated by running
+# nodejs-packaging-bundler against Source0:
+Source1: %{name}-%{version}-nm-prod.tgz
+Source2: %{name}-%{version}-nm-dev.tgz
+Source3: %{name}-%{version}-bundled-licenses.txt
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+Requires: nodejs
+BuildRequires: nodejs-devel
+BuildRequires: yarnpkg
+BuildRequires: fdupes
+
+%description
+Jowl is a command-line filter for JSON expressions that uses plain JavaScript
+with Lodash. It takes JSON on standard in, and writes pretty-printed JSON to
+standard out.
+
+%prep
+%setup -q -n %{name}-%{version}
+cp %{SOURCE3} .
+# Setup bundled runtime(prod) node modules
+tar xfz %{SOURCE1}
+mkdir -p node_modules
+pushd node_modules
+ln -s ../node_modules_prod/* .
+popd
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}
+cp -pr package.json src/bin/jowl.js src/lib/ \
+ %{buildroot}%{nodejs_sitelib}/%{name}
+# Copy over bundled nodejs modules
+cp -pr node_modules node_modules_prod \
+ %{buildroot}%{nodejs_sitelib}/%{name}
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}/bin
+# Intentionally not a symlink. If it were a symlink, jowl would be unable to find
+# its node-modules
+install -p -D -m0755 src/bin/jowl.js %{buildroot}%{nodejs_sitelib}/%{name}/bin/jowl
+mkdir -p %{buildroot}%{_bindir}
+ln -sf %{nodejs_sitelib}/%{name}/bin/jowl %{buildroot}%{_bindir}/jowl
+
+# Fix the shebang because brp-mangle-shebangs fails to detect this properly
(rhbz#1998924)
+# This is fixed in fc36 and above
+sed -e "s|^#!/usr/bin/env node$|#!/usr/bin/node|" \
+ -i %{buildroot}%{nodejs_sitelib}/%{name}/bin/jowl \
+ -i %{buildroot}%{nodejs_sitelib}/%{name}/jowl.js
+
+%fdupes %{buildroot}%{nodejs_sitelib}/%{name}
+
+%check
+# Setup bundled dev node_modules for testing
+# Note: this cannot be in %%prep or the dev node_modules
+# can get pulled into the regular rpm
+tar xfz %{SOURCE2}
+# Ensure that this dir exists to be a target of the symlink
+mkdir -p node_modules_prod/.bin
+pushd node_modules
+ln -s -f ../node_modules_dev/* .
+popd
+mkdir -p node_modules/.bin
+pushd node_modules/.bin
+ln -s ../../node_modules_dev/.bin/* .
+popd
+# Run tests
+yarn run test
+
+
+%files
+%doc docs/reference.md
+%license LICENSE %{name}-%{version}-bundled-licenses.txt
+%{nodejs_sitelib}/%{name}/
+%{_bindir}/jowl
+
+
+%changelog
+* Wed Sep 21 2022 Daniel Axelrod <fedora(a)danonline.net> - 2.2.0-1
+- Package Jowl according to Fedora Packaging Guide
diff --git a/sources b/sources
new file mode 100644
index 0000000..f0b4c2b
--- /dev/null
+++ b/sources
@@ -0,0 +1,3 @@
+SHA512 (jowl-2.2.0-nm-dev.tgz) =
d92df45d6fda305468fa30a7e70c194e535037a1c7ac44eb0f841fade351426959c7912cd0080c3164a2c7f700df434aff6eb52db167745c86235774665c94d8
+SHA512 (jowl-2.2.0-nm-prod.tgz) =
631c243022dc7e3a361c6f838577977e1b09dd8457665c5c065ad2cd155f098f842921db94ff221034e59d9c03b814e06f4ef5943b9f908ba11d3aa99f0488dd
+SHA512 (jowl-2.2.0.tar.gz) =
cc8fcd81c75c145e76ac461ed1faf9fe435a207c991e0ffabbf0950ad755702abeb2c1aeb515e18970b0c9d196f2d85ad53a7cdfebd26548196f3996ab54263d