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

6b52d3
%{?scl:%scl_package nodejs-%{module_name}}
6b52d3
%{!?scl:%global pkg_name %{name}}
6b52d3
%{?nodejs_find_provides_and_requires}
6b52d3
6b52d3
%global enable_tests 0
6b52d3
%global module_name capture-stack-trace
6b52d3
#%global commit0 eb46ce326fa9074b6ce17a94d4b76500321a331f
6b52d3
#%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
6b52d3
6b52d3
Name:           %{?scl_prefix}nodejs-%{module_name}
6b52d3
Version:        1.0.0
6b52d3
Release:        11%{?dist}
6b52d3
Summary:        Error.captureStackTrace ponyfill
6b52d3
6b52d3
License:        MIT
6b52d3
URL:            https://github.com/floatdrop/capture-stack-trace
6b52d3
Source0:        https://github.com/floatdrop/%{module_name}/archive/v%{version}.tar.gz#/%{module_name}-%{version}.tar.gz
6b52d3
6b52d3
BuildArch:      noarch
6b52d3
ExclusiveArch:  %{nodejs_arches} noarch
6b52d3
6b52d3
BuildRequires:  %{?scl_prefix}nodejs-devel
6b52d3
6b52d3
%if 0%{?enable_tests}
6b52d3
BuildRequires:  %{?scl_prefix}npm(mocha)
6b52d3
%endif
6b52d3
6b52d3
%description
6b52d3
%{summary}.
6b52d3
6b52d3
%prep
6b52d3
%setup -q -n %{module_name}-%{version}
6b52d3
rm -rf node_modules
6b52d3
6b52d3
%build
6b52d3
# nothing to build
6b52d3
6b52d3
%install
6b52d3
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
6b52d3
cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
6b52d3
%nodejs_symlink_deps
6b52d3
6b52d3
%if 0%{?enable_tests}
6b52d3
6b52d3
%check
6b52d3
%nodejs_symlink_deps --check
6b52d3
mocha
6b52d3
%endif
6b52d3
6b52d3
%files
6b52d3
%{!?_licensedir:%global license %doc}
6b52d3
%doc readme.md
6b52d3
%license license
6b52d3
%{nodejs_sitelib}/%{module_name}
6b52d3
6b52d3
%changelog
6b52d3
* Fri Jul 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-11
6b52d3
- rh-nodejs8 rebuild
6b52d3
6b52d3
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-10
6b52d3
- Use proper macro in -runtime dependency
6b52d3
- use git tags
6b52d3
6b52d3
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-6
6b52d3
- Rebuilt with updated metapackage
6b52d3
6b52d3
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-5
6b52d3
- Enable scl macros
6b52d3
6b52d3
* Thu Aug 06 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-2
6b52d3
- fix summary macro
6b52d3
6b52d3
* Fri Jul 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
6b52d3
- Initial packaging