Blame SPECS/nodejs-has-flag.spec

0e996b
%{?scl:%scl_package nodejs-%{npm_name}}
0e996b
%{!?scl:%global pkg_name %{name}}
0e996b
%{?nodejs_find_provides_and_requires}
0e996b
0e996b
%global npm_name has-flag
0e996b
0e996b
Summary:       Check if argv has a specific flag
0e996b
Name:          %{?scl_prefix}nodejs-%{npm_name}
0e996b
Version:       1.0.0
0e996b
Release:       5%{?dist}
0e996b
License:       MIT
0e996b
URL:           https://github.com/sindresorhus/has-flag
0e996b
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
0e996b
BuildRequires: %{?scl_prefix}nodejs-devel
0e996b
ExclusiveArch: %{nodejs_arches} noarch
0e996b
BuildArch:     noarch
0e996b
0e996b
%description
0e996b
Check if argv has a specific flag
0e996b
0e996b
Correctly stops looking after an -- argument terminator.
0e996b
0e996b
%prep
0e996b
%setup -q -n package
0e996b
0e996b
%build
0e996b
0e996b
%install
0e996b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
0e996b
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
0e996b
0e996b
%files
0e996b
%{!?_licensedir:%global license %doc}
0e996b
%doc license readme.md
0e996b
%{nodejs_sitelib}/%{npm_name}
0e996b
0e996b
%changelog
0e996b
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-5
0e996b
- Use macro in -runtime dependency
0e996b
0e996b
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
0e996b
- Rebuilt with updated metapackage
0e996b
0e996b
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-3
0e996b
- Enable find provides and requires macro
0e996b
0e996b
* Mon Jan 11 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
0e996b
- Enable scl macros
0e996b
0e996b
* Mon Sep 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-1
0e996b
- Initial package