|
|
b08b72 |
%{?scl:%scl_package nodejs-%{module_name}}
|
|
|
b08b72 |
%{!?scl:%global pkg_name %{name}}
|
|
|
b08b72 |
%{?nodejs_find_provides_and_requires}
|
|
|
b08b72 |
|
|
|
b08b72 |
%global enable_tests 0
|
|
|
b08b72 |
%global module_name unzip-response
|
|
|
b08b72 |
%global commit0 7043fa2fbdc36d84a25dc398dc5f323b9f1747ce
|
|
|
b08b72 |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
b08b72 |
|
|
|
b08b72 |
Name: %{?scl_prefix}nodejs-%{module_name}
|
|
|
b08b72 |
Version: 1.0.0
|
|
|
c13fe2 |
Release: 6%{?dist}
|
|
|
b08b72 |
Summary: Unzip a HTTP response if needed
|
|
|
b08b72 |
|
|
|
b08b72 |
License: MIT
|
|
|
b08b72 |
URL: https://github.com/sindresorhus/is-plain-obj
|
|
|
b08b72 |
Source0: https://github.com/sindresorhus/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz
|
|
|
b08b72 |
|
|
|
b08b72 |
BuildArch: noarch
|
|
|
b08b72 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
b08b72 |
|
|
|
b08b72 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
b08b72 |
|
|
|
b08b72 |
%if 0%{?enable_tests}
|
|
|
b08b72 |
BuildRequires: %{?scl_prefix}npm(concat-stream)
|
|
|
b08b72 |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
b08b72 |
%endif
|
|
|
b08b72 |
|
|
|
b08b72 |
%description
|
|
|
b08b72 |
Unzips the response from http.request if it's gzipped/deflated, otherwise
|
|
|
b08b72 |
just passes it through.
|
|
|
b08b72 |
|
|
|
b08b72 |
%prep
|
|
|
b08b72 |
%setup -q -n %{module_name}-%{commit0}
|
|
|
b08b72 |
rm -rf node_modules
|
|
|
b08b72 |
|
|
|
b08b72 |
%build
|
|
|
b08b72 |
# nothing to build
|
|
|
b08b72 |
|
|
|
b08b72 |
%install
|
|
|
b08b72 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
b08b72 |
cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|
|
b08b72 |
%nodejs_symlink_deps
|
|
|
b08b72 |
|
|
|
b08b72 |
%if 0%{?enable_tests}
|
|
|
b08b72 |
|
|
|
b08b72 |
%check
|
|
|
b08b72 |
%nodejs_symlink_deps --check
|
|
|
b08b72 |
node test/test.js
|
|
|
b08b72 |
%endif
|
|
|
b08b72 |
|
|
|
b08b72 |
%files
|
|
|
b08b72 |
%{!?_licensedir:%global license %doc}
|
|
|
b08b72 |
%doc readme.md
|
|
|
b08b72 |
%license license
|
|
|
b08b72 |
%{nodejs_sitelib}/%{module_name}
|
|
|
b08b72 |
|
|
|
b08b72 |
%changelog
|
|
|
c13fe2 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-6
|
|
|
c13fe2 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
c13fe2 |
|
|
|
b08b72 |
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-5
|
|
|
b08b72 |
- Use macro in -runtime dependency
|
|
|
b08b72 |
|
|
|
b08b72 |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
|
|
|
b08b72 |
- Rebuilt with updated metapackage
|
|
|
b08b72 |
|
|
|
b08b72 |
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-3
|
|
|
b08b72 |
- Use macro to find provides and requires
|
|
|
b08b72 |
|
|
|
b08b72 |
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
|
|
|
b08b72 |
- Enable scl macros, fix license macro for el6
|
|
|
b08b72 |
|
|
|
b08b72 |
* Fri Jul 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
|
|
|
b08b72 |
- Initial packaging
|