|
|
43a34f |
%{?scl:%scl_package nodejs-%{srcname}}
|
|
|
43a34f |
%{!?scl:%global pkg_name %{name}}
|
|
|
43a34f |
|
|
|
43a34f |
# This macro is needed at the start for building on EL6
|
|
|
43a34f |
%{?nodejs_find_provides_and_requires}
|
|
|
43a34f |
|
|
|
43a34f |
# tests disabled due to circular dep, can be enabled later
|
|
|
43a34f |
%global enable_tests 0
|
|
|
43a34f |
%global srcname set-immediate-shim
|
|
|
43a34f |
|
|
|
43a34f |
Name: %{?scl_prefix}nodejs-%{srcname}
|
|
|
43a34f |
Version: 1.0.1
|
|
|
d86c30 |
Release: 6%{?dist}
|
|
|
43a34f |
Summary: Simple setImmediate shim
|
|
|
43a34f |
License: MIT
|
|
|
43a34f |
URL: https://github.com/sindresorhus/set-immediate-shim
|
|
|
43a34f |
Source0: https://github.com/sindresorhus/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
43a34f |
|
|
|
43a34f |
BuildArch: noarch
|
|
|
43a34f |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
43a34f |
|
|
|
43a34f |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
43a34f |
|
|
|
43a34f |
%if 0%{?enable_tests}
|
|
|
43a34f |
BuildRequires: %{?scl_prefix}npm(ava)
|
|
|
43a34f |
BuildRequires: %{?scl_prefix}npm(require-uncached)
|
|
|
43a34f |
%endif
|
|
|
43a34f |
|
|
|
43a34f |
%description
|
|
|
43a34f |
%{summary}.
|
|
|
43a34f |
|
|
|
43a34f |
%prep
|
|
|
43a34f |
%setup -q -n %{srcname}-%{version}
|
|
|
43a34f |
rm -rf node_modules/
|
|
|
43a34f |
|
|
|
43a34f |
%build
|
|
|
43a34f |
#nothing to do
|
|
|
43a34f |
|
|
|
43a34f |
%install
|
|
|
43a34f |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
43a34f |
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{srcname}
|
|
|
43a34f |
|
|
|
43a34f |
%nodejs_symlink_deps
|
|
|
43a34f |
|
|
|
43a34f |
|
|
|
43a34f |
%if 0%{?enable_tests}
|
|
|
43a34f |
|
|
|
43a34f |
%check
|
|
|
43a34f |
%nodejs_symlink_deps --check
|
|
|
43a34f |
node test.js
|
|
|
43a34f |
%endif
|
|
|
43a34f |
|
|
|
43a34f |
%files
|
|
|
43a34f |
%doc readme.md
|
|
|
43a34f |
%license license
|
|
|
43a34f |
%{nodejs_sitelib}/%{srcname}
|
|
|
43a34f |
|
|
|
43a34f |
%changelog
|
|
|
d86c30 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-6
|
|
|
d86c30 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
d86c30 |
|
|
|
43a34f |
* Tue Jan 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-5
|
|
|
43a34f |
- Rebuild for RHSCL
|
|
|
43a34f |
|
|
|
43a34f |
* Mon Jun 27 2016 Tom Hughes <tom@compton.nu> - 1.0.1-4
|
|
|
43a34f |
- Update source to actually be 1.0.1 not 1.0.0
|
|
|
43a34f |
|
|
|
43a34f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
|
|
|
43a34f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
43a34f |
|
|
|
43a34f |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
43a34f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
43a34f |
|
|
|
43a34f |
* Mon May 25 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.1-1
|
|
|
43a34f |
- Update to 1.0.1
|
|
|
43a34f |
|
|
|
43a34f |
* Sun Mar 8 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.0.0-2
|
|
|
43a34f |
- Update Source0 to comply with github source guidelines
|
|
|
43a34f |
- Move license from %%doc to %%license
|
|
|
43a34f |
|
|
|
43a34f |
* Wed Dec 31 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.0.0-1
|
|
|
43a34f |
- Initial package
|