Blame SPECS/nodejs-brace-expansion.spec

f0733c
%{?scl:%scl_package nodejs-brace-expansion}
f0733c
%{!?scl:%global pkg_name %{name}}
f0733c
f0733c
%{?nodejs_find_provides_and_requires}
f0733c
f0733c
%global packagename brace-expansion
f0733c
%global enable_tests 0
f0733c
# tests disabled due to reliance on an old version of 'tape'
f0733c
f0733c
Name:		%{?scl_prefix}nodejs-brace-expansion
f0733c
Version:	1.1.1
f0733c
Release:	2%{?dist}
f0733c
Summary:	Brace expansion as known from sh/bash
f0733c
f0733c
License:	MIT
f0733c
URL:		https://github.com/juliangruber/brace-expansion.git
f0733c
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
f0733c
# The test files are not included in the npm tarball.
f0733c
# Source1 is generated by running Source10, which pulls from the upstream
f0733c
# version control repository.
f0733c
Source1:	tests-%{version}.tar.bz2
f0733c
Source10:	dl-tests.sh
f0733c
f0733c
f0733c
ExclusiveArch:	%{nodejs_arches} noarch
f0733c
BuildArch:	noarch
f0733c
f0733c
BuildRequires:	nodejs010-runtime
f0733c
%if 0%{?enable_tests}
f0733c
BuildRequires:	%{?scl_prefix}npm(concat-map)
f0733c
BuildRequires:  %{?scl_prefix}npm(tape)
f0733c
%endif
f0733c
f0733c
Requires:	%{?scl_prefix}nodejs
f0733c
f0733c
%description
f0733c
Brace expansion as known from sh/bash
f0733c
f0733c
%prep
f0733c
%setup -q -n package
f0733c
# setup the tests
f0733c
%setup -q -T -D -a 1 -n package
f0733c
f0733c
%build
f0733c
# nothing to do!
f0733c
f0733c
%install
f0733c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
f0733c
cp -pr package.json *.js \
f0733c
	%{buildroot}%{nodejs_sitelib}/%{packagename}
f0733c
f0733c
%nodejs_symlink_deps
f0733c
f0733c
%if 0%{?enable_tests}
f0733c
f0733c
%check
f0733c
%nodejs_symlink_deps --check
f0733c
tape test/*.js
f0733c
%endif
f0733c
f0733c
%files
f0733c
%{!?_licensedir:%global license %doc}
f0733c
%doc *.md
f0733c
%{nodejs_sitelib}/%{packagename}
f0733c
f0733c
%changelog
f0733c
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.1.1-2
f0733c
- Enable scl macros
f0733c
f0733c
* Tue Oct 20 2015 Jared Smith <jsmith@fedoraproject.org> - 1.1.1-1
f0733c
- Initial packaging