Blame SPECS/nodejs-fs-vacuum.spec

b7747b
%{?scl:%scl_package nodejs-fs-vacuum}
b7747b
%{!?scl:%global pkg_name %{name}}
b7747b
b7747b
# spec file for package nodejs-nodejs-fs-vacuum
b7747b
b7747b
%global npm_name fs-vacuum
b7747b
%{?nodejs_find_provides_and_requires}
b7747b
b7747b
%global enable_tests 0
b7747b
# Tests turned off due to missing dependencies
b7747b
b7747b
Name:		%{?scl_prefix}nodejs-fs-vacuum
b7747b
Version:    1.2.9
b7747b
Release:    1%{?dist}
b7747b
Summary:	Recursively remove empty directories -- to a point
b7747b
Url:		https://github.com/npm/fs-vacuum
b7747b
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
b7747b
License:	ISC
b7747b
b7747b
BuildArch:	noarch
b7747b
ExclusiveArch:	%{nodejs_arches} noarch
b7747b
b7747b
BuildRequires:	%{?scl_prefix}nodejs-devel
b7747b
b7747b
%if 0%{?enable_tests}
b7747b
BuildRequires:	%{?scl_prefix}npm(mkdirp)
b7747b
BuildRequires:	%{?scl_prefix}npm(tap)
b7747b
BuildRequires:	%{?scl_prefix}npm(tmp)
b7747b
%endif
b7747b
b7747b
%description
b7747b
Recursively remove empty directories -- to a point
b7747b
b7747b
%prep
b7747b
%setup -q -n package
b7747b
b7747b
#%nodejs_fixdep graceful-fs
b7747b
#%nodejs_fixdep path-is-inside
b7747b
#%nodejs_fixdep rimraf
b7747b
b7747b
%build
b7747b
#nothing to do
b7747b
b7747b
%install
b7747b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
b7747b
b7747b
cp -pr package.json vacuum.js \
b7747b
	%{buildroot}%{nodejs_sitelib}/%{npm_name}
b7747b
b7747b
%{nodejs_symlink_deps}
b7747b
b7747b
%if 0%{?enable_tests}
b7747b
b7747b
%check
b7747b
%{nodejs_symlink_deps} --check
b7747b
tap test/*.js
b7747b
%endif
b7747b
b7747b
%files
b7747b
%{nodejs_sitelib}/fs-vacuum
b7747b
b7747b
%doc README.md LICENSE
b7747b
b7747b
%changelog
b7747b
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.2.9-1
b7747b
- Updated with script
b7747b
b7747b
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.2.6-4
b7747b
- rebuilt
b7747b
b7747b
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.2.6-3
b7747b
- Enable scl macros
b7747b
b7747b
* Tue Jul 14 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.2.6-2
b7747b
- Added %%nodejs_fixdep macros
b7747b
b7747b
* Mon Jul 13 2015 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.2.6-1
b7747b
- New upstream release
b7747b
- updated spec file
b7747b
- added %%license
b7747b
b7747b
* Thu May 14 2015 Zuzana Svetlikova <zsvetlik@redhat.com>- 1.2.5-1
b7747b
- Initial build