diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b9e0c1d..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/arr-union-3.1.0.tgz 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-arr-union.spec b/nodejs-arr-union.spec deleted file mode 100644 index ba84160..0000000 --- a/nodejs-arr-union.spec +++ /dev/null @@ -1,99 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename arr-union -%global enable_tests 1 - -Name: nodejs-arr-union -Version: 3.1.0 -Release: 10%{?dist} -Summary: Combines a list of arrays, returning a single array with unique values - -License: MIT -URL: https://github.com/jonschlinkert/arr-union -Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz -# The test files are not included in the npm tarball. -# Release not tagged in Github, so pull tests from master branch -Source1: https://raw.githubusercontent.com/jonschlinkert/arr-union/master/test.js - - -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: mocha -BuildRequires: npm(should) -%endif - -%description -Combines a list of arrays, returning a single array with unique values, using -strict equality for comparisons. - - -%prep -%autosetup -n package -# setup the tests -cp -p %{SOURCE1} . - - -%build -# nothing to do - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} -cp -pr package.json index.js \ - %{buildroot}%{nodejs_sitelib}/%{packagename} - -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' -%if 0%{?enable_tests} -NODE_ENV=test %{_bindir}/mocha -R spec -%else -%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" -%endif - -%files -%{!?_licensedir:%global license %doc} -%doc *.md -%license LICENSE -%{nodejs_sitelib}/%{packagename} - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering - 3.1.0-10 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 3.1.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 3.1.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 3.1.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 3.1.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 3.1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering - 3.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 3.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 3.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Jul 29 2016 Jared Smith - 3.1.0-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index c2acf6d..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -f3cf2ebd1f4051917051f0c2b9287954 arr-union-3.1.0.tgz diff --git a/test.js b/test.js deleted file mode 100644 index 827f506..0000000 --- a/test.js +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * arr-union - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -/* deps:mocha */ -var path = require('path'); -var argv = require('minimist')(process.argv.slice(2)); -var should = require('should'); -var union = require('./'); - -if (argv._.length) { - union = require(path.resolve('benchmark/code/' + argv.code + '.js')); -} - -describe('union', function() { - it('should add elements to the original array:', function() { - var arr = ['a']; - union(arr, ['b', 'c'], ['a'], ['b', 'c'], ['d', 'e', 'f']).sort() - arr.should.eql(['a', 'b', 'c', 'd', 'e', 'f'].sort()); - }); - - it('should union all elements in the given arrays:', function() { - union(['a'], ['b', 'c'], ['d', 'e', 'f']).sort().should.eql(['a', 'b', 'c', 'd', 'e', 'f'].sort()); - }); - - it('should ignore falsey values', function() { - union(['a'], undefined, ['d', 'e', 'f']).sort().should.eql(['a', 'd', 'e', 'f'].sort()); - }); - - it('should arrayify non-array values', function() { - union(['a'], 'cde', ['d', 'e', 'f']).sort().should.eql(['a', 'cde', 'd', 'e', 'f'].sort()); - }); - - it('should uniquify elements from additional arrays:', function() { - var arr = ['a', 'b', 'c']; - var res = union(arr, ['b', 'c'], ['a'], ['b', 'c'], ['d', 'e', 'f']).sort() - res.should.eql(['a', 'b', 'c', 'd', 'e', 'f'].sort()); - }); -}); -