Blame SPECS/nodejs-fs-write-stream-atomic.spec

c0e266
%{?scl:%scl_package nodejs-fs-write-stream-atomic}
c0e266
%{!?scl:%global pkg_name %{name}}
c0e266
c0e266
# spec file for package nodejs-nodejs-fs-write-stream-atomic
c0e266
c0e266
%global npm_name fs-write-stream-atomic
c0e266
%{?nodejs_find_provides_and_requires}
c0e266
c0e266
%global enable_tests 0
c0e266
c0e266
Name:		%{?scl_prefix}nodejs-fs-write-stream-atomic
c0e266
Version:	1.0.3
c0e266
Release:	3%{?dist}
c0e266
Summary:	Like `fs.createWriteStream(...)`, but atomic
c0e266
Url:		https://github.com/npm/fs-write-stream-atomic
c0e266
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
c0e266
License:	ISC
c0e266
c0e266
BuildArch:	noarch
c0e266
ExclusiveArch:	%{nodejs_arches} noarch
c0e266
c0e266
BuildRequires:	%{?scl_prefix}nodejs-devel
c0e266
c0e266
%if 0%{?enable_tests}
c0e266
BuildRequires:	%{?scl_prefix}npm(tap)
c0e266
%endif
c0e266
c0e266
BuildRequires:	%{?scl_prefix}npm(graceful-fs)
c0e266
c0e266
Requires:	%{?scl_prefix}npm(graceful-fs)
c0e266
c0e266
%description
c0e266
Like `fs.createWriteStream(...)`, but atomic
c0e266
c0e266
%prep
c0e266
%setup -q -n package
c0e266
c0e266
%{nodejs_fixdep} graceful-fs
c0e266
c0e266
%build
c0e266
#nothing to do
c0e266
c0e266
%install
c0e266
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
c0e266
c0e266
cp -pr package.json index.js \
c0e266
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
c0e266
c0e266
%{nodejs_symlink_deps}
c0e266
c0e266
%if 0%{?enable_tests}
c0e266
c0e266
%check
c0e266
%{nodejs_symlink_deps} --check
c0e266
tap test/*.js
c0e266
%endif
c0e266
c0e266
%files
c0e266
%{nodejs_sitelib}/fs-write-stream-atomic
c0e266
c0e266
%doc README.md
c0e266
%doc LICENSE
c0e266
c0e266
%changelog
c0e266
* Fri Nov 27 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.3-3
c0e266
- Enable SCL macros
c0e266
c0e266
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
c0e266
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c0e266
c0e266
* Fri May 22 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.3-1
c0e266
- New upstream release
c0e266
c0e266
* Wed May 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.2-1
c0e266
- Initial build