Blame SPECS/nodejs-create-error-class.spec

3f6df1
%{?scl:%scl_package nodejs-%{module_name}}
3f6df1
%{!?scl:%global pkg_name %{name}}
3f6df1
%{?nodejs_find_provides_and_requires}
3f6df1
3f6df1
%global enable_tests 0
3f6df1
%global module_name create-error-class
3f6df1
%global commit0 bec0186ac350c5b89b1707d395c23a5a080b4f45
3f6df1
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
3f6df1
3f6df1
Name:           %{?scl_prefix}nodejs-%{module_name}
3f6df1
Version:        2.0.1
3f6df1
Release:        4%{?dist}
3f6df1
Summary:        Create Error classes
3f6df1
3f6df1
License:        MIT
3f6df1
URL:            https://github.com/floatdrop/create-error-class
3f6df1
Source0:        https://github.com/floatdrop/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz
3f6df1
3f6df1
BuildArch:      noarch
3f6df1
ExclusiveArch:  %{nodejs_arches} noarch
3f6df1
3f6df1
BuildRequires:  nodejs010-runtime
3f6df1
3f6df1
%if 0%{?enable_tests}
3f6df1
BuildRequires:  %{?scl_prefix}npm(inherits)
3f6df1
BuildRequires:  %{?scl_prefix}npm(capture-stack-trace)
3f6df1
BuildRequires:  %{?scl_prefix}npm(mocha)
3f6df1
%endif
3f6df1
3f6df1
%description
3f6df1
%{summary}.
3f6df1
3f6df1
%prep
3f6df1
%setup -q -n %{module_name}-%{commit0}
3f6df1
rm -rf node_modules
3f6df1
3f6df1
%nodejs_fixdep inherits
3f6df1
3f6df1
%build
3f6df1
# nothing to build
3f6df1
3f6df1
%install
3f6df1
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
3f6df1
cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
3f6df1
%nodejs_symlink_deps
3f6df1
3f6df1
%if 0%{?enable_tests}
3f6df1
3f6df1
%check
3f6df1
%nodejs_symlink_deps --check
3f6df1
mocha
3f6df1
%endif
3f6df1
3f6df1
%files
3f6df1
%{!?_licensedir:%global license %doc}
3f6df1
%doc readme.md
3f6df1
%license license
3f6df1
%{nodejs_sitelib}/%{module_name}
3f6df1
3f6df1
%changelog
3f6df1
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-4
3f6df1
- Use macro to find provides and requires
3f6df1
3f6df1
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-3
3f6df1
- Enable scl macros, fix license macro for el6
3f6df1
3f6df1
* Thu Aug 06 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.0.1-2
3f6df1
- Add missing BuildRequires
3f6df1
- fix summary macro
3f6df1
- correct check section
3f6df1
3f6df1
* Thu Jul 30 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.0.1-1
3f6df1
- Initial packaging