Blame SPECS/nodejs-split.spec

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