Blame SPECS/nodejs-is-stream.spec

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