The package rpms/nodejs-babel-runtime.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-babel-runtime.git/commit/?id=....
Change: +ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Thanks.
Full change: ============
commit 6fbe3596e402dd330b6737a149094752247e7273 Author: Jared K. Smith jaredsmith@jaredsmith.net Date: Wed May 31 10:38:01 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore index e69de29..806c567 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/babel-runtime-6.23.0.tgz +/babel-runtime-scripts-6.23.0.tar.bz2 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d6b2e00 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-2017 Sebastian McKenzie sebmck@gmail.com + +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/dl-babel-files.sh b/dl-babel-files.sh new file mode 100644 index 0000000..548d4ae --- /dev/null +++ b/dl-babel-files.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +tag=$(sed -n 's/^Version:\s(.*)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') +url=https://github.com/babel/babel/ +subpackage=$(sed -n 's/^.global packagename\s(.*)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') + +echo "*** Working on [$subpackage] version [$tag] *** " + +set -e + +tmp=$(mktemp -d) + +trap cleanup EXIT +cleanup() { + echo Cleaning up... + set +e + [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" +} + +unset CDPATH +pwd=$(pwd) + +pushd "$tmp" +git clone $url +cd babel +subdir=packages/${subpackage} +if [ -d "${subdir}/test" ]; then + git archive --prefix='test/' --format=tar refs/tags/v${tag}:${subdir}/test/ \ + | bzip2 > "$pwd"/${subpackage}-tests-${tag}.tar.bz2 +elif [ -d "${subdir}/tests" ]; then + git archive --prefix='tests/' --format=tar refs/tags/v${tag}:${subdir}/tests/ \ + | bzip2 > "$pwd"/${subpackage}-tests-${tag}.tar.bz2 +else + echo "No test directory found for tag ${gittag}" +fi +if [ -d "${subdir}/src" ]; then + git archive --prefix='src/' --format=tar refs/tags/v${tag}:${subdir}/src/ \ + | bzip2 > "$pwd"/${subpackage}-src-${tag}.tar.bz2 +fi +if [ -d "${subdir}/scripts" ]; then + git archive --prefix='scripts/' --format=tar refs/tags/v${tag}:${subdir}/scripts/ \ + | bzip2 > "$pwd"/${subpackage}-scripts-${tag}.tar.bz2 +fi +popd diff --git a/nodejs-babel-runtime.spec b/nodejs-babel-runtime.spec new file mode 100644 index 0000000..9074b94 --- /dev/null +++ b/nodejs-babel-runtime.spec @@ -0,0 +1,85 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename babel-runtime +%global enable_tests 1 + +Name: nodejs-babel-runtime +Version: 6.23.0 +Release: 1%{?dist} +Summary: The babel selfContained runtime + +License: MIT +URL: https://github.com/babel/babel/tree/master/packages/babel-runtime +Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... +# The test files are not included in the npm tarball. +# Source1 is generated by running Source10, which pulls from the upstream +# version control repository. +Source1: %{packagename}-scripts-%{version}.tar.bz2 +Source10: dl-babel-files.sh +# license file +Source11: https://raw.githubusercontent.com/babel/babel/v%%7Bversion%7D/LICENSE + + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(core-js) +%endif + +%description +The babel selfContained runtime + + +%prep +%setup -q -n package +# setup the tests +%setup -q -T -D -a 1 -n package +# copy the license file +cp -p %{SOURCE11} . + +# I know you'll be temped to remove the "core-js" directory, thinking that it's +# a bundled copy of the npm(core-js) package. It's not. Instead, it's a bunch +# of files that refer to the corresponding files from the npm(core-js) package. + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js helpers/ regenerator/ core-js/ \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%if 0%{?enable_tests} +%{_bindir}/echo -e "\e[102m -=#=- There are no tests -=#=- \e[0m" +%else +%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" + +%endif + + +%files +%{!?_licensedir:%global license %doc} +%doc *.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + + +%changelog +* Thu Apr 13 2017 Jared Smith jsmith@fedoraproject.org - 6.23.0-1 +- Update to upstream 6.23.0 release + +* Tue Jul 05 2016 Jared Smith jsmith@fedoraproject.org - 6.9.2-1 +- Update to upstream 6.9.2 release + +* Wed Feb 17 2016 Jared Smith jsmith@fedoraproject.org - 6.5.0-1 +- Initial packaging diff --git a/sources b/sources index e69de29..3c85b01 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (babel-runtime-6.23.0.tgz) = f55765b9e6bf329b2474bb0b6131f5d16b5ce73d94d131c61d525ea9e73410751b7c4b76ab7cccd69890fbf1a3325f61d1dad4635845f331d5f67987f0a97e3a +SHA512 (babel-runtime-scripts-6.23.0.tar.bz2) = b65507c3e39fb887e506ca19cb59f2ccd9a739db27c6a1fcf690ae052c049d9a8cf3da7227735da83d5613311901a2bb1ad47257f67d849c7d8196d0af8a53b4
arch-excludes@lists.fedoraproject.org