diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7ef9f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ansistyles-0.1.3.tgz diff --git a/.rh-nodejs6-nodejs-ansistyles.metadata b/.rh-nodejs6-nodejs-ansistyles.metadata new file mode 100644 index 0000000..bee51ad --- /dev/null +++ b/.rh-nodejs6-nodejs-ansistyles.metadata @@ -0,0 +1 @@ +5de60415bda071bb37127854c864f41b23254539 SOURCES/ansistyles-0.1.3.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-ansistyles.spec b/SPECS/nodejs-ansistyles.spec new file mode 100644 index 0000000..08379b3 --- /dev/null +++ b/SPECS/nodejs-ansistyles.spec @@ -0,0 +1,57 @@ +%{?scl:%scl_package nodejs-ansistyles} +%{!?scl:%global pkg_name %{name}} + +# spec file for package nodejs-nodejs-ansistyles_0.1.3 + +%global npmname ansistyles +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-ansistyles +Version: 0.1.3 +Release: 4%{?dist} +Summary: Functions that surround a string with ansistyle codes so it prints in style. +Url: https://github.com/thlorenz/ansistyles +Source0: http://registry.npmjs.org/ansistyles/-/ansistyles-%{version}.tgz +License: MIT + +BuildArch: noarch + +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +BuildRequires: %{?scl_prefix}nodejs-devel + +%description +Functions that surround a string with ansistyle codes so it prints in style. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/ansistyles +cp -pr package.json ansistyles.js %{buildroot}%{nodejs_sitelib}/ansistyles +%nodejs_symlink_deps + +%check +%{?scl:scl enable %{scl} "} +node test/ansistyles.js +%{?scl:"} + +%files +%{nodejs_sitelib}/ansistyles +%doc LICENSE README.md + +%changelog +* Thu Feb 18 2016 Zuzana Svetlikova - 0.1.3-4 +- Add missing ExclusiveArch and BuildArch +- Use macro in -runtime dependency +- Rebuilt with updated metapackage + +* Thu Jan 30 2014 Tomas Hrcka - 0.1.3-1 +- Initial build