[js-jquery1/f22] initial import (RHBZ#1078371)

T.C. Hollingsworth patches at fedoraproject.org
Thu Feb 19 13:09:38 UTC 2015


commit ac6afc0111fe76643f2d3380168e7be0a05b986f
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Thu Feb 19 06:08:23 2015 -0700

    initial import (RHBZ#1078371)

 .gitignore                       |   1 +
 js-jquery1-disable-gzip-js.patch |  14 ++++++
 js-jquery1.spec                  | 103 +++++++++++++++++++++++++++++++++++++++
 sources                          |   1 +
 4 files changed, 119 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c0ed2ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/js-jquery1-9690801db01709bfbff5f977d07fb7cc14472908.tar.gz
diff --git a/js-jquery1-disable-gzip-js.patch b/js-jquery1-disable-gzip-js.patch
new file mode 100644
index 0000000..d128656
--- /dev/null
+++ b/js-jquery1-disable-gzip-js.patch
@@ -0,0 +1,14 @@
+diff --git a/Gruntfile.js b/Gruntfile.js
+index 66d2f89..72fea81 100644
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -9,8 +9,7 @@ module.exports = function( grunt ) {
+ 		return data;
+ 	}
+ 
+-	var gzip = require( "gzip-js" ),
+-		srcHintOptions = readOptionalJSON( "src/.jshintrc" );
++	var srcHintOptions = readOptionalJSON( "src/.jshintrc" );
+ 
+ 	// The concatenated file won't pass onevar
+ 	// But our modules can
diff --git a/js-jquery1.spec b/js-jquery1.spec
new file mode 100644
index 0000000..b34dad3
--- /dev/null
+++ b/js-jquery1.spec
@@ -0,0 +1,103 @@
+%global commit 9690801db01709bfbff5f977d07fb7cc14472908
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           js-jquery1
+Version:        1.11.2
+Release:        1%{?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:            http://jquery.com/
+Source0:        https://github.com/jquery/jquery/archive/%{commit}/%{name}-%{commit}.tar.gz
+
+# disable gzip-js during build
+Patch1:         %{name}-disable-gzip-js.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)
+
+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
+%setup -qn jquery-%{commit}
+%patch1 -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 inslibdir %{buildroot}%{_jsdir}/jquery
+
+mkdir -p %{inslibdir}/%{version}
+cp -p dist/* %{inslibdir}/%{version}
+
+mkdir -p %{buildroot}%{_webassetdir}
+ln -s ../javascript/jquery %{buildroot}%{_webassetdir}/jquery
+
+ln -s %{version} %{inslibdir}/%{ver_x}
+ln -s %{version} %{inslibdir}/%{ver_x}.%{ver_y}
+
+
+%files
+%{_jsdir}/jquery
+%{_webassetdir}/jquery
+%doc AUTHORS.txt CONTRIBUTING.md MIT-LICENSE.txt README.md
+
+
+%changelog
+* Thu Feb 19 2015 T.C. Hollingsworth <tchollingsworth at gmail.com> - 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 <tchollingsworth at gmail.com> - 1.11.1-4
+- drop unneccessary symlinks
+
+* Tue Jun 03 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.11.1-3
+- follow the github SourceURL guidelines
+
+* Sat May 31 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.11.1-2
+- drop sed hack now that grunt is fixed
+
+* Fri May 30 2014 T.C. Hollingsworth <tchollingsworth at gmail.com> - 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 <tchollingsworth at gmail.com> - 1.11.0-0.1
+- initial package
diff --git a/sources b/sources
index e69de29..c2425b9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e9df9a2085873c2eff9129a0ce8f8382  js-jquery1-9690801db01709bfbff5f977d07fb7cc14472908.tar.gz


More information about the scm-commits mailing list