|
 |
a47b31 |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
 |
a47b31 |
%{!?scl:%global pkg_name %{name}}
|
|
 |
a47b31 |
%{?nodejs_find_provides_and_requires}
|
|
 |
a47b31 |
|
|
 |
a47b31 |
# Disabled as BR: for tests are not in fedora
|
|
 |
a47b31 |
%global enable_tests 0
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%global module_name map-stream
|
|
 |
a47b31 |
|
|
 |
a47b31 |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
 |
a47b31 |
Version: 0.1.0
|
|
 |
a47b31 |
Release: 7%{?dist}
|
|
 |
a47b31 |
Summary: Construct pipes of streams of events
|
|
 |
a47b31 |
|
|
 |
a47b31 |
License: MIT
|
|
 |
a47b31 |
URL: http:
|
|
 |
a47b31 |
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
 |
a47b31 |
BuildArch: noarch
|
|
 |
a47b31 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
 |
a47b31 |
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%if 0%{?enable_tests}
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(asynct)
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(it-is)
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(ubelt)
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(stream-spec)
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(event-stream)
|
|
 |
a47b31 |
BuildRequires: %{?scl_prefix}npm(from)
|
|
 |
a47b31 |
%endif
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%description
|
|
 |
a47b31 |
%{summary}.
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%prep
|
|
 |
a47b31 |
%setup -q -n package
|
|
 |
a47b31 |
rm -rf node_modules
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%build
|
|
 |
a47b31 |
# nothing to build
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%install
|
|
 |
a47b31 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
 |
a47b31 |
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%nodejs_symlink_deps
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%if 0%{?enable_tests}
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%check
|
|
 |
a47b31 |
%nodejs_symlink_deps --check
|
|
 |
a47b31 |
asynct test
|
|
 |
a47b31 |
%endif
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%files
|
|
 |
a47b31 |
%doc readme.markdown LICENCE examples
|
|
 |
a47b31 |
%{nodejs_sitelib}/%{module_name}
|
|
 |
a47b31 |
|
|
 |
a47b31 |
%changelog
|
|
 |
a47b31 |
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-7
|
|
 |
a47b31 |
- rh-nodejs8 rebuild
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-6
|
|
 |
a47b31 |
- Use macro in -runtime dependency
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.0-5
|
|
 |
a47b31 |
- Rebuilt with updated metapackage
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.0-4
|
|
 |
a47b31 |
- Enable find provides and requires macro
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.0-3
|
|
 |
a47b31 |
- Enable scl macros
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
|
|
 |
a47b31 |
- Rebuilt for https:
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Thu Dec 25 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.0-1
|
|
 |
a47b31 |
- Update to 0.1.0
|
|
 |
a47b31 |
|
|
 |
a47b31 |
* Tue Dec 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.5-1
|
|
 |
a47b31 |
- Initial packaging
|