diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7a70e61..0000000 --- a/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -/iconv-2.1.11.tgz -/iconv-2.2.0.tgz -/iconv-2.2.1.tgz -/iconv-2.2.2.tgz -/iconv-2.2.3.tgz -/iconv-2.3.0.tgz -/iconv-2.3.3.tgz -/iconv-2.3.4.tgz -/iconv-2.3.5.tgz -/iconv-3.0.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-iconv-glibc.patch b/nodejs-iconv-glibc.patch deleted file mode 100644 index f2edefb..0000000 --- a/nodejs-iconv-glibc.patch +++ /dev/null @@ -1,86 +0,0 @@ -commit e7aeeca115649888ef34179a213a293ebc265ac2 -Author: Tom Hughes -Date: Tue Nov 24 14:13:26 2015 +0000 - - Workaround differences in glibc iconv - -diff --git a/index.js b/index.js -index 75532e1..152c851 100644 ---- a/index.js -+++ b/index.js -@@ -54,13 +54,15 @@ function Iconv(fromEncoding, toEncoding) - toEncoding + ' is not supported.'); - } - -+ const ignore = toEncoding.match(/\/\/IGNORE(\/|$)/i); -+ - const context_ = { trailer: null }; - - this.convert = function(input, encoding) { - if (typeof(input) === 'string') { - input = Buffer.from(input, encoding || 'utf8'); - } -- return convert(conv, input, null); -+ return convert(conv, ignore, input, null); - }; - - this.write = function(input, encoding) { -@@ -69,7 +71,7 @@ function Iconv(fromEncoding, toEncoding) - } - let buf; - try { -- buf = convert(conv, input, context_); -+ buf = convert(conv, ignore, input, context_); - } - catch (e) { - this.emit('error', e); -@@ -98,7 +100,7 @@ function fixEncoding(encoding) - return /^utf[^-]/i.test(encoding) ? 'utf-' + encoding.substr(3) : encoding; - } - --function convert(conv, input, context) { -+function convert(conv, ignore, input, context) { - if (!Buffer.isBuffer(input) && input !== FLUSH) { - throw new Error('Bad argument.'); // Not a buffer or a string. - } -@@ -142,7 +144,7 @@ function convert(conv, input, context) { - input_size -= input_consumed; - output_start += output_consumed; - output_size -= output_consumed; -- if (errno) { -+ if (errno && !(errno === EILSEQ && ignore)) { - if (errno === E2BIG) { - output_size += output.length; - const newbuf = Buffer.alloc(output.length * 2); -diff --git a/test/test-basic.js b/test/test-basic.js -index c4f4464..c31c3ee 100644 ---- a/test/test-basic.js -+++ b/test/test-basic.js -@@ -130,22 +130,22 @@ iconv = new Iconv('utf-8', 'ascii//ignore'); - assert.equal(iconv.convert('ça va').toString(), 'a va'); - - iconv = new Iconv('utf-8', 'ascii//translit'); --assert.equal(iconv.convert('ça va').toString(), 'ca va'); -+assert.equal(iconv.convert('ça va').toString(), '?a va'); - - iconv = new Iconv('utf-8', 'ascii//translit'); --assert.throws(function() { iconv.convert('ça va が'); }); // untranslatable -+assert.equal(iconv.convert('ça va が').toString(), '?a va ?'); - - iconv = new Iconv('utf-8', 'ascii//translit//ignore'); --assert.equal(iconv.convert('ça va が').toString(), 'ca va '); -+assert.equal(iconv.convert('ça va が').toString(), '?a va ?'); - - iconv = Iconv('utf-8', 'iso-8859-1'); - assert.equal(iconv.convert('b2s=', 'base64').toString(), 'ok'); - - const aixEncodings = -- 'CP856 CP922 CP943 CP1046 CP1124 CP1129 CP1161 CP1162 CP1163'; -+ 'CP856 CP922 CP1046 CP1124 CP1129 CP1161 CP1162 CP1163'; - - const dosEncodings = -- 'CP437 CP737 CP775 CP852 CP853 CP855 CP857 CP858 CP860 CP861 ' + -+ 'CP437 CP737 CP775 CP852 CP855 CP857 CP860 CP861 ' + - 'CP863 CP864 CP865 CP869 CP1125'; - - // Check that AIX and DOS encodings are available. diff --git a/nodejs-iconv.spec b/nodejs-iconv.spec deleted file mode 100644 index f8a8652..0000000 --- a/nodejs-iconv.spec +++ /dev/null @@ -1,162 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -Name: nodejs-iconv -Version: 3.0.0 -Release: 4%{?dist} -Summary: Text recoding in JavaScript for fun and profit - -License: ISC -URL: https://github.com/bnoordhuis/node-iconv -Source0: https://registry.npmjs.org/iconv/-/iconv-%{version}.tgz -# Workaround some differences in glibc's iconv vs libiconv -Patch0: nodejs-iconv-glibc.patch -ExclusiveArch: %{nodejs_arches} - -BuildRequires: nodejs-devel -BuildRequires: node-gyp - -%{?nodejs_default_filter} - - -%description -%{summary}. - - -%prep -%autosetup -p 1 -n package -rm -rf deps support node_modules - - -%build -%nodejs_symlink_deps --build -export CXXFLAGS="%{optflags}" -export LDFLAGS="%{?__global_ldflags} -Wl,-z,undefs" -node-gyp rebuild -- -Dnode_iconv_use_system_libiconv=1 - - -%install -mkdir -p %{buildroot}%{nodejs_sitearch}/iconv/build/Release -cp -pr package.json index.js %{buildroot}%{nodejs_sitearch}/iconv -install -p -m755 build/Release/iconv.node %{buildroot}%{nodejs_sitearch}/iconv/build/Release -%nodejs_symlink_deps - - -%check -%nodejs_symlink_deps --check -mkdir test/tmp -%__nodejs test/run-tests.js - - -%files -%doc README.md -%license LICENSE -%{nodejs_sitearch}/iconv - - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering - 3.0.0-4 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 3.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jun 29 2020 Tom Hughes - 3.0.0-2 -- Rebuild for Node.js 14.4.0 - -* Fri Apr 24 2020 Tom Hughes - 3.0.0-1 -- Update to 3.0.0 upstream release - -* Wed Jan 29 2020 Fedora Release Engineering - 2.3.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Tue Oct 1 2019 Tom Hughes - 2.3.5-1 -- Update to 2.3.5 upstream release - -* Thu Jul 25 2019 Fedora Release Engineering - 2.3.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Jun 14 2019 Tom Hughes - 2.3.4-2 -- Rebuild for Node.js 12.4.0 - -* Sun Mar 31 2019 Tom Hughes - 2.3.4-1 -- Update to 2.3.4 upstream release - -* Thu Mar 21 2019 Tom Hughes - 2.3.3-1 -- Update to 2.3.3 upstream release - -* Fri Feb 01 2019 Fedora Release Engineering - 2.3.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 2.3.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Jun 22 2018 Tom Hughes - 2.3.0-8 -- Rebuild for Node.js 10.5.0 - -* Thu Feb 08 2018 Fedora Release Engineering - 2.3.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Tue Jan 23 2018 Tom Hughes - 2.3.0-5 -- Allow undefined symbols in the shared object - -* Thu Aug 10 2017 Tom Hughes - 2.3.0-4.1 -- Rebuild for Node.js 8.3.0 - -* Thu Aug 03 2017 Fedora Release Engineering - 2.3.0-3.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 2.3.0-2.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Wed Jun 28 2017 Tom Hughes - 2.3.0-1.1 -- Rebuild for Node.js 8.1.2 - -* Mon Jun 26 2017 Tom Hughes - 2.3.0-1 -- Update to 2.3.0 upstream release - -* Wed Apr 5 2017 Tom Hughes - 2.2.3-1 -- Update to 2.2.3 upstream release - -* Tue Apr 4 2017 Tom Hughes - 2.2.2-1 -- Update to 2.2.2 upstream release - -* Fri Feb 10 2017 Fedora Release Engineering - 2.2.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Aug 29 2016 Tom Hughes - 2.2.1-2 -- Rebuild for Node.js 6.5.0 - -* Thu Jun 16 2016 Tom Hughes - 2.2.1-1 -- Update to 2.2.1 upstream release - -* Mon May 09 2016 Stephen Gallagher - 2.2.0-1.1 -- Rebuild for Node.js 6.1.0 upgrade - -* Wed Apr 27 2016 Tom Hughes - 2.2.0-1 -- Update to 2.2.0 upstream release - -* Tue Mar 29 2016 Tom Hughes - 2.1.11-8 -- Rebuild for Node.js 5.x - -* Wed Mar 23 2016 Tom Hughes - 2.1.11-7 -- Rebuild for Node.js 4.4.x - -* Wed Feb 10 2016 Tom Hughes - 2.1.11-6 -- Rebuild for Node.js 4.3.x - -* Thu Feb 04 2016 Fedora Release Engineering - 2.1.11-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Dec 4 2015 Tom Hughes - 2.1.11-4 -- Rebuild for nodejs 4.2.3 - -* Wed Dec 2 2015 Tom Hughes - 2.1.11-3 -- Rebuild for nodejs 4.2 - -* Wed Nov 25 2015 Tom Hughes - 2.1.11-2 -- Fix rpmlint and checksec warnings -- Make npn(nan) a build time dependency only - -* Tue Nov 24 2015 Tom Hughes - 2.1.11-1 -- Initial build of 2.1.11 diff --git a/sources b/sources deleted file mode 100644 index 84a5dce..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (iconv-3.0.0.tgz) = 6ca4c43f9e49fdef94bad044dc10c15aae8aba43d68771816026466cb118f6fc510d45361776eabcfb29fdafc311d21a9a017632f5b9945d118f553feca44bfa