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

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