Blame SPECS/nodejs-error-ex.spec

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