|
|
86d57e1 |
%{?nodejs_find_provides_and_requires}
|
|
T.C. Hollingsworth |
3c0e24d |
|
|
T.C. Hollingsworth |
519b4ed |
%global enable_tests 1
|
|
T.C. Hollingsworth |
519b4ed |
|
|
T.C. Hollingsworth |
fd284ff |
Name: nodejs-tap
|
|
|
46e0014 |
Version: 0.4.4
|
|
|
c78bbbc |
Release: 3%{?dist}
|
|
T.C. Hollingsworth |
fd284ff |
Summary: A Test Anything Protocol library
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
Group: Development/Tools
|
|
T.C. Hollingsworth |
fd284ff |
License: MIT
|
|
T.C. Hollingsworth |
fd284ff |
URL: https://github.com/isaacs/node-tap
|
|
T.C. Hollingsworth |
fd284ff |
Source0: http://registry.npmjs.org/tap/-/tap-%{version}.tgz
|
|
T.C. Hollingsworth |
fd284ff |
Source1: macros.nodejs-tap
|
|
T.C. Hollingsworth |
fd284ff |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
# the segv test results in SIGSEGV as you would expect, not SIGBUS as is written
|
|
T.C. Hollingsworth |
fd284ff |
# in the test: https://github.com/isaacs/node-tap/pull/75
|
|
|
46e0014 |
# However, in koji it actually results in SIGTERM instead, so we're just going
|
|
|
46e0014 |
# to skip the segv test altogether.
|
|
T.C. Hollingsworth |
fd284ff |
Patch1: nodejs-tap-segv-actually-segfaults.patch
|
|
T.C. Hollingsworth |
fd284ff |
|
|
|
46e0014 |
BuildArch: noarch
|
|
|
46e0014 |
%if 0%{?fedora} >= 19
|
|
|
46e0014 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
46e0014 |
%else
|
|
|
46e0014 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
46e0014 |
%endif
|
|
|
46e0014 |
|
|
|
46e0014 |
BuildRequires: nodejs-packaging
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
3c0e24d |
%if 0%{?enable_tests}
|
|
T.C. Hollingsworth |
fd284ff |
# we need to replicate the dependencies of this package for it to be able to
|
|
T.C. Hollingsworth |
fd284ff |
# test itself
|
|
T.C. Hollingsworth |
79b595b |
BuildRequires: npm(inherits) = 1.0.0
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(yamlish)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(slide)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(runforcover)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(nopt)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(mkdirp)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(difflet)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(deep-equal)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(buffer-equal)
|
|
T.C. Hollingsworth |
fd284ff |
BuildRequires: npm(glob)
|
|
T.C. Hollingsworth |
3c0e24d |
%endif
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%description
|
|
T.C. Hollingsworth |
fd284ff |
This is a mix-and-match set of utilities that you can use to write test
|
|
T.C. Hollingsworth |
fd284ff |
harnesses and frameworks that communicate with one another using the
|
|
T.C. Hollingsworth |
fd284ff |
Test Anything Protocol.
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%prep
|
|
T.C. Hollingsworth |
fd284ff |
%setup -q -n package
|
|
|
46e0014 |
#%%patch1 -p1
|
|
T.C. Hollingsworth |
fd284ff |
|
|
|
c78bbbc |
%nodejs_fixdep deep-equal '~0.1'
|
|
T.C. Hollingsworth |
c33dee0 |
%nodejs_fixdep glob 3.2
|
|
T.C. Hollingsworth |
d61cb25 |
%nodejs_fixdep inherits 1
|
|
T.C. Hollingsworth |
c33dee0 |
|
|
T.C. Hollingsworth |
fd284ff |
#remove bundled modules
|
|
T.C. Hollingsworth |
fd284ff |
rm -rf node_modules
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%build
|
|
T.C. Hollingsworth |
fd284ff |
#nothing to do
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%install
|
|
T.C. Hollingsworth |
fd284ff |
rm -rf %buildroot
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
mkdir -p %{buildroot}%{nodejs_sitelib}/tap
|
|
T.C. Hollingsworth |
fd284ff |
cp -pr bin lib package.json %{buildroot}%{nodejs_sitelib}/tap
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
mkdir -p %{buildroot}%{_bindir}
|
|
T.C. Hollingsworth |
fd284ff |
ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
#install some macros for use in RPM %%check sections
|
|
T.C. Hollingsworth |
fd284ff |
install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.tap
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
#make secondary scripts executable
|
|
T.C. Hollingsworth |
fd284ff |
chmod 0755 %{buildroot}%{nodejs_sitelib}/tap/bin/*
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%nodejs_symlink_deps
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
3c0e24d |
%if 0%{?enable_tests}
|
|
T.C. Hollingsworth |
fd284ff |
%check
|
|
|
c5bb424 |
# Temporarily disable test/segv.js
|
|
|
c5bb424 |
rm -f test/segv.js
|
|
|
c5bb424 |
|
|
T.C. Hollingsworth |
fd284ff |
%nodejs_symlink_deps --check
|
|
T.C. Hollingsworth |
fd284ff |
%__nodejs %{buildroot}%{nodejs_sitelib}/tap/bin/tap.js test/*.js
|
|
T.C. Hollingsworth |
3c0e24d |
%endif
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%clean
|
|
T.C. Hollingsworth |
fd284ff |
rm -rf %buildroot
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%files
|
|
T.C. Hollingsworth |
fd284ff |
%defattr(-,root,root,-)
|
|
T.C. Hollingsworth |
fd284ff |
%{nodejs_sitelib}/tap
|
|
T.C. Hollingsworth |
fd284ff |
%{_bindir}/tap
|
|
T.C. Hollingsworth |
fd284ff |
%{_sysconfdir}/rpm/macros.tap
|
|
T.C. Hollingsworth |
fd284ff |
%doc coverage-example example README.md AUTHORS LICENSE
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
%changelog
|
|
|
c78bbbc |
* Wed Oct 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.4-3
|
|
|
c78bbbc |
- fix version of npm(deep-equal) dependency
|
|
|
c78bbbc |
|
|
|
16a5a8b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
|
|
|
16a5a8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
16a5a8b |
|
|
|
46e0014 |
* Tue Sep 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.4-1
|
|
|
46e0014 |
- update to upstream release 0.4.4
|
|
|
46e0014 |
|
|
T.C. Hollingsworth |
79b595b |
* Sat Aug 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-7
|
|
T.C. Hollingsworth |
79b595b |
- BuildRequire the correct version of inherits
|
|
T.C. Hollingsworth |
79b595b |
|
|
|
7c54c4c |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-7
|
|
|
7c54c4c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
7c54c4c |
|
|
|
c5bb424 |
* Thu Jul 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.1-6
|
|
|
c5bb424 |
- temporarily disable test/segv.js, as in local mock the test receives SIGSEGV
|
|
|
c5bb424 |
but in koji it receives SIGTERM instead
|
|
|
c5bb424 |
|
|
T.C. Hollingsworth |
519b4ed |
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-5
|
|
T.C. Hollingsworth |
519b4ed |
- enable tests
|
|
T.C. Hollingsworth |
d61cb25 |
- force the use inherits@1 since this module is incompatible with inherits@2
|
|
T.C. Hollingsworth |
519b4ed |
|
|
T.C. Hollingsworth |
c33dee0 |
* Mon Jun 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-4
|
|
T.C. Hollingsworth |
c33dee0 |
- fix glob dep
|
|
T.C. Hollingsworth |
c33dee0 |
|
|
|
86d57e1 |
* Sat Jun 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.1-3
|
|
|
86d57e1 |
- add macro for EPEL6 dependency generation
|
|
|
86d57e1 |
|
|
T.C. Hollingsworth |
8c6da92 |
* Fri Jun 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2.1
|
|
T.C. Hollingsworth |
8c6da92 |
- rebuild for missing npm(tap) provides
|
|
T.C. Hollingsworth |
3c0e24d |
- temporarily disable tests to more easily fix above breakage
|
|
T.C. Hollingsworth |
8c6da92 |
|
|
T.C. Hollingsworth |
fd284ff |
* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-2
|
|
T.C. Hollingsworth |
fd284ff |
- fix rpmlint warnings
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
* Tue Apr 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.4.1-1
|
|
T.C. Hollingsworth |
fd284ff |
- new upstream release 0.4.1
|
|
T.C. Hollingsworth |
fd284ff |
- fix tests
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
* Tue Jan 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.3-2
|
|
T.C. Hollingsworth |
fd284ff |
- rename from tap to nodejs-tap
|
|
T.C. Hollingsworth |
fd284ff |
- remove bootstrap logic that didn't work
|
|
T.C. Hollingsworth |
fd284ff |
- instead we use ourself and BuildRequire everything we need
|
|
T.C. Hollingsworth |
fd284ff |
|
|
T.C. Hollingsworth |
fd284ff |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.3.3-1
|
|
T.C. Hollingsworth |
fd284ff |
- initial package generated by npm2rpm
|