Blame SPECS/nodejs-ansicolors.spec

2767c7
%{?scl:%scl_package nodejs-ansicolors}
2767c7
%{!?scl:%global pkg_name %{name}}
2767c7
2767c7
%global npm_name ansicolors
2767c7
 
2767c7
%{?nodejs_find_provides_and_requires}
2767c7
2767c7
2767c7
Name:           %{?scl_prefix}nodejs-ansicolors
2767c7
Version:        0.3.2
2767c7
Release:        2%{?dist}
2767c7
Summary:        Functions that surround a string with ansicolor codes so it prints in color.
2767c7
Url:            https://github.com/thlorenz/ansicolors
2767c7
Source0:        http://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz
2767c7
License:        MIT
2767c7
2767c7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2767c7
BuildRequires:  %{?scl_prefix}nodejs-devel
2767c7
2767c7
BuildArch:      noarch
2767c7
ExclusiveArch:  %{nodejs_arches} noarch
2767c7
2767c7
%description
2767c7
Functions that surround a string with ansicolor codes so it prints in color.
2767c7
2767c7
%prep
2767c7
%setup -q -n package
2767c7
2767c7
%build
2767c7
#nothing to do
2767c7
2767c7
%install
2767c7
rm -rf %buildroot
2767c7
mkdir -p %{buildroot}%{nodejs_sitelib}/ansicolors
2767c7
cp -pr ansicolors.js package.json %{buildroot}%{nodejs_sitelib}/ansicolors
2767c7
%nodejs_symlink_deps
2767c7
2767c7
%clean
2767c7
rm -rf %buildroot
2767c7
2767c7
2767c7
%files
2767c7
%defattr(-,root,root,-)
2767c7
%{nodejs_sitelib}/ansicolors
2767c7
%doc README.md LICENSE
2767c7
2767c7
%changelog
2767c7
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.3.2-2
2767c7
- rebuilt
2767c7
2767c7
* Wed Jan 29 2014 Tomas Hrcka <thrcka@redhat.com> - 0.3.2-1
2767c7
- initial build 
2767c7