|
|
64ca38 |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
64ca38 |
%{!?scl:%global pkg_name %{name}}
|
|
|
64ca38 |
%{?nodejs_find_provides_and_requires}
|
|
|
64ca38 |
|
|
|
64ca38 |
%global enable_tests 0
|
|
|
64ca38 |
%global module_name duplexer
|
|
|
64ca38 |
|
|
|
64ca38 |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
64ca38 |
Version: 0.1.1
|
|
|
64ca38 |
Release: 6%{?dist}
|
|
|
64ca38 |
Summary: Creates a duplex stream
|
|
|
64ca38 |
|
|
|
64ca38 |
License: MIT
|
|
|
64ca38 |
URL: https://github.com/Raynos/duplexer
|
|
|
64ca38 |
Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
|
|
|
64ca38 |
BuildArch: noarch
|
|
|
64ca38 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
64ca38 |
|
|
|
64ca38 |
BuildRequires: %{?scl_prefix}runtime
|
|
|
64ca38 |
|
|
|
64ca38 |
%if 0%{?enable_tests}
|
|
|
64ca38 |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
64ca38 |
BuildRequires: %{?scl_prefix}npm(through)
|
|
|
64ca38 |
%endif
|
|
|
64ca38 |
|
|
|
64ca38 |
%description
|
|
|
64ca38 |
%{summary}.
|
|
|
64ca38 |
|
|
|
64ca38 |
%prep
|
|
|
64ca38 |
%setup -q -n package
|
|
|
64ca38 |
rm -rf node_modules
|
|
|
64ca38 |
|
|
|
64ca38 |
%build
|
|
|
64ca38 |
# nothing to build
|
|
|
64ca38 |
|
|
|
64ca38 |
%install
|
|
|
64ca38 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
64ca38 |
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
64ca38 |
%nodejs_symlink_deps
|
|
|
64ca38 |
|
|
|
64ca38 |
%if 0%{?enable_tests}
|
|
|
64ca38 |
|
|
|
64ca38 |
%check
|
|
|
64ca38 |
%nodejs_symlink_deps --check
|
|
|
64ca38 |
node test
|
|
|
64ca38 |
%endif
|
|
|
64ca38 |
|
|
|
64ca38 |
%files
|
|
|
64ca38 |
%doc README.md LICENCE
|
|
|
64ca38 |
%{nodejs_sitelib}/%{module_name}
|
|
|
64ca38 |
|
|
|
64ca38 |
%changelog
|
|
|
64ca38 |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.1-6
|
|
|
64ca38 |
- Use macro in -runtime dependency
|
|
|
64ca38 |
|
|
|
64ca38 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.1-5
|
|
|
64ca38 |
- Rebuilt with updated metapackage
|
|
|
64ca38 |
|
|
|
64ca38 |
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-4
|
|
|
64ca38 |
- Enable find provides and requires macro
|
|
|
64ca38 |
|
|
|
64ca38 |
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-3
|
|
|
64ca38 |
- Enable scl macros
|
|
|
64ca38 |
|
|
|
64ca38 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
|
|
|
64ca38 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
64ca38 |
|
|
|
64ca38 |
* Tue Dec 09 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.1.1-1
|
|
|
64ca38 |
- Initial packaging
|