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