Blame nodejs-tar-stream.spec

9a06b02
%global enable_tests 1
9a06b02
%global srcname tar-stream
9a06b02
9a06b02
Name:           nodejs-%{srcname}
89506ea
Version:        1.5.2
369bf60
Release:        2%{?dist}
9a06b02
Summary:        A streaming tar parser and generator
9a06b02
License:        MIT
9a06b02
URL:            https://github.com/mafintosh/tar-stream
92f70db
Source0:        https://github.com/mafintosh/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
9a06b02
9a06b02
BuildArch:      noarch
9a06b02
ExclusiveArch:  %{nodejs_arches} noarch
9a06b02
9a06b02
BuildRequires:  nodejs-packaging
9a06b02
9a06b02
%if 0%{?enable_tests}
9a06b02
BuildRequires:  npm(tape)
9a06b02
BuildRequires:  npm(bl)
9a06b02
BuildRequires:  npm(xtend)
9a06b02
BuildRequires:  npm(end-of-stream)
9a06b02
BuildRequires:  npm(concat-stream)
9a06b02
%endif
9a06b02
9a06b02
9a06b02
%description
9a06b02
tar-stream is a streaming tar parser and generator and nothing else. It is 
9a06b02
streams2 and operates purely using streams which means you can easily 
9a06b02
extract/parse tarballs without ever hitting the file system.
9a06b02
9a06b02
9a06b02
%prep
89506ea
%autosetup -n %{srcname}-%{version}
9a06b02
rm -rf node_modules/
666be88
%nodejs_fixdep readable-stream
9a06b02
9a06b02
9a06b02
%build
9a06b02
#nothing to do
9a06b02
9a06b02
9a06b02
%install
9a06b02
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
9a06b02
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{srcname}
b9a04c6
9a06b02
%nodejs_symlink_deps
9a06b02
9a06b02
9a06b02
%check
9a06b02
%nodejs_symlink_deps --check
89506ea
%{__nodejs} -e 'require("./")'
89506ea
%if 0%{?enable_tests}
9a06b02
tape test/*.js
9a06b02
%endif
9a06b02
9a06b02
9a06b02
%files
92f70db
%doc README.md
92f70db
%license LICENSE
9a06b02
%{nodejs_sitelib}/%{srcname}
9a06b02
9a06b02
9a06b02
%changelog
369bf60
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
369bf60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
369bf60
89506ea
* Sat Feb 18 2017 Piotr Popieluch <piotr1212@gmail.com> - 1.5.2-1
89506ea
- Update
89506ea
717c120
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
717c120
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
717c120
5706506
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
5706506
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5706506
d78735e
* Mon Dec 14 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.3.1-1
d78735e
- Update to 1.3.1
d78735e
398fd32
* Fri Oct 23 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2.2-1
398fd32
- Update to 1.2.2
398fd32
666be88
* Mon Jul 27 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2.1-4
666be88
- lighten fixdep npm(readable-stream)
666be88
a30ae69
* Fri Jul 24 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2.1-3
a30ae69
- move fixdep to %%prep
a30ae69
b9a04c6
* Thu Jul 23 2015 Parag Nemade <pnemade AT fedoraproject DOT org> - 1.2.1-2
b9a04c6
- fixdep npm(readable-stream)
b9a04c6
5926eaf
* Mon Jul 13 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2.1-1
5926eaf
- update to 1.2.1
5926eaf
9513b1c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
9513b1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9513b1c
92f70db
* Sun Feb  8 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.1.2-1
92f70db
- update to 1.1.2
92f70db
9a06b02
* Mon Dec 22 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.1-1
9a06b02
- Initial package