Blame SPECS/nodejs-path-is-absolute.spec

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