Blame SPECS/nodejs-wcwidth.spec

d67fd5
%{?scl:%scl_package nodejs-wcwidth}
d67fd5
%{!?scl:%global pkg_name %{name}}
d67fd5
%{?nodejs_find_provides_and_requires}
d67fd5
d67fd5
Name:           %{?scl_prefix}nodejs-wcwidth
d67fd5
Version:        1.0.0
d67fd5
Release:        2%{?dist}
d67fd5
Summary:        Port of C's wcwidth() and wcswidth()
d67fd5
License:        MIT
d67fd5
Group:          Development/Languages/Other
d67fd5
Url:            https://github.com/isaacs/wcwidth
d67fd5
Source:         http://registry.npmjs.org/wcwidth/-/wcwidth-%{version}.tgz
d67fd5
BuildRequires:  nodejs010
d67fd5
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-build
d67fd5
BuildArch:      noarch
d67fd5
ExclusiveArch:  %{ix86} x86_64 %{arm} noarch
d67fd5
d67fd5
%description
d67fd5
Determine columns needed for a fixed-size wide-character string.
d67fd5
d67fd5
%prep
d67fd5
%setup -q -n package
d67fd5
d67fd5
%build
d67fd5
d67fd5
%install
d67fd5
mkdir -p %{buildroot}%{nodejs_sitelib}/wcwidth
d67fd5
cp -pr package.json index.js combining.js \
d67fd5
        %{buildroot}%{nodejs_sitelib}/wcwidth/
d67fd5
d67fd5
%nodejs_symlink_deps
d67fd5
d67fd5
%files
d67fd5
%defattr(-,root,root,-)
d67fd5
%doc docs/index.md LICENSE Readme.md
d67fd5
%{nodejs_sitelib}/wcwidth
d67fd5
d67fd5
%changelog
d67fd5
* Mon Jan 12 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
d67fd5
- Initial build
d67fd5