6a2a2b8
%{?nodejs_find_provides_and_requires}
6a2a2b8
6a2a2b8
%global enable_tests 1
6a2a2b8
6a2a2b8
Name:       nodejs-zlib-browserify
6a2a2b8
Version:    0.0.3
b18d93d
Release:    2%{?dist}
6a2a2b8
Summary:    Wrapper for zlib.js to allow for use in browsers
6a2a2b8
License:    MIT
6a2a2b8
Group:      System Environment/Libraries
6a2a2b8
URL:        https://github.com/brianloveswords/zlib-browserify
6a2a2b8
Source0:    http://registry.npmjs.org/zlib-browserify/-/zlib-browserify-%{version}.tgz
6a2a2b8
6a2a2b8
# Use npm(zlibjs) instead of bundled zlib.js.
6a2a2b8
# https://github.com/brianloveswords/zlib-browserify/pull/11
6a2a2b8
Patch0:     %{name}-0.0.3-Use-zlibjs-module.patch
6a2a2b8
6a2a2b8
BuildArch:  noarch
6a2a2b8
ExclusiveArch: %{nodejs_arches} noarch
6a2a2b8
6a2a2b8
BuildRequires:  nodejs-packaging
6a2a2b8
6a2a2b8
%if 0%{?enable_tests}
6a2a2b8
BuildRequires:  npm(tap)
6a2a2b8
BuildRequires:  npm(tape)
6a2a2b8
BuildRequires:  npm(zlibjs)
6a2a2b8
%endif
6a2a2b8
6a2a2b8
%description
6a2a2b8
%{summary}.
6a2a2b8
6a2a2b8
6a2a2b8
%prep
6a2a2b8
%setup -q -n package
6a2a2b8
%patch0 -p1
6a2a2b8
# This module is not required for runtime.
6a2a2b8
%nodejs_fixdep -r tape
6a2a2b8
6a2a2b8
6a2a2b8
%build
6a2a2b8
#nothing to do
6a2a2b8
6a2a2b8
6a2a2b8
%install
6a2a2b8
mkdir -p %{buildroot}%{nodejs_sitelib}/zlib-browserify
6a2a2b8
cp -pr package.json index.js \
6a2a2b8
    %{buildroot}%{nodejs_sitelib}/zlib-browserify
6a2a2b8
6a2a2b8
%nodejs_symlink_deps
6a2a2b8
6a2a2b8
6a2a2b8
%if 0%{?enable_tests}
6a2a2b8
%check
6a2a2b8
%nodejs_symlink_deps --check
6a2a2b8
%tap test/*.test.js
6a2a2b8
%endif
6a2a2b8
6a2a2b8
6a2a2b8
%files
6a2a2b8
%doc LICENSE readme.md
6a2a2b8
%{nodejs_sitelib}/zlib-browserify
6a2a2b8
6a2a2b8
6a2a2b8
%changelog
b18d93d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-2
b18d93d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b18d93d
6a2a2b8
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.3-1
6a2a2b8
- update to upstream release 0.0.3
6a2a2b8
- patch to use npm(zlibjs) module
6a2a2b8
6a2a2b8
* Fri Jun 21 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.0.1-1
6a2a2b8
- initial package