Blame SPECS/nodejs-balanced-match.spec

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