Blame SPECS/nodejs-unpipe.spec

64a720
%{?scl:%scl_package nodejs-unpipe}
64a720
%{!?scl:%global pkg_name %{name}}
64a720
64a720
%{?nodejs_find_provides_and_requires}
64a720
64a720
%global packagename unpipe
64a720
%global enable_tests 0
64a720
64a720
Name:		%{?scl_prefix}nodejs-unpipe
64a720
Version:	1.0.0
020319
Release:	5%{?dist}
64a720
Summary:	Unpipe a stream from all destinations
64a720
64a720
License:	MIT
64a720
URL:		https://github.com/stream-utils/unpipe
64a720
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
64a720
# The test files are not included in the npm tarball.
64a720
# Source1 is generated by running Source10, which pulls from the upstream
64a720
# version control repository.
64a720
Source1:	tests-%{version}.tar.bz2
64a720
Source10:	dl-tests.sh
64a720
64a720
64a720
ExclusiveArch:	%{nodejs_arches} noarch
64a720
BuildArch:	noarch
64a720
64a720
BuildRequires:	%{?scl_prefix}nodejs-devel
64a720
%if 0%{?enable_tests}
64a720
BuildRequires:	%{?scl_prefix}mocha
64a720
BuildRequires:	%{?scl_prefix}npm(readable-stream)
64a720
%endif
64a720
64a720
Requires:	%{?scl_prefix}nodejs
64a720
64a720
%description
64a720
Unpipe a stream from all destinations
64a720
64a720
%prep
64a720
%setup -q -n package
64a720
# setup the tests
64a720
%setup -q -T -D -a 1 -n package
64a720
64a720
%build
64a720
# nothing to do!
64a720
64a720
%install
64a720
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
64a720
cp -pr package.json *.js \
64a720
	%{buildroot}%{nodejs_sitelib}/%{packagename}
64a720
64a720
%nodejs_symlink_deps
64a720
64a720
%if 0%{?enable_tests}
64a720
64a720
%check
64a720
%nodejs_symlink_deps --check
64a720
/usr/bin/mocha -R spec
64a720
%endif
64a720
64a720
%files
64a720
%{!?_licensedir:%global license %doc}
64a720
%doc *.md
64a720
%license LICENSE
64a720
%{nodejs_sitelib}/%{packagename}
64a720
64a720
%changelog
020319
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-5
020319
- Resolves: RHBZ#1543198, rebuild for multiarch
020319
64a720
* Thu Sep 15 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
64a720
- Built for RHSCL
64a720
64a720
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
64a720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
64a720
64a720
* Tue Oct 13 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-2
64a720
- Add missing BuildRequires for tests
64a720
64a720
* Thu Oct  8 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.0-1
64a720
- Initial packaging