Blame SPECS/nodejs-os-homedir.spec

8f4489
%{?scl:%scl_package nodejs-os-homedir}
8f4489
%{!?scl:%global pkg_name %{name}}
8f4489
8f4489
%global npm_name os-homedir
8f4489
%{?nodejs_find_provides_and_requires}
8f4489
8f4489
%global enable_tests 0
8f4489
8f4489
Name:		%{?scl_prefix}nodejs-os-homedir
8f4489
Version:	1.0.1
8f4489
Release:	2%{?dist}
8f4489
Summary:	io.js 2.3.0 os.homedir() ponyfill
8f4489
Url:		https://github.com/sindresorhus/os-homedir
8f4489
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
8f4489
License:	MIT
8f4489
8f4489
BuildArch:	noarch
8f4489
8f4489
%if 0%{?fedora} >= 19
8f4489
ExclusiveArch: %{nodejs_arches} noarch
8f4489
%else
8f4489
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
8f4489
%endif
8f4489
8f4489
BuildRequires:  %{?scl_prefix}nodejs-devel
8f4489
8f4489
%if 0%{?enable_tests}
8f4489
BuildRequires:	%{?scl_prefix}npm(ava)
8f4489
BuildRequires:	%{?scl_prefix}npm(path-exists)
8f4489
%endif
8f4489
8f4489
%description
8f4489
io.js 2.3.0 os.homedir() ponyfill
8f4489
8f4489
%prep
8f4489
%setup -q -n package
8f4489
8f4489
rm -rf node_modules
8f4489
8f4489
%build
8f4489
8f4489
%install
8f4489
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
8f4489
8f4489
cp -pr package.json *.js \
8f4489
%{buildroot}%{nodejs_sitelib}/%{npm_name}
8f4489
8f4489
%{nodejs_symlink_deps}
8f4489
8f4489
%if 0%{?enable_tests}
8f4489
8f4489
%check
8f4489
%{nodejs_symlink_deps} --check
8f4489
8f4489
%endif
8f4489
8f4489
%files
8f4489
%{nodejs_sitelib}/os-homedir
8f4489
8f4489
%doc readme.md license
8f4489
8f4489
%changelog
8f4489
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-2
8f4489
- rebuilt
8f4489
8f4489
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-1
8f4489
- Initial build