Architecture specific change in rpms/atomic-devmode.git
by githook-noreply@fedoraproject.org
The package rpms/atomic-devmode.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/atomic-devmode.git/commit/?id=631....
Change:
+ExcludeArch: s390 s390x %{arm} ppc64
Thanks.
Full change:
============
commit 6314f609ef47cd3e64846589914937cfe98ceea1
Author: Jonathan Lebon <jlebon(a)redhat.com>
Date: Tue Apr 25 11:45:31 2017 -0400
0.3.6-2 -- don't build on ppc64
Also exclude ppc64 since the atomic pkg isn't built there and we need
it.
diff --git a/atomic-devmode.spec b/atomic-devmode.spec
index b37b5b2..8e89343 100644
--- a/atomic-devmode.spec
+++ b/atomic-devmode.spec
@@ -1,6 +1,6 @@
Name: atomic-devmode
Version: 0.3.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Atomic Developer Mode
License: LGPLv3+
@@ -11,8 +11,9 @@ Source: %{name}-v%{version}.tar.gz
BuildArch: noarch
# We're solely compatible with grub2, so don't build on
-# platforms that don't have it.
-ExcludeArch: s390 s390x %{arm}
+# platforms that don't have it. Also, the atomic pkg isn't
+# built on ppc64, so let's exclude it here too.
+ExcludeArch: s390 s390x %{arm} ppc64
Requires: cloud-init
Requires: atomic
@@ -48,6 +49,9 @@ make install DESTDIR="%{buildroot}"
%license COPYING COPYING.LESSER
%changelog
+* Tue Apr 25 2017 Jonathan Lebon <jlebon(a)redhat.com> - 0.3.6-2
+- Don't build on ppc64
+
* Mon Feb 27 2017 Jonathan Lebon <jlebon(a)redhat.com> - 0.3.6-1
- Upstream release 0.3.6 (see %{url}/releases/tag/v0.3.6)
6 years, 11 months
Architecture specific change in rpms/nodejs-assume.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-assume.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-assume.git/commit/?id=7742....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 774200e1fcb76acf052e7e0db60964f258ebd48c
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:50:31 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..db6409a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/assume-1.5.1.tgz
+/tests-1.5.1.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..0030a57
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,119 @@
+#!/bin/bash
+
+tag=$(sed -n 's/^Version:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+url=$(sed -n 's/^URL:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+pkgdir=$(basename $url | sed -s 's/\.git$//')
+
+echo "tag: $tag"
+echo "URL: $url"
+echo "pkgdir: $pkgdir"
+
+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 $pkgdir
+echo Finding git tag
+gittag=$(git show-ref --tags | cut -d' ' -f2 | grep "${tag}$" || git show-ref --tags | cut -d' ' -f2 | sort -Vr | head -n1)
+if [ -z $gittag ]; then
+ gittag=tags/$tag
+fi
+echo "Git Tag: $gittag"
+if [ -d "test" ]; then
+ git archive --prefix='test/' --format=tar ${gittag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "tests" ]; then
+ git archive --prefix='tests/' --format=tar ${gittag}:tests/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "spec" ]; then
+ git archive --prefix='spec/' --format=tar ${gittag}:spec/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+else
+ echo "No test directory found for tag ${gittag}"
+fi
+if [ -d "support" ]; then
+ git archive --prefix='support/' --format=tar ${gittag}:support/ \
+ | bzip2 > "$pwd"/support-${tag}.tar.bz2
+fi
+if [ -d "fixture" ]; then
+ git archive --prefix='fixture/' --format=tar ${gittag}:fixture/ \
+ | bzip2 > "$pwd"/fixture-${tag}.tar.bz2
+fi
+if [ -d "examples" ]; then
+ git archive --prefix='examples/' --format=tar ${gittag}:examples/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+elif [ -d "example" ]; then
+ git archive --prefix='example/' --format=tar ${gittag}:example/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+fi
+if [ -d "tasks" ]; then
+ git archive --prefix='tasks/' --format=tar ${gittag}:tasks/ \
+ | bzip2 > "$pwd"/tasks-${tag}.tar.bz2
+fi
+if [ -d "docs" ]; then
+ git archive --prefix='docs/' --format=tar ${gittag}:docs/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+elif [ -d "doc" ]; then
+ git archive --prefix='doc/' --format=tar ${gittag}:doc/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+fi
+if [ -d "src" ]; then
+ git archive --prefix='src/' --format=tar ${gittag}:src/ \
+ | bzip2 > "$pwd"/src-${tag}.tar.bz2
+elif [ -d "source" ]; then
+ git archive --prefix='source/' --format=tar ${gittag}:source/ \
+ | bzip2 > "$pwd"/source-${tag}.tar.bz2
+fi
+if [ -d "tools" ]; then
+ git archive --prefix='tools/' --format=tar ${gittag}:tools/ \
+ | bzip2 > "$pwd"/tools-${tag}.tar.bz2
+fi
+if [ -d "scripts" ]; then
+ git archive --prefix='scripts/' --format=tar ${gittag}:scripts/ \
+ | bzip2 > "$pwd"/scripts-${tag}.tar.bz2
+fi
+if [ -d "modules" ]; then
+ git archive --prefix='modules/' --format=tar ${gittag}:modules/ \
+ | bzip2 > "$pwd"/modules-${tag}.tar.bz2
+fi
+if [ -d "ts" ]; then
+ git archive --prefix='ts/' --format=tar ${gittag}:ts/ \
+ | bzip2 > "$pwd"/ts-${tag}.tar.bz2
+fi
+if [ -d "build" ]; then
+ git archive --prefix='build/' --format=tar ${gittag}:build/ \
+ | bzip2 > "$pwd"/build-${tag}.tar.bz2
+fi
+if [ -d "fixtures" ]; then
+ git archive --prefix='fixtures/' --format=tar ${gittag}:fixtures/ \
+ | bzip2 > "$pwd"/fixtures-${tag}.tar.bz2
+fi
+if [ -d "mocks" ]; then
+ git archive --prefix='mocks/' --format=tar ${gittag}:mocks/ \
+ | bzip2 > "$pwd"/mocks-${tag}.tar.bz2
+fi
+if [ -d "typings" ]; then
+ git archive --prefix='typings/' --format=tar ${gittag}:typings/ \
+ | bzip2 > "$pwd"/typings-${tag}.tar.bz2
+fi
+if [ -d "templates" ]; then
+ git archive --prefix='templates/' --format=tar ${gittag}:templates/ \
+ | bzip2 > "$pwd"/templates-${tag}.tar.bz2
+fi
+if [ -d "benchmark" ]; then
+ git archive --prefix='benchmark/' --format=tar ${gittag}:benchmark/ \
+ | bzip2 > "$pwd"/benchmark-${tag}.tar.bz2
+fi
+popd
diff --git a/nodejs-assume.spec b/nodejs-assume.spec
new file mode 100644
index 0000000..8eaab0b
--- /dev/null
+++ b/nodejs-assume.spec
@@ -0,0 +1,82 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename assume
+%global enable_tests 1
+
+Name: nodejs-assume
+Version: 1.5.1
+Release: 1%{?dist}
+Summary: Expect-like assertions that works seamlessly in node and browsers
+
+License: MIT
+URL: https://github.com/bigpipe/assume
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# 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: tests-%{version}.tar.bz2
+Source10: dl-tests.sh
+
+# Remove one failing test
+Patch0: nodejs-assume_remove-failing-test.patch
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(deep-eql)
+BuildRequires: npm(fn.name)
+BuildRequires: npm(object-inspect)
+BuildRequires: npm(pathval)
+BuildRequires: npm(pruddy-error)
+%endif
+
+%description
+Expect-like assertions that works seamlessly in node and browsers
+
+
+%prep
+%setup -q -n package
+# setup the tests
+%setup -q -T -D -a 1 -n package
+# remove failing test
+%patch0 -p1
+
+%nodejs_fixdep object-inspect
+%nodejs_fixdep pathval
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json *.js dist/ \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Thu May 04 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.5.1-1
+- Update to upstream 1.5.1 release
+
+* Thu Mar 30 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.4.1-2
+- Fix dependency version for npm(pathval)
+
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.4.1-1
+- Initial packaging
diff --git a/nodejs-assume_remove-failing-test.patch b/nodejs-assume_remove-failing-test.patch
new file mode 100644
index 0000000..3c2a36c
--- /dev/null
+++ b/nodejs-assume_remove-failing-test.patch
@@ -0,0 +1,12 @@
+diff --git a/test/test.js b/test/test.js
+index 4843000..9193cfc 100644
+--- a/test/test.js
++++ b/test/test.js
+@@ -1369,7 +1369,6 @@ describe('Assertions', function assertions() {
+ assume(helpers.name).is.a('function');
+ assume(helpers.size).is.a('function');
+ assume(helpers.type).is.a('function');
+- assume(helpers.get).is.a('function');
+
+ next();
+ });
diff --git a/sources b/sources
index e69de29..26ec49d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (assume-1.5.1.tgz) = 6fb4758ca1ed28f05ae9ab123bdc2b2a1ce4797d21dc03571fc8f6acbe4659cbebae72a46cec323a4599d385f5ce4fab8547269c778de3ec0b035843fa9716b6
+SHA512 (tests-1.5.1.tar.bz2) = 2851b825ca58d53f6ccea1a4b8b326f98557bca8010fa2658e540b405c8f03b2bacdc54b80abd5f7da0e4a6519c00da9806a4d548d99b4943f85753ccd993dc2
6 years, 11 months
Architecture specific change in rpms/nodejs-assume.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-assume.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-assume.git/commit/?id=7742....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 774200e1fcb76acf052e7e0db60964f258ebd48c
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:50:31 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..db6409a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/assume-1.5.1.tgz
+/tests-1.5.1.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..0030a57
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,119 @@
+#!/bin/bash
+
+tag=$(sed -n 's/^Version:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+url=$(sed -n 's/^URL:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+pkgdir=$(basename $url | sed -s 's/\.git$//')
+
+echo "tag: $tag"
+echo "URL: $url"
+echo "pkgdir: $pkgdir"
+
+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 $pkgdir
+echo Finding git tag
+gittag=$(git show-ref --tags | cut -d' ' -f2 | grep "${tag}$" || git show-ref --tags | cut -d' ' -f2 | sort -Vr | head -n1)
+if [ -z $gittag ]; then
+ gittag=tags/$tag
+fi
+echo "Git Tag: $gittag"
+if [ -d "test" ]; then
+ git archive --prefix='test/' --format=tar ${gittag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "tests" ]; then
+ git archive --prefix='tests/' --format=tar ${gittag}:tests/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "spec" ]; then
+ git archive --prefix='spec/' --format=tar ${gittag}:spec/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+else
+ echo "No test directory found for tag ${gittag}"
+fi
+if [ -d "support" ]; then
+ git archive --prefix='support/' --format=tar ${gittag}:support/ \
+ | bzip2 > "$pwd"/support-${tag}.tar.bz2
+fi
+if [ -d "fixture" ]; then
+ git archive --prefix='fixture/' --format=tar ${gittag}:fixture/ \
+ | bzip2 > "$pwd"/fixture-${tag}.tar.bz2
+fi
+if [ -d "examples" ]; then
+ git archive --prefix='examples/' --format=tar ${gittag}:examples/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+elif [ -d "example" ]; then
+ git archive --prefix='example/' --format=tar ${gittag}:example/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+fi
+if [ -d "tasks" ]; then
+ git archive --prefix='tasks/' --format=tar ${gittag}:tasks/ \
+ | bzip2 > "$pwd"/tasks-${tag}.tar.bz2
+fi
+if [ -d "docs" ]; then
+ git archive --prefix='docs/' --format=tar ${gittag}:docs/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+elif [ -d "doc" ]; then
+ git archive --prefix='doc/' --format=tar ${gittag}:doc/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+fi
+if [ -d "src" ]; then
+ git archive --prefix='src/' --format=tar ${gittag}:src/ \
+ | bzip2 > "$pwd"/src-${tag}.tar.bz2
+elif [ -d "source" ]; then
+ git archive --prefix='source/' --format=tar ${gittag}:source/ \
+ | bzip2 > "$pwd"/source-${tag}.tar.bz2
+fi
+if [ -d "tools" ]; then
+ git archive --prefix='tools/' --format=tar ${gittag}:tools/ \
+ | bzip2 > "$pwd"/tools-${tag}.tar.bz2
+fi
+if [ -d "scripts" ]; then
+ git archive --prefix='scripts/' --format=tar ${gittag}:scripts/ \
+ | bzip2 > "$pwd"/scripts-${tag}.tar.bz2
+fi
+if [ -d "modules" ]; then
+ git archive --prefix='modules/' --format=tar ${gittag}:modules/ \
+ | bzip2 > "$pwd"/modules-${tag}.tar.bz2
+fi
+if [ -d "ts" ]; then
+ git archive --prefix='ts/' --format=tar ${gittag}:ts/ \
+ | bzip2 > "$pwd"/ts-${tag}.tar.bz2
+fi
+if [ -d "build" ]; then
+ git archive --prefix='build/' --format=tar ${gittag}:build/ \
+ | bzip2 > "$pwd"/build-${tag}.tar.bz2
+fi
+if [ -d "fixtures" ]; then
+ git archive --prefix='fixtures/' --format=tar ${gittag}:fixtures/ \
+ | bzip2 > "$pwd"/fixtures-${tag}.tar.bz2
+fi
+if [ -d "mocks" ]; then
+ git archive --prefix='mocks/' --format=tar ${gittag}:mocks/ \
+ | bzip2 > "$pwd"/mocks-${tag}.tar.bz2
+fi
+if [ -d "typings" ]; then
+ git archive --prefix='typings/' --format=tar ${gittag}:typings/ \
+ | bzip2 > "$pwd"/typings-${tag}.tar.bz2
+fi
+if [ -d "templates" ]; then
+ git archive --prefix='templates/' --format=tar ${gittag}:templates/ \
+ | bzip2 > "$pwd"/templates-${tag}.tar.bz2
+fi
+if [ -d "benchmark" ]; then
+ git archive --prefix='benchmark/' --format=tar ${gittag}:benchmark/ \
+ | bzip2 > "$pwd"/benchmark-${tag}.tar.bz2
+fi
+popd
diff --git a/nodejs-assume.spec b/nodejs-assume.spec
new file mode 100644
index 0000000..8eaab0b
--- /dev/null
+++ b/nodejs-assume.spec
@@ -0,0 +1,82 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename assume
+%global enable_tests 1
+
+Name: nodejs-assume
+Version: 1.5.1
+Release: 1%{?dist}
+Summary: Expect-like assertions that works seamlessly in node and browsers
+
+License: MIT
+URL: https://github.com/bigpipe/assume
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# 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: tests-%{version}.tar.bz2
+Source10: dl-tests.sh
+
+# Remove one failing test
+Patch0: nodejs-assume_remove-failing-test.patch
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(deep-eql)
+BuildRequires: npm(fn.name)
+BuildRequires: npm(object-inspect)
+BuildRequires: npm(pathval)
+BuildRequires: npm(pruddy-error)
+%endif
+
+%description
+Expect-like assertions that works seamlessly in node and browsers
+
+
+%prep
+%setup -q -n package
+# setup the tests
+%setup -q -T -D -a 1 -n package
+# remove failing test
+%patch0 -p1
+
+%nodejs_fixdep object-inspect
+%nodejs_fixdep pathval
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json *.js dist/ \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Thu May 04 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.5.1-1
+- Update to upstream 1.5.1 release
+
+* Thu Mar 30 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.4.1-2
+- Fix dependency version for npm(pathval)
+
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.4.1-1
+- Initial packaging
diff --git a/nodejs-assume_remove-failing-test.patch b/nodejs-assume_remove-failing-test.patch
new file mode 100644
index 0000000..3c2a36c
--- /dev/null
+++ b/nodejs-assume_remove-failing-test.patch
@@ -0,0 +1,12 @@
+diff --git a/test/test.js b/test/test.js
+index 4843000..9193cfc 100644
+--- a/test/test.js
++++ b/test/test.js
+@@ -1369,7 +1369,6 @@ describe('Assertions', function assertions() {
+ assume(helpers.name).is.a('function');
+ assume(helpers.size).is.a('function');
+ assume(helpers.type).is.a('function');
+- assume(helpers.get).is.a('function');
+
+ next();
+ });
diff --git a/sources b/sources
index e69de29..26ec49d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (assume-1.5.1.tgz) = 6fb4758ca1ed28f05ae9ab123bdc2b2a1ce4797d21dc03571fc8f6acbe4659cbebae72a46cec323a4599d385f5ce4fab8547269c778de3ec0b035843fa9716b6
+SHA512 (tests-1.5.1.tar.bz2) = 2851b825ca58d53f6ccea1a4b8b326f98557bca8010fa2658e540b405c8f03b2bacdc54b80abd5f7da0e4a6519c00da9806a4d548d99b4943f85753ccd993dc2
6 years, 11 months
Architecture specific change in rpms/nodejs-pruddy-error.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-pruddy-error.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-pruddy-error.git/commit/?i....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 7026695e51e9e12d44d3fe1cc3382bbb9ad8f153
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:43:41 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..7cbe6b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pruddy-error-1.0.2.tgz
diff --git a/nodejs-pruddy-error.spec b/nodejs-pruddy-error.spec
new file mode 100644
index 0000000..2221fab
--- /dev/null
+++ b/nodejs-pruddy-error.spec
@@ -0,0 +1,57 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename pruddy-error
+%global enable_tests 1
+
+Name: nodejs-pruddy-error
+Version: 1.0.2
+Release: 1%{?dist}
+Summary: Prettify given error object
+
+License: BSD
+URL: https://github.com/bigpipe/pruddy-error
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+#BuildRequires:
+%endif
+
+%description
+Prettify given error object
+
+
+%prep
+%autosetup -n package
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr *.json style-format.js example.js failing-code.js failing-line.js \
+ index.js left-pad.js format-text.js \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%{__nodejs} --use_strict test.js
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.0.2-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..22f15be 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pruddy-error-1.0.2.tgz) = 8942aa92b6b38f0158835db748bdebb6d32debd7318d38e4e208ed600ef48894a51287c61194712bd08bc1d1ccea543d0f117d66347c5f31d63217cdf9e284f3
6 years, 11 months
Architecture specific change in rpms/nodejs-pathval.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-pathval.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-pathval.git/commit/?id=b37....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit b3763effb4dac2a5a97eede1bd1f1ea8b1eb7cc0
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:41:50 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..22e2cbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/pathval-1.1.0.tgz
+/tests-1.1.0.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..2719465
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,115 @@
+#!/bin/bash
+
+tag=$(sed -n 's/^Version:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+url=$(sed -n 's/^URL:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+pkgdir=$(basename $url | sed -s 's/\.git$//')
+
+echo "tag: $tag"
+echo "URL: $url"
+echo "pkgdir: $pkgdir"
+
+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 $pkgdir
+echo Finding git tag
+gittag=$(git show-ref --tags | cut -d' ' -f2 | grep "${tag}$" || git show-ref --tags | cut -d' ' -f2 | sort -Vr | head -n1)
+if [ -z $gittag ]; then
+ gittag=tags/$tag
+fi
+echo "Git Tag: $gittag"
+if [ -d "test" ]; then
+ git archive --prefix='test/' --format=tar ${gittag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "tests" ]; then
+ git archive --prefix='tests/' --format=tar ${gittag}:tests/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "spec" ]; then
+ git archive --prefix='spec/' --format=tar ${gittag}:spec/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+else
+ echo "No test directory found for tag ${gittag}"
+fi
+if [ -d "support" ]; then
+ git archive --prefix='support/' --format=tar ${gittag}:support/ \
+ | bzip2 > "$pwd"/support-${tag}.tar.bz2
+fi
+if [ -d "fixture" ]; then
+ git archive --prefix='fixture/' --format=tar ${gittag}:fixture/ \
+ | bzip2 > "$pwd"/fixture-${tag}.tar.bz2
+fi
+if [ -d "examples" ]; then
+ git archive --prefix='examples/' --format=tar ${gittag}:examples/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+elif [ -d "example" ]; then
+ git archive --prefix='example/' --format=tar ${gittag}:example/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+fi
+if [ -d "tasks" ]; then
+ git archive --prefix='tasks/' --format=tar ${gittag}:tasks/ \
+ | bzip2 > "$pwd"/tasks-${tag}.tar.bz2
+fi
+if [ -d "docs" ]; then
+ git archive --prefix='docs/' --format=tar ${gittag}:docs/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+elif [ -d "doc" ]; then
+ git archive --prefix='doc/' --format=tar ${gittag}:doc/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+fi
+if [ -d "src" ]; then
+ git archive --prefix='src/' --format=tar ${gittag}:src/ \
+ | bzip2 > "$pwd"/src-${tag}.tar.bz2
+elif [ -d "source" ]; then
+ git archive --prefix='source/' --format=tar ${gittag}:source/ \
+ | bzip2 > "$pwd"/source-${tag}.tar.bz2
+fi
+if [ -d "tools" ]; then
+ git archive --prefix='tools/' --format=tar ${gittag}:tools/ \
+ | bzip2 > "$pwd"/tools-${tag}.tar.bz2
+fi
+if [ -d "scripts" ]; then
+ git archive --prefix='scripts/' --format=tar ${gittag}:scripts/ \
+ | bzip2 > "$pwd"/scripts-${tag}.tar.bz2
+fi
+if [ -d "modules" ]; then
+ git archive --prefix='modules/' --format=tar ${gittag}:modules/ \
+ | bzip2 > "$pwd"/modules-${tag}.tar.bz2
+fi
+if [ -d "ts" ]; then
+ git archive --prefix='ts/' --format=tar ${gittag}:ts/ \
+ | bzip2 > "$pwd"/ts-${tag}.tar.bz2
+fi
+if [ -d "build" ]; then
+ git archive --prefix='build/' --format=tar ${gittag}:build/ \
+ | bzip2 > "$pwd"/build-${tag}.tar.bz2
+fi
+if [ -d "fixtures" ]; then
+ git archive --prefix='fixtures/' --format=tar ${gittag}:fixtures/ \
+ | bzip2 > "$pwd"/fixtures-${tag}.tar.bz2
+fi
+if [ -d "mocks" ]; then
+ git archive --prefix='mocks/' --format=tar ${gittag}:mocks/ \
+ | bzip2 > "$pwd"/mocks-${tag}.tar.bz2
+fi
+if [ -d "typings" ]; then
+ git archive --prefix='typings/' --format=tar ${gittag}:typings/ \
+ | bzip2 > "$pwd"/typings-${tag}.tar.bz2
+fi
+if [ -d "templates" ]; then
+ git archive --prefix='templates/' --format=tar ${gittag}:templates/ \
+ | bzip2 > "$pwd"/templates-${tag}.tar.bz2
+fi
+popd
diff --git a/nodejs-pathval.spec b/nodejs-pathval.spec
new file mode 100644
index 0000000..6dc2237
--- /dev/null
+++ b/nodejs-pathval.spec
@@ -0,0 +1,65 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename pathval
+%global enable_tests 1
+
+Name: nodejs-pathval
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Object value retrieval given a string path
+
+License: MIT
+URL: https://github.com/chaijs/pathval
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# 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: tests-%{version}.tar.bz2
+Source10: dl-tests.sh
+
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(simple-assert)
+%endif
+
+%description
+Object value retrieval given a string path
+
+
+%prep
+%autosetup -n package
+# setup the tests
+%autosetup -T -D -a 1 -n package
+
+%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}
+%{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.1.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..2fe49e0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (pathval-1.1.0.tgz) = a99d7cd6adc80a46a0ffe96fd57e9fac3505f38a6a0a6df4aa295ddcb19b0fce27d000bbe426309d6b10443969cfbcc3914e4d55c9a11e1e0b8d72b48282d864
+SHA512 (tests-1.1.0.tar.bz2) = c1e3c3403c5b03e3c071c29bac972a1c38e8f0433be6c180ff269339e660baf8cb80d0b6327032c79b97823508028f9eb7227cb4e2514bdfb8770fbdff7c4be0
6 years, 11 months
Architecture specific change in rpms/nodejs-fn-dot-name.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-fn-dot-name.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-fn-dot-name.git/commit/?id....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 754f67fd053d9597caf19698f6102233cde575ef
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:39:56 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..e9632f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fn.name-1.0.1.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..b68d272
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Arnout Kazemier, Martijn Swaagman, the Contributors.
+
+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/nodejs-fn-dot-name.spec b/nodejs-fn-dot-name.spec
new file mode 100644
index 0000000..d2be464
--- /dev/null
+++ b/nodejs-fn-dot-name.spec
@@ -0,0 +1,61 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename fn.name
+# Tests disabled due to circular dependency on npm(assume)
+%global enable_tests 0
+
+Name: nodejs-fn-dot-name
+Version: 1.0.1
+Release: 1%{?dist}
+Summary: Extract names from functions
+
+License: MIT
+URL: https://github.com/bigpipe/fn.name
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# license
+Source1: https://raw.githubusercontent.com/bigpipe/fn.name/master/LICENSE
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(assume)
+%endif
+
+%description
+Extract names from functions
+
+
+%prep
+%autosetup -n package
+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}/mocha -R spec --ui bdd
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.0.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..35d2090 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (fn.name-1.0.1.tgz) = ce83258b32f5d6bc610f8b0f94435cb304e4e8d1bfee6607ca7a7ce256968677ea545868479ef6f00961afaf2a6f45a5f938132fad187ab931673135e3e8c6a6
6 years, 11 months
Architecture specific change in rpms/nodejs-pruddy-error.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-pruddy-error.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-pruddy-error.git/commit/?i....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 7026695e51e9e12d44d3fe1cc3382bbb9ad8f153
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:43:41 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..7cbe6b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pruddy-error-1.0.2.tgz
diff --git a/nodejs-pruddy-error.spec b/nodejs-pruddy-error.spec
new file mode 100644
index 0000000..2221fab
--- /dev/null
+++ b/nodejs-pruddy-error.spec
@@ -0,0 +1,57 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename pruddy-error
+%global enable_tests 1
+
+Name: nodejs-pruddy-error
+Version: 1.0.2
+Release: 1%{?dist}
+Summary: Prettify given error object
+
+License: BSD
+URL: https://github.com/bigpipe/pruddy-error
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+#BuildRequires:
+%endif
+
+%description
+Prettify given error object
+
+
+%prep
+%autosetup -n package
+
+%build
+# nothing to do!
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr *.json style-format.js example.js failing-code.js failing-line.js \
+ index.js left-pad.js format-text.js \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+%{__nodejs} --use_strict test.js
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.0.2-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..22f15be 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pruddy-error-1.0.2.tgz) = 8942aa92b6b38f0158835db748bdebb6d32debd7318d38e4e208ed600ef48894a51287c61194712bd08bc1d1ccea543d0f117d66347c5f31d63217cdf9e284f3
6 years, 11 months
Architecture specific change in rpms/nodejs-path-key.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-path-key.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-path-key.git/commit/?id=07....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 079f64a6bbdb2b23479c06acdd97161ec12dfc3d
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:37:23 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..8d1e0c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/path-key-2.0.1.tgz
diff --git a/nodejs-path-key.spec b/nodejs-path-key.spec
new file mode 100644
index 0000000..43bb2e5
--- /dev/null
+++ b/nodejs-path-key.spec
@@ -0,0 +1,62 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename path-key
+
+# tests missing due to missing npm(ava)
+%global enable_tests 0
+
+Name: nodejs-path-key
+Version: 2.0.1
+Release: 1%{?dist}
+Summary: Get the PATH environment variable key cross-platform
+
+License: MIT
+URL: https://github.com/sindresorhus/path-key
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# The test files are not included in the npm tarball.
+Source1: https://raw.githubusercontent.com/sindresorhus/path-key/v%{version}/test.js
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: npm(ava)
+%endif
+
+%description
+Get the PATH environment variable key cross-platform
+
+
+%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
+* Wed Apr 19 2017 Jared Smith <jsmith(a)fedoraproject.org> - 2.0.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..1b383c3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (path-key-2.0.1.tgz) = 7c41c62824a65120cfbf8ba88fc0250fe8e83e5ab7a5e343f87458cb1173e0a3f0e33f76e92fdbf2b22e16cd85609837070b3125fe80f7fdde21d2da602fbd0f
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..4a19bbc
--- /dev/null
+++ b/test.js
@@ -0,0 +1,10 @@
+import test from 'ava';
+import m from './';
+
+test(t => {
+ t.is(m().toUpperCase(), 'PATH');
+ t.is(m({env: {PATH: ''}}), 'PATH');
+ t.is(m({env: {Path: ''}, platform: 'win32'}), 'Path');
+ t.is(m({env: {}, platform: 'darwin'}), 'PATH');
+ t.is(m({env: {}, platform: 'win32'}), 'Path');
+});
6 years, 11 months
Architecture specific change in rpms/nodejs-pathval.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-pathval.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-pathval.git/commit/?id=b37....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit b3763effb4dac2a5a97eede1bd1f1ea8b1eb7cc0
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:41:50 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..22e2cbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/pathval-1.1.0.tgz
+/tests-1.1.0.tar.bz2
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..2719465
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,115 @@
+#!/bin/bash
+
+tag=$(sed -n 's/^Version:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+url=$(sed -n 's/^URL:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+pkgdir=$(basename $url | sed -s 's/\.git$//')
+
+echo "tag: $tag"
+echo "URL: $url"
+echo "pkgdir: $pkgdir"
+
+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 $pkgdir
+echo Finding git tag
+gittag=$(git show-ref --tags | cut -d' ' -f2 | grep "${tag}$" || git show-ref --tags | cut -d' ' -f2 | sort -Vr | head -n1)
+if [ -z $gittag ]; then
+ gittag=tags/$tag
+fi
+echo "Git Tag: $gittag"
+if [ -d "test" ]; then
+ git archive --prefix='test/' --format=tar ${gittag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "tests" ]; then
+ git archive --prefix='tests/' --format=tar ${gittag}:tests/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "spec" ]; then
+ git archive --prefix='spec/' --format=tar ${gittag}:spec/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+else
+ echo "No test directory found for tag ${gittag}"
+fi
+if [ -d "support" ]; then
+ git archive --prefix='support/' --format=tar ${gittag}:support/ \
+ | bzip2 > "$pwd"/support-${tag}.tar.bz2
+fi
+if [ -d "fixture" ]; then
+ git archive --prefix='fixture/' --format=tar ${gittag}:fixture/ \
+ | bzip2 > "$pwd"/fixture-${tag}.tar.bz2
+fi
+if [ -d "examples" ]; then
+ git archive --prefix='examples/' --format=tar ${gittag}:examples/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+elif [ -d "example" ]; then
+ git archive --prefix='example/' --format=tar ${gittag}:example/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+fi
+if [ -d "tasks" ]; then
+ git archive --prefix='tasks/' --format=tar ${gittag}:tasks/ \
+ | bzip2 > "$pwd"/tasks-${tag}.tar.bz2
+fi
+if [ -d "docs" ]; then
+ git archive --prefix='docs/' --format=tar ${gittag}:docs/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+elif [ -d "doc" ]; then
+ git archive --prefix='doc/' --format=tar ${gittag}:doc/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+fi
+if [ -d "src" ]; then
+ git archive --prefix='src/' --format=tar ${gittag}:src/ \
+ | bzip2 > "$pwd"/src-${tag}.tar.bz2
+elif [ -d "source" ]; then
+ git archive --prefix='source/' --format=tar ${gittag}:source/ \
+ | bzip2 > "$pwd"/source-${tag}.tar.bz2
+fi
+if [ -d "tools" ]; then
+ git archive --prefix='tools/' --format=tar ${gittag}:tools/ \
+ | bzip2 > "$pwd"/tools-${tag}.tar.bz2
+fi
+if [ -d "scripts" ]; then
+ git archive --prefix='scripts/' --format=tar ${gittag}:scripts/ \
+ | bzip2 > "$pwd"/scripts-${tag}.tar.bz2
+fi
+if [ -d "modules" ]; then
+ git archive --prefix='modules/' --format=tar ${gittag}:modules/ \
+ | bzip2 > "$pwd"/modules-${tag}.tar.bz2
+fi
+if [ -d "ts" ]; then
+ git archive --prefix='ts/' --format=tar ${gittag}:ts/ \
+ | bzip2 > "$pwd"/ts-${tag}.tar.bz2
+fi
+if [ -d "build" ]; then
+ git archive --prefix='build/' --format=tar ${gittag}:build/ \
+ | bzip2 > "$pwd"/build-${tag}.tar.bz2
+fi
+if [ -d "fixtures" ]; then
+ git archive --prefix='fixtures/' --format=tar ${gittag}:fixtures/ \
+ | bzip2 > "$pwd"/fixtures-${tag}.tar.bz2
+fi
+if [ -d "mocks" ]; then
+ git archive --prefix='mocks/' --format=tar ${gittag}:mocks/ \
+ | bzip2 > "$pwd"/mocks-${tag}.tar.bz2
+fi
+if [ -d "typings" ]; then
+ git archive --prefix='typings/' --format=tar ${gittag}:typings/ \
+ | bzip2 > "$pwd"/typings-${tag}.tar.bz2
+fi
+if [ -d "templates" ]; then
+ git archive --prefix='templates/' --format=tar ${gittag}:templates/ \
+ | bzip2 > "$pwd"/templates-${tag}.tar.bz2
+fi
+popd
diff --git a/nodejs-pathval.spec b/nodejs-pathval.spec
new file mode 100644
index 0000000..6dc2237
--- /dev/null
+++ b/nodejs-pathval.spec
@@ -0,0 +1,65 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename pathval
+%global enable_tests 1
+
+Name: nodejs-pathval
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Object value retrieval given a string path
+
+License: MIT
+URL: https://github.com/chaijs/pathval
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# 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: tests-%{version}.tar.bz2
+Source10: dl-tests.sh
+
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(simple-assert)
+%endif
+
+%description
+Object value retrieval given a string path
+
+
+%prep
+%autosetup -n package
+# setup the tests
+%autosetup -T -D -a 1 -n package
+
+%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}
+%{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.1.0-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..2fe49e0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (pathval-1.1.0.tgz) = a99d7cd6adc80a46a0ffe96fd57e9fac3505f38a6a0a6df4aa295ddcb19b0fce27d000bbe426309d6b10443969cfbcc3914e4d55c9a11e1e0b8d72b48282d864
+SHA512 (tests-1.1.0.tar.bz2) = c1e3c3403c5b03e3c071c29bac972a1c38e8f0433be6c180ff269339e660baf8cb80d0b6327032c79b97823508028f9eb7227cb4e2514bdfb8770fbdff7c4be0
6 years, 11 months
Architecture specific change in rpms/nodejs-fn-dot-name.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-fn-dot-name.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-fn-dot-name.git/commit/?id....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 754f67fd053d9597caf19698f6102233cde575ef
Author: Jared K. Smith <jaredsmith(a)jaredsmith.net>
Date: Fri May 5 10:39:56 2017 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
index e69de29..e9632f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fn.name-1.0.1.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..b68d272
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Arnout Kazemier, Martijn Swaagman, the Contributors.
+
+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/nodejs-fn-dot-name.spec b/nodejs-fn-dot-name.spec
new file mode 100644
index 0000000..d2be464
--- /dev/null
+++ b/nodejs-fn-dot-name.spec
@@ -0,0 +1,61 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename fn.name
+# Tests disabled due to circular dependency on npm(assume)
+%global enable_tests 0
+
+Name: nodejs-fn-dot-name
+Version: 1.0.1
+Release: 1%{?dist}
+Summary: Extract names from functions
+
+License: MIT
+URL: https://github.com/bigpipe/fn.name
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# license
+Source1: https://raw.githubusercontent.com/bigpipe/fn.name/master/LICENSE
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-packaging
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(assume)
+%endif
+
+%description
+Extract names from functions
+
+
+%prep
+%autosetup -n package
+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}/mocha -R spec --ui bdd
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Wed Mar 29 2017 Jared Smith <jsmith(a)fedoraproject.org> - 1.0.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..35d2090 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (fn.name-1.0.1.tgz) = ce83258b32f5d6bc610f8b0f94435cb304e4e8d1bfee6607ca7a7ce256968677ea545868479ef6f00961afaf2a6f45a5f938132fad187ab931673135e3e8c6a6
6 years, 11 months