diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5573427 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ansi-regex-2.0.0.tgz diff --git a/.rh-nodejs8-nodejs-ansi-regex.metadata b/.rh-nodejs8-nodejs-ansi-regex.metadata new file mode 100644 index 0000000..65f0f03 --- /dev/null +++ b/.rh-nodejs8-nodejs-ansi-regex.metadata @@ -0,0 +1 @@ +c5061b6e0ef8a81775e50f5d66151bf6bf371107 SOURCES/ansi-regex-2.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-ansi-regex.spec b/SPECS/nodejs-ansi-regex.spec new file mode 100644 index 0000000..e7e8d5c --- /dev/null +++ b/SPECS/nodejs-ansi-regex.spec @@ -0,0 +1,78 @@ +%{?scl:%scl_package nodejs-ansi-regex} +%{!?scl:%global pkg_name %{name}} + +%global npm_name ansi-regex + +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-ansi-regex +Version: 2.0.0 +Release: 6%{?dist} +Summary: Regular expression for matching ANSI escape codes +Url: https://github.com/sindresorhus/ansi-regex +Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz +License: MIT +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel +BuildRequires: %{?scl_prefix}runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(mocha) +%endif + +%description +Regular expression for matching ANSI escape codes + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} + +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{npm_name} + +%{nodejs_symlink_deps} + +%if 0%{?enable_tests} + +%check +%{nodejs_symlink_deps} --check +mocha test/test.js +#node test/viewCodes.js +%endif + +%files +%{nodejs_sitelib}/ansi-regex + +%doc readme.md license + +%changelog +* Mon Jul 03 2017 Zuzana Svetlikova - 2.0.0-6 +- rh-nodejs8 rebuild + +* Tue Feb 16 2016 Zuzana Svetlikova - 2.0.0-5 +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 2.0.0-4 +- Rebuilt with updated metapackage + +* Mon Dec 14 2015 Tomas Hrcka - 2.0.0-2 +- Enable scl macros + +* Mon Sep 14 2015 Troy Dawson - 2.0.0-4 +- UPdate to 2.1.0 +- Remove tests until all dependencies are built + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed May 13 2015 Zuzana Svetlikova - 1.1.1-1 +- Initial build