Blame SPECS/nodejs-capture-stack-trace.spec

c80970
%{?scl:%scl_package nodejs-%{module_name}}
c80970
%{!?scl:%global pkg_name %{name}}
c80970
%{?nodejs_find_provides_and_requires}
c80970
c80970
%global enable_tests 0
c80970
%global module_name capture-stack-trace
c80970
%global commit0 eb46ce326fa9074b6ce17a94d4b76500321a331f
c80970
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
c80970
c80970
Name:           %{?scl_prefix}nodejs-%{module_name}
c80970
Version:        1.0.0
c80970
Release:        5%{?dist}
c80970
Summary:        Error.captureStackTrace ponyfill
c80970
c80970
License:        MIT
c80970
URL:            https://github.com/floatdrop/capture-stack-trace
c80970
Source0:        https://github.com/floatdrop/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz
c80970
c80970
BuildArch:      noarch
c80970
ExclusiveArch:  %{nodejs_arches} noarch
c80970
c80970
BuildRequires:  nodejs010-runtime
c80970
c80970
%if 0%{?enable_tests}
c80970
BuildRequires:  %{?scl_prefix}npm(mocha)
c80970
%endif
c80970
c80970
%description
c80970
%{summary}.
c80970
c80970
%prep
c80970
%setup -q -n %{module_name}-%{commit0}
c80970
rm -rf node_modules
c80970
c80970
%build
c80970
# nothing to build
c80970
c80970
%install
c80970
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
c80970
cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
c80970
%nodejs_symlink_deps
c80970
c80970
%if 0%{?enable_tests}
c80970
c80970
%check
c80970
%nodejs_symlink_deps --check
c80970
mocha
c80970
%endif
c80970
c80970
%files
c80970
%{!?_licensedir:%global license %doc}
c80970
%doc readme.md
c80970
%license license
c80970
%{nodejs_sitelib}/%{module_name}
c80970
c80970
%changelog
c80970
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-5
c80970
- Enable scl macros
c80970
c80970
* Thu Aug 06 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-2
c80970
- fix summary macro
c80970
c80970
* Fri Jul 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
c80970
- Initial packaging