Blame SPECS/nodejs-is-windows.spec

6f295b
%{?scl:%scl_package nodejs-%{npm_name}}
6f295b
%{!?scl:%global pkg_name %{name}}
6f295b
%{?nodejs_find_provides_and_requires}
6f295b
6f295b
%global npm_name is-windows
6f295b
6f295b
Summary:       Returns true if the platform is windows
6f295b
Name:          %{?scl_prefix}nodejs-%{npm_name}
6f295b
Version:       0.1.0
6f295b
Release:       3%{?dist}
6f295b
License:       MIT
6f295b
URL:           https://github.com/jonschlinkert/is-windows
6f295b
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
6f295b
BuildRequires: nodejs010-runtime
6f295b
ExclusiveArch: %{nodejs_arches} noarch
6f295b
BuildArch:     noarch
6f295b
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
6f295b
6f295b
%description
6f295b
Returns true if the platform is windows.
6f295b
6f295b
%prep
6f295b
%setup -q -n package
6f295b
6f295b
%build
6f295b
6f295b
%install
6f295b
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
6f295b
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
6f295b
6f295b
%files
6f295b
%doc README.md LICENSE
6f295b
%{nodejs_sitelib}/%{npm_name}
6f295b
6f295b
%changelog
6f295b
* Wed Dec 02 2015 Tomas Hrcka <thrcka@redhat.com> - 0.1.0-3
6f295b
- Enbale scl macros
6f295b
6f295b
* Tue Nov 24 2015 Troy Dawson <tdawson@redhat.com> - 0.1.0-1
6f295b
- Initial package