Package: libjs-jquery
Version: 1.7.2+debian-2
Severity: important
Tags: patch

new jQuery versions often break apps, and upstream awknowledges this and 
versions
approiately. This package needs to mirror this, so that packages can depend on 
explicit
versions, and then be transitioned to later versions, with testing, as 
approiately.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (101, 'unstable'), (1, 'experimental')
Architecture: armel (armv5tel)

Kernel: Linux 3.4.0-tomoyo-00006-gfd64aac (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

libjs-jquery depends on no packages.

Versions of packages libjs-jquery recommends:
ii  javascript-common  8

libjs-jquery suggests no packages.

-- no debconf information
>From 8a39d82c555cb7bdbcb45e21a0da3f346885cc5f Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnland...@gmail.com>
Date: Wed, 4 Jul 2012 12:11:41 -0700
Subject: [PATCH] Version jquery with new package libjs-jquery1.7

so jQuery can be part of proper transition process in the future.
---
 debian/changelog               |    7 +++++++
 debian/control                 |   21 ++++++++++++++++++---
 debian/install                 |    2 --
 debian/libjs-jquery1.7.install |    2 ++
 debian/rules                   |    6 ++++++
 5 files changed, 33 insertions(+), 5 deletions(-)
 delete mode 100644 debian/install
 create mode 100644 debian/libjs-jquery1.7.install

diff --git a/debian/changelog b/debian/changelog
index 3b51c5b..e5b3eed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+jquery (1.7.2+debian-3) unstable; urgency=low
+
+  * Version jquery with new package libjs-jquery1.7 so jQuery can be part
+      of proper transition process in the future.
+
+ -- Shawn Landden <shawnland...@gmail.com>  Wed, 04 Jul 2012 11:43:51 -0700
+
 jquery (1.7.2+debian-2) unstable; urgency=low
 
   * libjs-jquery package should be marked Multi-Arch: foreign
diff --git a/debian/control b/debian/control
index de833a2..9818920 100644
--- a/debian/control
+++ b/debian/control
@@ -9,11 +9,11 @@ Homepage: http://jquery.com/
 Vcs-Browser: http://git.debian.org/?p=pkg-javascript/jquery.git
 Vcs-Git: git://git.debian.org/git/pkg-javascript/jquery.git
 
-Package: libjs-jquery
+Package: libjs-jquery1.7
 Architecture: all
 Multi-Arch: foreign
-Conflicts: jquery
-Replaces: jquery
+Conflicts: jquery, libjs-jquery (<< 1.7.2+debian-3)
+Replaces: jquery, libjs-jquery (<< 1.7.2+debian-3)
 Depends: ${misc:Depends}
 Recommends: javascript-common
 Description: JavaScript library for dynamic web applications
@@ -21,3 +21,18 @@ Description: JavaScript library for dynamic web applications
  traverse HTML documents, handle events, perform animations, and add Ajax
  interactions to your web pages. jQuery is designed to change the way
  that you write JavaScript.
+
+Package: libjs-jquery
+Architecture: all
+Multi-Arch: foreign
+Conflicts: jquery, libjs-jquery (<< 1.7.2+debian-3)
+Replaces: jquery, libjs-jquery (<< 1.7.2+debian-3)
+Depends: libjs-jquery1.7 (= ${source:Version}), ${misc:Depends}
+Recommends: javascript-common
+Description: JavaScript library for dynamic web applications (default version)
+ jQuery is a fast, concise, JavaScript Library that simplifies how you
+ traverse HTML documents, handle events, perform animations, and add Ajax
+ interactions to your web pages. jQuery is designed to change the way
+ that you write JavaScript.
+ .
+ This package provides a symlink to current default version of jquery.
diff --git a/debian/install b/debian/install
deleted file mode 100644
index 5a2e6a6..0000000
--- a/debian/install
+++ /dev/null
@@ -1,2 +0,0 @@
-dist/*.js		/usr/share/javascript/jquery
-version.txt		/usr/share/javascript/jquery
diff --git a/debian/libjs-jquery1.7.install b/debian/libjs-jquery1.7.install
new file mode 100644
index 0000000..4d3117e
--- /dev/null
+++ b/debian/libjs-jquery1.7.install
@@ -0,0 +1,2 @@
+dist/*.js		/usr/share/javascript/jquery1.7
+version.txt		/usr/share/javascript/jquery1.7
diff --git a/debian/rules b/debian/rules
index 0a3b813..85b64a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,12 @@
 %:
 	dh $@
 
+override_dh_auto_install:
+	dh_auto_install
+	mkdir -p debian/libjs-jquery/usr/share/javascript/
+	ln -s /usr/share/javascript/jquery1.7 \
+debian/libjs-jquery/usr/share/javascript/jquery
+
 override_dh_auto_clean:
 	rm -rf dist/
 	dh_clean
-- 
1.7.9.5

Reply via email to