diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2d9e4a3..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/has-color-0.1.4.tgz -/has-color-0.1.7.tgz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index c9b44cb..0000000 --- a/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/nodejs-has-color.spec b/nodejs-has-color.spec deleted file mode 100644 index db2209f..0000000 --- a/nodejs-has-color.spec +++ /dev/null @@ -1,105 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global enable_tests 1 - -Name: nodejs-has-color -Version: 0.1.7 -Release: 13%{?dist} -Summary: Detects whether a terminal supports color -License: MIT -URL: https://github.com/sindresorhus/has-color -Source0: http://registry.npmjs.org/has-color/-/has-color-%{version}.tgz -Source1: https://raw.githubusercontent.com/sindresorhus/has-color/ab671b1f74846d9fb9caea8dc302603a865be3cc/test.js -# https://github.com/sindresorhus/has-color/pull/4 -Source2: LICENSE - -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif - -BuildRequires: nodejs-packaging - -%if 0%{?enable_tests} -BuildRequires: npm(mocha) -%endif - -%description -%{summary}. - - -%prep -%setup -q -n package -cp -p %{SOURCE1} . -cp -p %{SOURCE2} . - - -%build -#nothing to do - - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/has-color -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/has-color - -%nodejs_symlink_deps - - -%if 0%{?enable_tests} -%check -%nodejs_symlink_deps --check -/usr/bin/mocha -%endif - - -%files -%doc LICENSE readme.md -%{nodejs_sitelib}/has-color - - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering - 0.1.7-13 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 0.1.7-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 0.1.7-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 0.1.7-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 0.1.7-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 0.1.7-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 0.1.7-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0.1.7-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 0.1.7-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Thu Feb 04 2016 Fedora Release Engineering - 0.1.7-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 0.1.7-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.1.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Apr 20 2014 Jamie Nguyen - 0.1.7-1 -- update to upstream release 0.1.7 - -* Thu Mar 13 2014 Jamie Nguyen - 0.1.4-1 -- initial package diff --git a/sources b/sources deleted file mode 100644 index 31d3838..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -e59f89254be6fe43dfaf652e9b4061ec has-color-0.1.7.tgz diff --git a/test.js b/test.js deleted file mode 100644 index d0934a5..0000000 --- a/test.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -var assert = require('assert'); - -beforeEach(function () { - // clear the cache of the tested module - delete require.cache[require.resolve('./index')]; - process.stdout.isTTY = true; - process.argv = []; - process.env = {}; -}); - -it('should return false if not TTY', function () { - process.stdout.isTTY = false; - assert.equal(require('./index'), false); -}); - -it('should return false if --no-color flag is used', function () { - process.argv = ['--no-color']; - assert.equal(require('./index'), false); -}); - -it('should return true if --color flag is used', function () { - process.argv = ['--color']; - assert.equal(require('./index'), true); -}); - -it('should return true if `COLORTERM` is in env', function () { - process.env.COLORTERM = true; - assert.equal(require('./index'), true); -}); -