Blame SPECS/nodejs-os-homedir.spec

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