diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2e87ae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/strip-ansi-3.0.1.tgz diff --git a/.rh-nodejs6-nodejs-strip-ansi.metadata b/.rh-nodejs6-nodejs-strip-ansi.metadata new file mode 100644 index 0000000..27c1ffc --- /dev/null +++ b/.rh-nodejs6-nodejs-strip-ansi.metadata @@ -0,0 +1 @@ +6a385fb8853d952d5ff05d0e8aaf94278dc63dcf SOURCES/strip-ansi-3.0.1.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-strip-ansi.spec b/SPECS/nodejs-strip-ansi.spec new file mode 100644 index 0000000..aeb56e6 --- /dev/null +++ b/SPECS/nodejs-strip-ansi.spec @@ -0,0 +1,83 @@ +%{?scl:%scl_package nodejs-strip-ansi} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-strip-ansi +Version: 3.0.1 +Release: 1%{?dist} +Summary: Strip ANSI escape codes (used for colorizing strings in the terminal) +License: MIT +URL: https://github.com/chalk/strip-ansi +Source0: http://registry.npmjs.org/strip-ansi/-/strip-ansi-%{version}.tgz + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: %{?scl_prefix}runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(mocha) +%endif + +%description +%{summary}. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/strip-ansi +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/strip-ansi + +# `strip-ansi` is used as the command. +#mkdir -p %%{buildroot}%%{_bindir} +#ln -sf %%{nodejs_sitelib}/strip-ansi/cli.js \ +# %%{buildroot}%%{_bindir}/strip-ansi + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +/usr/bin/mocha +%endif + +%files +%doc license readme.md +%{nodejs_sitelib}/strip-ansi +#%%{_bindir}/strip-ansi + +%changelog +* Tue Sep 13 2016 Zuzana Svetlikova - 3.0.1-1 +- Updated with script + +* Tue Feb 16 2016 Zuzana Svetlikova - 3.0.0-2 +- Use macro in -runtime dependency + +* Tue Feb 16 2016 Tomas Hrcka - 3.0.0-1 +- New upstream release + +* Fri Jan 09 2015 Tomas Hrcka - 0.2.0-1 +- Enable software collections support + +* Sat Jun 07 2014 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Apr 20 2014 Jamie Nguyen - 0.2.0-1 +- update to upstream release 0.2.0 + +* Thu Mar 13 2014 Jamie Nguyen - 0.1.1-1 +- initial package