|
|
86b18f |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
86b18f |
%{!?scl:%global pkg_name %{name}}
|
|
|
86b18f |
%{?nodejs_find_provides_and_requires}
|
|
|
86b18f |
|
|
|
86b18f |
# we have older version of coffee-script in fedora
|
|
|
86b18f |
%global enable_tests 0
|
|
|
86b18f |
%global module_name error-ex
|
|
|
86b18f |
%global gittag0 1.2.0
|
|
|
86b18f |
|
|
|
86b18f |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
86b18f |
Version: %{gittag0}
|
|
|
86b18f |
Release: 5%{?dist}
|
|
|
86b18f |
Summary: Easy error subclassing and stack customization
|
|
|
86b18f |
|
|
|
86b18f |
License: MIT
|
|
|
86b18f |
URL: https://github.com/Qix-/node-error-ex
|
|
|
86b18f |
Source0: https://github.com/Qix-/node-%{module_name}/archive/%{gittag0}.tar.gz#/%{module_name}-%{gittag0}.tar.gz
|
|
|
86b18f |
|
|
|
86b18f |
BuildArch: noarch
|
|
|
86b18f |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
86b18f |
|
|
|
86b18f |
BuildRequires: nodejs010-runtime
|
|
|
86b18f |
|
|
|
86b18f |
%if 0%{?enable_tests}
|
|
|
86b18f |
BuildRequires: %{?scl_prefix}coffee-script
|
|
|
86b18f |
BuildRequires: %{?scl_prefix}coveralls
|
|
|
86b18f |
BuildRequires: %{?scl_prefix}nodejs-istanbul
|
|
|
86b18f |
BuildRequires: %{?scl_prefix}mocha
|
|
|
86b18f |
BuildRequires: %{?scl_prefix}npm(should)
|
|
|
86b18f |
%endif
|
|
|
86b18f |
|
|
|
86b18f |
%description
|
|
|
86b18f |
%{summary}.
|
|
|
86b18f |
|
|
|
86b18f |
%prep
|
|
|
86b18f |
%setup -q -n node-%{module_name}-%{gittag0}
|
|
|
86b18f |
rm -rf node_modules
|
|
|
86b18f |
|
|
|
86b18f |
%build
|
|
|
86b18f |
# nothing to build
|
|
|
86b18f |
|
|
|
86b18f |
%install
|
|
|
86b18f |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
86b18f |
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
86b18f |
%nodejs_symlink_deps
|
|
|
86b18f |
|
|
|
86b18f |
%if 0%{?enable_tests}
|
|
|
86b18f |
|
|
|
86b18f |
%check
|
|
|
86b18f |
%nodejs_symlink_deps --check
|
|
|
86b18f |
mocha --compilers coffee:coffee-script/register
|
|
|
86b18f |
%endif
|
|
|
86b18f |
|
|
|
86b18f |
%files
|
|
|
86b18f |
%{!?_licensedir:%global license %doc}
|
|
|
86b18f |
%doc README.md
|
|
|
86b18f |
%license LICENSE
|
|
|
86b18f |
%{nodejs_sitelib}/%{module_name}
|
|
|
86b18f |
|
|
|
86b18f |
%changelog
|
|
|
86b18f |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.2.0-5
|
|
|
86b18f |
- rebuilt
|
|
|
86b18f |
|
|
|
86b18f |
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 1.2.0-4
|
|
|
86b18f |
- Enable scl macros
|
|
|
86b18f |
|
|
|
86b18f |
* Fri Sep 25 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.1.1-1
|
|
|
86b18f |
- Initial packaging
|