From 87caf7b42fab9340f9e10e90c21b23e703c8538d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 22 2016 13:53:07 +0000 Subject: import nodejs010-nodejs-wordwrap-1.0.0-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1acb1ec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/wordwrap-1.0.0.tgz diff --git a/.nodejs010-nodejs-wordwrap.metadata b/.nodejs010-nodejs-wordwrap.metadata new file mode 100644 index 0000000..09fa461 --- /dev/null +++ b/.nodejs010-nodejs-wordwrap.metadata @@ -0,0 +1 @@ +27584810891456a4171c8d0226441ade90cbcaeb SOURCES/wordwrap-1.0.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-wordwrap.spec b/SPECS/nodejs-wordwrap.spec new file mode 100644 index 0000000..1151faf --- /dev/null +++ b/SPECS/nodejs-wordwrap.spec @@ -0,0 +1,85 @@ +%{?scl:%scl_package nodejs-wordwrap} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-wordwrap +Version: 1.0.0 +Release: 2%{?dist} +Summary: Word wrapping library for node + +Group: System Environment/Libraries +#no license file included; "MIT/X11" indicated in package.json +License: MIT +URL: https://github.com/substack/node-wordwrap +Source0: http://registry.npmjs.org/wordwrap/-/wordwrap-%{version}.tgz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: nodejs010-runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(expresso) +%endif + +%description +Wrap those words. Show them at what columns to start and stop. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +rm -rf %buildroot +mkdir -p %{buildroot}%{nodejs_sitelib}/wordwrap +cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/wordwrap + +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +ln -sf .. node_modules/wordwrap +expresso +%endif + +%clean +rm -rf %buildroot + +%files +%{!?_licensedir:%global license %doc} +%defattr(-,root,root,-) +%{nodejs_sitelib}/wordwrap +%doc README.markdown example + +%changelog +* Wed Jan 13 2016 Tomas Hrcka - 1.0.0-2 +- Enable scl macros + +* Thu Sep 10 2015 Troy Dawson - 1.0.0-1 +- Update to 2.2.0 +- Disable tests until all dependencies are built + +* Tue Aug 20 2013 Jamie Nguyen - 0.0.2-4 +- restrict to compatible arches +- enable tests + +* Sat Aug 03 2013 Fedora Release Engineering - 0.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 08 2013 T.C. Hollingsworth - 0.0.2-2 +- fix License tag + +* Fri Jan 18 2013 T.C. Hollingsworth - 0.0.2-1 +- initial package generated by npm2rpm \ No newline at end of file