Blame SPECS/nodejs-map-stream.spec

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