Files
nodejs-tap/nodejs-tap.spec

55 lines
1.3 KiB
RPMSpec

%define base_name tap
Name: nodejs-tap
Version: 0.4.12
Release: 0
Summary: A Test Anything Protocol library
Group: Development/Tools
License: MIT
URL: https://github.com/isaacs/node-tap
Source0: %{base_name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildArch: noarch
BuildRequires: nodejs-packaging
%nodejs_find_provides_and_requires
%description
This is a mix-and-match set of utilities that you can use to write test
harnesses and frameworks that communicate with one another using the
Test Anything Protocol.
%prep
%setup -q -n package
%nodejs_fixdep glob ~4
%nodejs_fixdep nopt *
#remove bundled modules
rm -rf node_modules
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/tap
cp -pr bin lib package.json %{buildroot}%{nodejs_modulesdir}/tap
mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/tap/bin/tap.js %{buildroot}%{_bindir}/tap
#make secondary scripts executable
chmod 0755 %{buildroot}%{nodejs_modulesdir}/tap/bin/*
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,-)
%{nodejs_modulesdir}/tap
%{_bindir}/tap
%doc coverage-example example README.md AUTHORS LICENSE
%changelog