%{?nodejs_find_provides_and_requires} Name: nodejs-string-width Version: 1.0.1 Release: %mkrel 6 Summary: Get the visual width of a string - the number of columns required to display it License: MIT Group: Development/Other Url: https://github.com/sindresorhus/string-width Source0: http://registry.npmjs.org/string-width/-/string-width-%{version}.tgz Patch0: wrap-ansi.patch BuildRequires: nodejs BuildRequires: nodejs-packaging BuildRequires: npm(code-point-at) BuildRequires: npm(is-fullwidth-code-point) BuildRequires: npm(strip-ansi) BuildArch: noarch %description Get the visual width of a string - the number of columns required to display it %prep %setup -q -n package %autopatch -p1 %nodejs_fixdep strip-ansi ^3.0.x %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/string-width cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/string-width %{nodejs_symlink_deps} %files %doc %{nodejs_sitelib}/string-width %changelog * Thu Nov 05 2015 spuhler <spuhler> 1.0.1-6.mga5 + Revision: 897960 - needed for uglify-js * Thu Nov 05 2015 spuhler <spuhler> 1.0.1-6.mga6 + Revision: 897884 - fix dep syntax - fixed deps * Tue Nov 03 2015 spuhler <spuhler> 1.0.1-5.mga6 + Revision: 897658 - temp changed require to get out of loop * Tue Nov 03 2015 spuhler <spuhler> 1.0.1-4.mga6 + Revision: 897556 - add wrap-ansi.patch for version * Tue Nov 03 2015 spuhler <spuhler> 1.0.1-3.mga6 + Revision: 897496 - bumped rel for building failed build - adding missing BR - bumped rel for building failed build - local srpm build based on Opensuse