anish cb463c2
%{?nodejs_find_provides_and_requires}
0c4e4f4
0c4e4f4
%global enable_tests 1
9770678
%global module_name wrappy
0c4e4f4
anish cb463c2
Name:       nodejs-wrappy
anish c20196b
Version:    1.0.2
cd14aad
Release:    7%{?dist}
anish cb463c2
Summary:    Callback wrapping utility
anish cb463c2
License:    ISC
anish cb463c2
URL:        https://github.com/npm/wrappy
anish c20196b
Source0:    https://github.com/npm/wrappy/archive/v%{version}.tar.gz
anish cb463c2
anish cb463c2
BuildArch:  noarch
anish cb463c2
anish cb463c2
BuildRequires:  nodejs-packaging
0c4e4f4
0c4e4f4
%if 0%{?enable_tests}
anish cb463c2
BuildRequires:  npm(tap)
0c4e4f4
%endif
anish cb463c2
anish cb463c2
ExclusiveArch: %{nodejs_arches} noarch
anish cb463c2
anish cb463c2
%description
anish cb463c2
Callback wrapping utility for node.js
anish cb463c2
anish cb463c2
%prep
anish c20196b
%setup -q -n wrappy-%{version}
anish cb463c2
anish cb463c2
%build
anish cb463c2
#nothing to do
anish cb463c2
anish cb463c2
%install
9770678
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
anish cb463c2
cp -pr wrappy.js package.json \
9770678
    %{buildroot}%{nodejs_sitelib}/%{module_name}
anish cb463c2
0c4e4f4
%{nodejs_symlink_deps}
anish cb463c2
anish cb463c2
%if 0%{?enable_tests}
0c4e4f4
%check
0c4e4f4
%{nodejs_symlink_deps} --check
anish cb463c2
tap test/*.js
anish cb463c2
%endif
anish cb463c2
anish cb463c2
%files
0c4e4f4
%doc README.md
0c4e4f4
%license LICENSE
9770678
%{nodejs_sitelib}/%{module_name}
anish cb463c2
anish cb463c2
%changelog
cd14aad
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-7
cd14aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cd14aad
3f231dd
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
3f231dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3f231dd
02f3500
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
02f3500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
02f3500
2bd90be
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
2bd90be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2bd90be
0783c41
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
0783c41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0783c41
4e1df8c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
4e1df8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4e1df8c
anish c20196b
* Mon Oct 17 2016 Anish Patil <anish.developer@gmail.com> - 1.0.2-1
anish c20196b
- Upstream has released new version
anish c20196b
90b3862
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
90b3862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
90b3862
2a6c8f3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
2a6c8f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2a6c8f3
9770678
* Wed Apr 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-3
9770678
- Use correct github source guidelines
9770678
- Use correct module name directory
9770678
0c4e4f4
* Sun Apr 12 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-2
0c4e4f4
- Some spec cleanup to follow nodejs packaging guidelines
0c4e4f4
- Add missing macro in %%check
0c4e4f4
anish cb463c2
* Thu Nov 06 2014 Anish Patil <apatil@redhat.com> - 1.0.1-1
anish cb463c2
- Initial package