Blame SPECS/nodejs-pinkie.spec

d5f583
%{?scl:%scl_package nodejs-%{module_name}}
d5f583
%{!?scl:%global pkg_name %{name}}
d5f583
%{?nodejs_find_provides_and_requires}
d5f583
d5f583
%global enable_tests 0
d5f583
%global module_name pinkie
d5f583
d5f583
Name:           %{?scl_prefix}nodejs-%{module_name}
d5f583
Version:    2.0.4
d5f583
Release:    2%{?dist}
d5f583
Summary:        Itty bitty little widdle twinkie pinkie ES6 Promise implementation
d5f583
d5f583
License:        MIT
d5f583
URL:            https://github.com/floatdrop/pinkie
d5f583
Source0:        https://github.com/floatdrop/%{module_name}/archive/v%{version}.tar.gz
d5f583
BuildArch:      noarch
d5f583
ExclusiveArch:  %{nodejs_arches} noarch
d5f583
d5f583
BuildRequires:  %{?scl_prefix}runtime
d5f583
d5f583
%if 0%{?enable_tests}
d5f583
BuildRequires:  %{?scl_prefix}npm(mocha)
d5f583
%endif
d5f583
d5f583
%description
d5f583
%{summary}.
d5f583
d5f583
%prep
d5f583
%setup -q -n %{module_name}-%{version}
d5f583
rm -rf node_modules
d5f583
d5f583
%build
d5f583
# nothing to build
d5f583
d5f583
%install
d5f583
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
d5f583
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
d5f583
%nodejs_symlink_deps
d5f583
d5f583
%if 0%{?enable_tests}
d5f583
d5f583
%check
d5f583
%nodejs_symlink_deps --check
d5f583
mocha
d5f583
%endif
d5f583
d5f583
%files
d5f583
%{!?_licensedir:%global license %doc}
d5f583
%doc readme.md 
d5f583
%license license
d5f583
%{nodejs_sitelib}/%{module_name}
d5f583
d5f583
%changelog
d5f583
* Fri Jul 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.4-2
d5f583
- rh-nodejs8 rebuild
d5f583
d5f583
* Wed Sep 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.4-1
d5f583
- Updated with script
d5f583
d5f583
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-6
d5f583
- Use macro in -runtime dependency
d5f583
d5f583
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.1-5
d5f583
- Rebuilt with updated metapackage
d5f583
d5f583
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.1-4
d5f583
- Enable scl macros
d5f583
d5f583
* Mon Nov 23 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.0.1-1
d5f583
- update to 2.0.1
d5f583
d5f583
* Wed Jul 15 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
d5f583
- Initial packaging