Blame SPECS/nodejs-expand-range.spec

8e21b9
%{?scl:%scl_package nodejs-%{npm_name}}
8e21b9
%{!?scl:%global pkg_name %{name}}
8e21b9
8e21b9
%{?nodejs_find_provides_and_requires}
8e21b9
%global npm_name expand-range
8e21b9
8e21b9
Summary:       Expand a range of numbers or letters, uppercase or lowercase
8e21b9
Name:          %{?scl_prefix}nodejs-%{npm_name}
8e21b9
Version:       1.8.1
8e21b9
Release:       4%{?dist}
8e21b9
License:       MIT
8e21b9
URL:           https://github.com/jonschlinkert/expand-range
8e21b9
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
8e21b9
BuildRequires: %{?scl_prefix}runtime
8e21b9
ExclusiveArch: %{nodejs_arches} noarch
8e21b9
BuildArch:     noarch
8e21b9
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
8e21b9
8e21b9
%description
8e21b9
Fast, bash-like range expansion. Expand a range of numbers or letters, 
8e21b9
uppercase or lowercase.
8e21b9
8e21b9
%prep
8e21b9
%setup -q -n package
8e21b9
chmod 644 *
8e21b9
8e21b9
%build
8e21b9
8e21b9
%install
8e21b9
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
8e21b9
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
8e21b9
8e21b9
%nodejs_symlink_deps
8e21b9
8e21b9
%files
8e21b9
%{!?_licensedir:%global license %doc}
8e21b9
%doc README.md
8e21b9
%license LICENSE
8e21b9
%{nodejs_sitelib}/%{npm_name}
8e21b9
8e21b9
%changelog
8e21b9
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-4
8e21b9
- Use macro in -runtime dependency
8e21b9
8e21b9
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-3
8e21b9
- Rebuilt with updated metapackage
8e21b9
8e21b9
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-2
8e21b9
- Enable scl macros, fix license macro for el6
8e21b9
8e21b9
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
8e21b9
- Initial package