delete nodejs-for-each.spec.old redundancy file
This commit is contained in:
parent
5cfda9170c
commit
d15336aec3
@ -3,7 +3,7 @@
|
||||
%global enable_tests 1
|
||||
Name: nodejs-for-each
|
||||
Version: 0.3.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A better forEach
|
||||
License: MIT
|
||||
URL: https://github.com/Raynos/for-each
|
||||
@ -43,5 +43,8 @@ cp -pr package.json index.js \
|
||||
%{nodejs_sitelib}/%{packagename}
|
||||
|
||||
%changelog
|
||||
* Thu Nov 26 2020 leiju <leiju4@huawei.com> - 0.3.2-2
|
||||
- delete nodejs-for-each.spec.old redundancy file
|
||||
|
||||
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 0.3.2-1
|
||||
- package init
|
||||
|
||||
@ -1,66 +0,0 @@
|
||||
%{?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
|
||||
Loading…
x
Reference in New Issue
Block a user