package init
This commit is contained in:
parent
8a1ef9f2bd
commit
f70e7b623e
69
nodejs-promise.spec
Normal file
69
nodejs-promise.spec
Normal file
@ -0,0 +1,69 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
|
||||
%global enable_tests 1
|
||||
|
||||
Name: nodejs-promise
|
||||
Version: 8.0.1
|
||||
Release: 1
|
||||
Summary: Bare bones Promises/A+ implementation for Node.js
|
||||
License: MIT
|
||||
URL: https://github.com/then/promise
|
||||
Source0: http://registry.npmjs.org/promise/-/promise-%{version}.tgz
|
||||
#git clone git://github.com/then/promise.git
|
||||
#cd promise
|
||||
#git archive --prefix="test/" --format=tar tags/${tag}:test/ \
|
||||
# | bzip2 > "$pwd"/tests-${tag}.tar.bz2
|
||||
Source1: tests-%{version}.tar.bz2
|
||||
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
|
||||
BuildRequires: nodejs-packaging
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: mocha npm(asap) npm(better-assert) npm(promises-aplus-tests)
|
||||
%endif
|
||||
|
||||
%description
|
||||
This is a bare bones Promises/A+ implementation for Node.js. It is designed
|
||||
to get the basics spot on correct, so that you can build extended promise
|
||||
implementations on top of it.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%setup -q -T -D -a 1 -n package
|
||||
%nodejs_fixdep asap "^2.0.3"
|
||||
|
||||
%build
|
||||
#nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/promise
|
||||
cp -pr package.json *.js lib/ domains/ setimmediate/ \
|
||||
%{buildroot}%{nodejs_sitelib}/promise
|
||||
|
||||
%nodejs_symlink_deps
|
||||
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
%{_bindir}/mocha -R spec --timeout 200 --slow 99999
|
||||
%else
|
||||
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc Readme.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/promise
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 19 2020 wangxiao <wangxiao65@huawei.com> - 8.0.1-1
|
||||
- package init
|
||||
106
nodejs-promise.spec.old
Normal file
106
nodejs-promise.spec.old
Normal file
@ -0,0 +1,106 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
|
||||
%global enable_tests 1
|
||||
|
||||
Name: nodejs-promise
|
||||
Version: 8.0.1
|
||||
Release: 4%{?dist}
|
||||
Summary: Bare bones Promises/A+ implementation for Node.js
|
||||
License: MIT
|
||||
URL: https://github.com/then/promise
|
||||
Source0: http://registry.npmjs.org/promise/-/promise-%{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
|
||||
|
||||
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: mocha
|
||||
BuildRequires: npm(asap)
|
||||
BuildRequires: npm(better-assert)
|
||||
BuildRequires: npm(promises-aplus-tests)
|
||||
%endif
|
||||
|
||||
%description
|
||||
This is a bare bones Promises/A+ implementation for Node.js. It is designed
|
||||
to get the basics spot on correct, so that you can build extended promise
|
||||
implementations on top of it.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n package
|
||||
%setup -q -T -D -a 1 -n package
|
||||
%nodejs_fixdep asap "^2.0.3"
|
||||
|
||||
%build
|
||||
#nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/promise
|
||||
cp -pr package.json *.js lib/ domains/ setimmediate/ \
|
||||
%{buildroot}%{nodejs_sitelib}/promise
|
||||
|
||||
%nodejs_symlink_deps
|
||||
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
%{_bindir}/mocha -R spec --timeout 200 --slow 99999
|
||||
%else
|
||||
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %doc}
|
||||
%doc Readme.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/promise
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Sep 21 2017 Jared Smith <jsmith@fedoraproject.org> - 8.0.1-1
|
||||
- Update to upstream 8.0.1 release
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sun Jan 17 2016 Tom Hughes <tom@compton.nu> - 4.0.0-4
|
||||
- Update npm(asap) dependency
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Mar 02 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 4.0.0-1
|
||||
- initial package
|
||||
5
nodejs-promise.yaml
Normal file
5
nodejs-promise.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: https://github.com/then/promise
|
||||
version_control: github
|
||||
src_repo: then/promise
|
||||
tag_prefix: ""
|
||||
seperator: "."
|
||||
BIN
promise-8.0.1.tgz
Normal file
BIN
promise-8.0.1.tgz
Normal file
Binary file not shown.
BIN
tests-8.0.1.tar.bz2
Normal file
BIN
tests-8.0.1.tar.bz2
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user