Blob Blame History Raw
%{?scl:%scl_package nodejs-columnify}
%{!?scl:%global pkg_name %{name}}

# spec file for package nodejs-nodejs-columnify_0.1.2

%global npmname columnify
%{?nodejs_find_provides_and_requires}

Name:           %{?scl_prefix}nodejs-columnify
Version:        0.1.2
Release:        1%{?dist}
Summary:        Render data in text columns, supports in-column text-wrap.
Url:            https://github.com/timoxley/columnify
Source0:        http://registry.npmjs.org/columnify/-/columnify-0.1.2.tgz
License:        MIT

BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  %{?scl_prefix}nodejs-devel

%description
Render data in text columns, supports in-column text-wrap.

%prep
%setup -q -n package

%build
#nothing to do

%install
rm -rf %buildroot

mkdir -p %{buildroot}%{nodejs_sitelib}/columnify
cp -pr index.js utils.js package.json %{buildroot}%{nodejs_sitelib}/columnify

%nodejs_symlink_deps

%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/columnify

%doc Readme.md

%changelog
* Mon Feb 17 2014 Tomas Hrcka <thrcka@redhat.com> - 0.1.2-1
- Initial build