commit
5cfda9170c
BIN
for-each-0.3.2.tgz
Normal file
BIN
for-each-0.3.2.tgz
Normal file
Binary file not shown.
47
nodejs-for-each.spec
Normal file
47
nodejs-for-each.spec
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename for-each
|
||||||
|
%global enable_tests 1
|
||||||
|
Name: nodejs-for-each
|
||||||
|
Version: 0.3.2
|
||||||
|
Release: 1
|
||||||
|
Summary: A better forEach
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/Raynos/for-each
|
||||||
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging npm(is-function)
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape)
|
||||||
|
%endif
|
||||||
|
%description
|
||||||
|
A better forEach
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n package
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%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}
|
||||||
|
%{__nodejs} test/test.js
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc *.md
|
||||||
|
%license LICENCE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.3.2-1
|
||||||
|
- package init
|
||||||
66
nodejs-for-each.spec.old
Normal file
66
nodejs-for-each.spec.old
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
|
||||||
|
%global packagename for-each
|
||||||
|
%global enable_tests 1
|
||||||
|
|
||||||
|
Name: nodejs-for-each
|
||||||
|
Version: 0.3.2
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: A better forEach
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/Raynos/for-each
|
||||||
|
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
||||||
|
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: npm(is-function)
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
A better forEach
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n package
|
||||||
|
|
||||||
|
|
||||||
|
%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}
|
||||||
|
%{__nodejs} test/test.js
|
||||||
|
%else
|
||||||
|
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc *.md
|
||||||
|
%license LICENCE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 31 2018 Jared K. Smith <jsmith@fedoraproject.org> - 0.3.2-1
|
||||||
|
- Initial packaging
|
||||||
4
nodejs-for-each.yaml
Normal file
4
nodejs-for-each.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: Raynos/for-each
|
||||||
|
tag_prefix: "^"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user