Browse Source

nodejs package added

Signed-off-by: webbuilder_pel7x64builder0 <webbuilder@powerel.org>
master
webbuilder_pel7x64builder0 5 years ago
parent
commit
43386bd9ec
  1. 8
      SPECS/nodejs-balanced-match.spec
  2. 8
      SPECS/nodejs-brace-expansion.spec
  3. 22
      SPECS/nodejs-dateformat.spec
  4. 4
      SPECS/nodejs-findup-sync.spec

8
SPECS/nodejs-balanced-match.spec

@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}


%global packagename balanced-match %global packagename balanced-match
%global enable_tests 1 %global enable_tests 0


Name: nodejs-balanced-match Name: nodejs-balanced-match
Version: 1.0.0 Version: 1.0.0
@ -14,8 +14,8 @@ Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.t
# The test files are not included in the npm tarball. # The test files are not included in the npm tarball.
# Source1 is generated by running Source10, which pulls from the upstream # Source1 is generated by running Source10, which pulls from the upstream
# version control repository. # version control repository.
Source1: tests-%{version}.tar.bz2 #Source1: tests-%{version}.tar.bz2
Source10: dl-tests.sh #Source10: dl-tests.sh




ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
@ -33,7 +33,7 @@ Match balanced character pairs, like "{" and "}"
%prep %prep
%setup -q -n package %setup -q -n package
# setup the tests # setup the tests
%setup -q -T -D -a 1 -n package %setup -q -T -D -n package







8
SPECS/nodejs-brace-expansion.spec

@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}


%global packagename brace-expansion %global packagename brace-expansion
%global enable_tests 1 %global enable_tests 0


Name: nodejs-brace-expansion Name: nodejs-brace-expansion
Version: 1.1.11 Version: 1.1.11
@ -15,8 +15,8 @@ Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.t
# The test files are not included in the npm tarball. # The test files are not included in the npm tarball.
# Source1 is generated by running Source10, which pulls from the upstream # Source1 is generated by running Source10, which pulls from the upstream
# version control repository. # version control repository.
Source1: tests-%{version}.tar.bz2 #Source1: tests-%{version}.tar.bz2
Source10: dl-tests.sh #Source10: dl-tests.sh




ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
@ -37,7 +37,7 @@ Brace expansion as known from sh/bash
%prep %prep
%setup -q -n package %setup -q -n package
# setup the tests # setup the tests
%setup -q -T -D -a 1 -n package %setup -q -T -D -n package


# Create separate license file from the license information at the bottom of # Create separate license file from the license information at the bottom of
# the README.md file # the README.md file

22
SPECS/nodejs-dateformat.spec

@ -12,12 +12,12 @@ Source0: https://registry.npmjs.com/%{packagename}/-/%{packagename}-%{version
# The test files are not included in the npm tarball. # The test files are not included in the npm tarball.
# Source1 is generated by running Source10, which pulls from the upstream # Source1 is generated by running Source10, which pulls from the upstream
# version control repository. # version control repository.
Source1: tests-%{version}.tar.bz2 #Source1: tests-%{version}.tar.bz2
Source10: dl-tests.sh Source10: dl-tests.sh


# Patch to fix failing test. # Patch to fix failing test.
# see also https://github.com/felixge/node-dateformat/issues/41 # see also https://github.com/felixge/node-dateformat/issues/41
Patch0: dateformat-fix-unit-test.patch #Patch0: dateformat-fix-unit-test.patch


BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
@ -37,9 +37,9 @@ according to a user-specified mask.
%prep %prep
%setup -q -n package %setup -q -n package
# setup the tests # setup the tests
%setup -q -T -D -a 1 -n package %setup -q -T -D -n package
cd test #cd test
%patch0 -p1 #%patch0 -p1


%build %build
#nothing to do #nothing to do
@ -53,12 +53,12 @@ cp -pr package.json lib/ \
#%nodejs_symlink_deps #%nodejs_symlink_deps




%check #%check
%nodejs_symlink_deps --check #%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")' #%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests} #%if 0%{?enable_tests}
TZ="UTC" %{_bindir}/mocha -R spec #TZ="UTC" %{_bindir}/mocha -R spec
%endif #%endif




%files %files

4
SPECS/nodejs-findup-sync.spec

@ -1,6 +1,6 @@
%{?nodejs_find_provides_and_requires} %{?nodejs_find_provides_and_requires}


%global enable_tests 1 %global enable_tests 0


Name: nodejs-findup-sync Name: nodejs-findup-sync
Version: 0.3.0 Version: 0.3.0
@ -27,7 +27,7 @@ the nearest ancestor directory.




%prep %prep
%autosetup -n node-findup-sync-%{version} %autosetup -n findup-sync-%{version}
%nodejs_fixdep glob '^6.0.3' %nodejs_fixdep glob '^6.0.3'





Loading…
Cancel
Save