Blame SPECS/nodejs-balanced-match.spec

3542ec
%{?scl:%scl_package nodejs-balanced-match}
3542ec
%{!?scl:%global pkg_name %{name}}
3542ec
3542ec
%{?nodejs_find_provides_and_requires}
3542ec
3542ec
%global packagename balanced-match
3542ec
%global enable_tests 0
3542ec
# tests disabled to to reliance on ancient version of 'tape'
3542ec
3542ec
Name:		%{?scl_prefix}nodejs-balanced-match
3542ec
Version:	0.2.1
3542ec
Release:	2%{?dist}
3542ec
Summary:	Match balanced character pairs, like "{" and "}"
3542ec
3542ec
License:	MIT
3542ec
URL:		https://github.com/juliangruber/balanced-match.git
3542ec
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
3542ec
3542ec
ExclusiveArch:	%{nodejs_arches} noarch
3542ec
BuildArch:	noarch
3542ec
3542ec
BuildRequires:	nodejs010-runtime
3542ec
%if 0%{?enable_tests}
3542ec
BuildRequires:	%{?scl_prefix}mocha
3542ec
%endif
3542ec
3542ec
Requires:	%{?scl_prefix}nodejs
3542ec
3542ec
%description
3542ec
Match balanced character pairs, like "{" and "}"
3542ec
3542ec
%prep
3542ec
%setup -q -n package
3542ec
# setup the tests
3542ec
#%setup -q -T -D -a 1 -n package
3542ec
3542ec
%build
3542ec
# nothing to do!
3542ec
3542ec
%install
3542ec
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
3542ec
cp -pr package.json *.js \
3542ec
	%{buildroot}%{nodejs_sitelib}/%{packagename}
3542ec
3542ec
%nodejs_symlink_deps
3542ec
3542ec
%if 0%{?enable_tests}
3542ec
3542ec
%check
3542ec
%nodejs_symlink_deps --check
3542ec
%{?scl:scl enable %{scl} - << \EOF}
3542ec
make test
3542ec
%{?scl:EOF}
3542ec
%endif
3542ec
3542ec
%files
3542ec
%{!?_licensedir:%global license %doc}
3542ec
%doc README.md
3542ec
%license LICENSE.md
3542ec
%{nodejs_sitelib}/%{packagename}
3542ec
3542ec
%changelog
3542ec
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 0.2.1-2
3542ec
- Enable scl macros
3542ec
3542ec
* Tue Oct 20 2015 Jared Smith <jsmith@fedoraproject.org> - 0.2.0-1
3542ec
- Initial packaging