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

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