diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 2311259..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/js-jquery1-9690801db01709bfbff5f977d07fb7cc14472908.tar.gz -/jquery-1.12.4.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..cd0827a --- /dev/null +++ b/dead.package @@ -0,0 +1,3 @@ +Retired: Fails to build since Fedora 31 + +https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ diff --git a/js-jquery1-disable-gzip-js.patch b/js-jquery1-disable-gzip-js.patch deleted file mode 100644 index 9bf8ecd..0000000 --- a/js-jquery1-disable-gzip-js.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/Gruntfile.js b/Gruntfile.js ---- a/Gruntfile.js -+++ b/Gruntfile.js -@@ -13,7 +13,6 @@ module.exports = function( grunt ) { - - var fs = require( "fs" ), - stripJSONComments = require( "strip-json-comments" ), -- gzip = require( "gzip-js" ), - srcHintOptions = readOptionalJSON( "src/.jshintrc" ), - newNode = !/^v0/.test( process.version ), - diff --git a/js-jquery1.spec b/js-jquery1.spec deleted file mode 100644 index b78df97..0000000 --- a/js-jquery1.spec +++ /dev/null @@ -1,149 +0,0 @@ -Name: js-jquery1 -Version: 1.12.4 -Release: 11%{?dist} -Summary: JavaScript DOM manipulation, event handling, and AJAX library -BuildArch: noarch - -%global ver_x %(echo %{version} | cut -d. -f1) -%global ver_y %(echo %{version} | cut -d. -f2) -%global ver_z %(echo %{version} | cut -d. -f3) - -License: MIT -URL: https://jquery.com/ -Source0: https://github.com/jquery/jquery/archive/%{version}/jquery-%{version}.tar.gz - -# disable gzip-js during build -Patch1: %{name}-disable-gzip-js.patch -# backport of XSS bug fix from upstream -Patch2: xss-fix-b078a62.patch - -BuildRequires: web-assets-devel -BuildRequires: nodejs-packaging -BuildRequires: js-sizzle-static - -Provides: jquery = %{version}-%{release} -Provides: %{name}-static = %{version}-%{release} - -BuildRequires: nodejs-grunt >= 0.4.4-3 -BuildRequires: npm(shelljs) -BuildRequires: npm(grunt-cli) -BuildRequires: npm(grunt-contrib-uglify) -BuildRequires: npm(load-grunt-tasks) -BuildRequires: npm(requirejs) -#BuildRequires: npm(strip-json-comments) # won't work on epel7 branch -BuildRequires: nodejs-strip-json-comments - -Requires: web-assets-filesystem - -%description -jQuery is a fast, small, and feature-rich JavaScript library. It makes things -like HTML document traversal and manipulation, event handling, animation, and -Ajax much simpler with an easy-to-use API that works across a multitude of -browsers. With a combination of versatility and extensibility, jQuery has -changed the way that millions of people write JavaScript. - -%prep -# autosetup doesn't work right on epel7 branch -%setup -qn jquery-%{version} -%patch1 -p1 -%patch2 -p1 - -#remove precompiled stuff -rm -rf dist/* src/sizzle - -#put sizzle where jquery expects it -install -Dp %{_jsdir}/sizzle/latest/sizzle.js src/sizzle/dist/sizzle.js - - -%build -%nodejs_symlink_deps --build -grunt -v 'build:*:*' uglify - - -# missing dependencies -#%%check -#grunt - - -%install -%global installdir %{buildroot}%{_jsdir}/jquery - -mkdir -p %{installdir}/%{version} -cp -p dist/* %{installdir}/%{version} - -mkdir -p %{buildroot}%{_webassetdir} -ln -s ../javascript/jquery %{buildroot}%{_webassetdir}/jquery - -ln -s %{version} %{installdir}/%{ver_x} -ln -s %{version} %{installdir}/%{ver_x}.%{ver_y} - - -%files -%{_jsdir}/jquery -%{_webassetdir}/jquery -%doc AUTHORS.txt CONTRIBUTING.md LICENSE.txt README.md - - -%changelog -* Sat Aug 01 2020 Fedora Release Engineering - 1.12.4-11 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering - 1.12.4-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jan 29 2020 Fedora Release Engineering - 1.12.4-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 1.12.4-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 1.12.4-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 1.12.4-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 1.12.4-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.12.4-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 1.12.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Dec 20 2016 Christopher Tubbs - 1.12.4-2 -- Rebuild with latest grunt - -* Tue Nov 29 2016 Christopher Tubbs - 1.12.4-1 -- Update to 1.12.4 (bz#1399547,bz#1399548) - -* Thu Feb 04 2016 Fedora Release Engineering - 1.11.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 1.11.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Mar 05 2015 T.C. Hollingsworth - 1.11.2-2 -- rebuild with the correct js-sizzle - -* Thu Feb 19 2015 T.C. Hollingsworth - 1.11.2-1 -- new upstream release 1.11.2 - http://blog.jquery.com/2014/12/18/jquery-1-11-2-and-2-1-3-released-safari-fail-safe-edition/ - -* Tue Oct 21 2014 T.C. Hollingsworth - 1.11.1-4 -- drop unneccessary symlinks - -* Tue Jun 03 2014 T.C. Hollingsworth - 1.11.1-3 -- follow the github SourceURL guidelines - -* Sat May 31 2014 T.C. Hollingsworth - 1.11.1-2 -- drop sed hack now that grunt is fixed - -* Fri May 30 2014 T.C. Hollingsworth - 1.11.1-1 -- update to 2.1.1 -- use system packages for build (with help from Jamie Nguyen) - -* Wed Mar 19 2014 T.C. Hollingsworth - 1.11.0-0.1 -- initial package diff --git a/sources b/sources deleted file mode 100644 index e4f7667..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -447fc606ececa4b8bbe8217ad65944a4 jquery-1.12.4.tar.gz diff --git a/xss-fix-b078a62.patch b/xss-fix-b078a62.patch deleted file mode 100644 index 8f730c1..0000000 --- a/xss-fix-b078a62.patch +++ /dev/null @@ -1,91 +0,0 @@ -From b078a62013782c7424a4a61a240c23c4c0b42614 Mon Sep 17 00:00:00 2001 -From: Oleg Gaidarenko -Date: Thu, 10 Sep 2015 13:40:00 +0300 -Subject: [PATCH] Ajax: Mitigate possible XSS vulnerability - -Proposed by @jaubourg - -Fixes gh-2432 -Closes gh-2588 ---- - src/ajax/script.js | 7 +++++++ - test/unit/ajax.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 55 insertions(+), 0 deletion(-) - -diff --git a/src/ajax/script.js b/src/ajax/script.js -index 60b1fb6..0ec27b4 100644 ---- a/src/ajax/script.js -+++ b/src/ajax/script.js -@@ -4,6 +4,13 @@ define( [ - "../ajax" - ], function( jQuery, document ) { - -+// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -+jQuery.ajaxPrefilter( function( s ) { -+ if ( s.crossDomain ) { -+ s.contents.script = false; -+ } -+} ); -+ - // Install script dataType - jQuery.ajaxSetup( { - accepts: { -diff --git a/test/unit/ajax.js b/test/unit/ajax.js -index 14fe0be..6479587 100644 ---- a/test/unit/ajax.js -+++ b/test/unit/ajax.js -@@ -71,6 +71,54 @@ QUnit.module( "ajax", { - }; - } ); - -+ ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) { -+ return { -+ create: function( options ) { -+ options.crossDomain = true; -+ return jQuery.ajax( url( "data/script.php?header=ecma" ), options ); -+ }, -+ success: function() { -+ assert.ok( true, "success" ); -+ }, -+ complete: function() { -+ assert.ok( true, "complete" ); -+ } -+ }; -+ } ); -+ -+ ajaxTest( "jQuery.ajax() - execute js for crossOrigin when dataType option is provided", 3, -+ function( assert ) { -+ return { -+ create: function( options ) { -+ options.crossDomain = true; -+ options.dataType = "script"; -+ return jQuery.ajax( url( "data/script.php?header=ecma" ), options ); -+ }, -+ success: function() { -+ assert.ok( true, "success" ); -+ }, -+ complete: function() { -+ assert.ok( true, "complete" ); -+ } -+ }; -+ } -+ ); -+ -+ ajaxTest( "jQuery.ajax() - do not execute js (crossOrigin)", 2, function( assert ) { -+ return { -+ create: function( options ) { -+ options.crossDomain = true; -+ return jQuery.ajax( url( "data/script.php" ), options ); -+ }, -+ success: function() { -+ assert.ok( true, "success" ); -+ }, -+ complete: function() { -+ assert.ok( true, "complete" ); -+ } -+ }; -+ } ); -+ - ajaxTest( "jQuery.ajax() - success callbacks (late binding)", 8, function( assert ) { - return { - setup: addGlobalEvents( "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxSuccess", assert ),