Blame SPECS/nodejs-split.spec

69c623
%{?scl:%scl_package nodejs-%{module_name}}
69c623
%{!?scl:%global pkg_name %{name}}
69c623
%{?nodejs_find_provides_and_requires}
69c623
69c623
# Disabled as BR: for tests are not in fedora
69c623
%global enable_tests 0
69c623
69c623
%global module_name split
69c623
69c623
Name:           %{?scl_prefix}nodejs-%{module_name}
69c623
Version:        0.3.3
69c623
Release:        8%{?dist}
69c623
Summary:        Split a text stream into a line stream
69c623
69c623
License:        MIT
69c623
URL:            https://github.com/dominictarr/split
69c623
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
69c623
BuildArch:      noarch
69c623
ExclusiveArch:  %{nodejs_arches} noarch
69c623
69c623
BuildRequires:  %{?scl_prefix}runtime
69c623
69c623
%if 0%{?enable_tests}
69c623
BuildRequires:  %{?scl_prefix}npm(asynct)
69c623
BuildRequires:  %{?scl_prefix}npm(it-is)
69c623
BuildRequires:  %{?scl_prefix}npm(ubelt)
69c623
BuildRequires:  %{?scl_prefix}npm(stream-spec)
69c623
BuildRequires:  %{?scl_prefix}npm(event-stream)
69c623
BuildRequires:  %{?scl_prefix}npm(string-to-stream)
69c623
%endif
69c623
69c623
%description
69c623
Break up a stream and reassemble it so that each line is a chunk.
69c623
matcher may be a String, or a RegExp.
69c623
69c623
%prep
69c623
%setup -q -n package
69c623
rm -rf node_modules
69c623
69c623
%build
69c623
# nothing to build
69c623
69c623
%install
69c623
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
69c623
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
69c623
69c623
%nodejs_symlink_deps
69c623
69c623
%if 0%{?enable_tests}
69c623
69c623
%check
69c623
%nodejs_symlink_deps --check
69c623
asynct test
69c623
%endif
69c623
69c623
%files
69c623
%doc readme.markdown LICENCE examples
69c623
%{nodejs_sitelib}/%{module_name}
69c623
69c623
%changelog
69c623
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.3.3-8
69c623
- rh-nodejs8 rebuild
69c623
69c623
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.3.3-7
69c623
- Use macro in -runtime dependency
69c623
69c623
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.3.3-6
69c623
- Rebuilt with updated metapackage
69c623
69c623
* Fri Jan 15 2016 Tomas Hrcka <thrcka@redhat.com> - 0.3.3-5
69c623
- Enable find_provides_and_requires macro
69c623
69c623
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.3.3-3
69c623
- Enable scl macros
69c623
69c623
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-2
69c623
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
69c623
69c623
* Thu Feb 12 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.3.3-1
69c623
- update to 0.3.3 upstream release
69c623
69c623
* Tue Dec 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.3.2-1
69c623
- Initial packaging