Blame SPECS/nodejs-is-stream.spec

b0af28
%{?scl:%scl_package nodejs-%{module_name}}
b0af28
%{!?scl:%global pkg_name %{name}}
b0af28
%{?nodejs_find_provides_and_requires}
b0af28
b0af28
# ava module not in fedora yet
b0af28
%global enable_tests 0
b0af28
%global module_name is-stream
b0af28
b0af28
Name:           %{?scl_prefix}nodejs-%{module_name}
b0af28
Version:        1.0.1
b0af28
Release:        5%{?dist}
b0af28
Summary:        Check if something is a Node.js stream
b0af28
b0af28
License:        MIT
b0af28
URL:            https://github.com/sindresorhus/is-stream
b0af28
Source0:        https://github.com/sindresorhus/is-stream/archive/v%{version}.tar.gz
b0af28
BuildArch:      noarch
b0af28
ExclusiveArch:  %{nodejs_arches} noarch
b0af28
b0af28
BuildRequires:  nodejs010-runtime
b0af28
b0af28
%if 0%{?enable_tests}
b0af28
BuildRequires:  %{?scl_prefix}npm(ava)
b0af28
BuildRequires:  %{?scl_prefix}npm(tempfile)
b0af28
%endif
b0af28
b0af28
%description
b0af28
%{summary}.
b0af28
b0af28
%prep
b0af28
%setup -q -n %{module_name}-%{version}
b0af28
rm -rf node_modules
b0af28
b0af28
%build
b0af28
# nothing to build
b0af28
b0af28
%install
b0af28
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
b0af28
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
b0af28
b0af28
%nodejs_symlink_deps
b0af28
b0af28
%if 0%{?enable_tests}
b0af28
b0af28
%check
b0af28
%nodejs_symlink_deps --check
b0af28
node test.js
b0af28
%endif
b0af28
b0af28
%files
b0af28
%{!?_licensedir:%global license %doc}
b0af28
%doc readme.md
b0af28
%license license
b0af28
%{nodejs_sitelib}/%{module_name}
b0af28
b0af28
%changelog
b0af28
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-5
b0af28
- rebuilt
b0af28
b0af28
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-4
b0af28
- Use macro to find provides and requires
b0af28
b0af28
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
b0af28
- Enable scl macros, fix license macro for el6
b0af28
b0af28
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
b0af28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b0af28
b0af28
* Sat Jan 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.1-1
b0af28
- Initial packaging