Blame SPECS/nodejs-is-npm.spec

4bf7e5
%{?scl:%scl_package nodejs-%{npm_name}}
4bf7e5
%{!?scl:%global pkg_name %{name}}
4bf7e5
4bf7e5
%{?nodejs_find_provides_and_requires}
4bf7e5
%global npm_name is-npm
4bf7e5
4bf7e5
Summary:       Check if your code is running as an npm script
4bf7e5
Name:          %{?scl_prefix}nodejs-%{npm_name}
4bf7e5
Version:       1.0.0
4bf7e5
Release:       5%{?dist}
4bf7e5
License:       MIT
4bf7e5
URL:           https://github.com/sindresorhus/is-npm
4bf7e5
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
4bf7e5
BuildRequires: %{?scl_prefix}nodejs-devel
4bf7e5
ExclusiveArch: %{nodejs_arches} noarch
4bf7e5
BuildArch:     noarch
4bf7e5
4bf7e5
%description
4bf7e5
Check if your code is running as an npm script.
4bf7e5
4bf7e5
%prep
4bf7e5
%setup -q -n package
4bf7e5
4bf7e5
%build
4bf7e5
4bf7e5
%install
4bf7e5
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
4bf7e5
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
4bf7e5
4bf7e5
%nodejs_symlink_deps
4bf7e5
4bf7e5
%files
4bf7e5
%doc readme.md
4bf7e5
%{nodejs_sitelib}/%{npm_name}
4bf7e5
4bf7e5
%changelog
4bf7e5
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-5
4bf7e5
- rh-nodejs8 rebuild
4bf7e5
4bf7e5
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
4bf7e5
- Use macro in -runtime dependency
4bf7e5
4bf7e5
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-3
4bf7e5
- Rebuilt with updated metapackage
4bf7e5
4bf7e5
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
4bf7e5
- Enable scl macros
4bf7e5
4bf7e5
* Tue Dec 15 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-1
4bf7e5
- Initial package