Blame SPECS/nodejs-from.spec

4ba359
%{?scl:%scl_package nodejs-%{module_name}}
4ba359
%{!?scl:%global pkg_name %{name}}
4ba359
%{?nodejs_find_provides_and_requires}
4ba359
4ba359
# Disabled as BR: for tests are not in fedora
4ba359
%global enable_tests 0
4ba359
4ba359
%global module_name from
4ba359
4ba359
Name:           %{?scl_prefix}nodejs-%{module_name}
4ba359
Version:        0.1.3
4ba359
Release:        6%{?dist}
4ba359
Summary:        Easy way to make a Readable Stream
4ba359
4ba359
License:        MIT or ASL 2.0
4ba359
URL:            http://github.com/dominictarr/from
4ba359
Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
4ba359
BuildArch:      noarch
4ba359
ExclusiveArch:  %{nodejs_arches} noarch
4ba359
4ba359
BuildRequires:  %{?scl_prefix}runtime
4ba359
4ba359
%if 0%{?enable_tests}
4ba359
BuildRequires:  %{?scl_prefix}npm(asynct)
4ba359
BuildRequires:  %{?scl_prefix}npm(stream-spec)
4ba359
BuildRequires:  %{?scl_prefix}npm(assertions)
4ba359
%endif
4ba359
4ba359
%description
4ba359
%{summary}.
4ba359
4ba359
%prep
4ba359
%setup -q -n package
4ba359
rm -rf node_modules
4ba359
4ba359
%build
4ba359
# nothing to build
4ba359
4ba359
%install
4ba359
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
4ba359
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
4ba359
4ba359
%nodejs_symlink_deps
4ba359
4ba359
%if 0%{?enable_tests}
4ba359
4ba359
%check
4ba359
%nodejs_symlink_deps --check
4ba359
asynct test/*.js
4ba359
%endif
4ba359
4ba359
%files
4ba359
%{!?_licensedir:%global license %doc}
4ba359
%doc readme.markdown LICENSE.MIT LICENSE.APACHE2
4ba359
%{nodejs_sitelib}/%{module_name}
4ba359
4ba359
%changelog
4ba359
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-6
4ba359
- Use macro in -runtime dependency
4ba359
4ba359
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.3-5
4ba359
- Rebuilt with updated metapackage
4ba359
4ba359
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.3-4
4ba359
- Use macro to find provides and requires
4ba359
4ba359
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.3-3
4ba359
- Enable scl macros, fix license macro for el6
4ba359
4ba359
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
4ba359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4ba359
4ba359
* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.3-1
4ba359
- Initial packaging