[packages/jquery-cookie] - update to 1.1, cookie plus decode fix included

glen glen at pld-linux.org
Mon Jul 9 16:03:45 CEST 2012


commit bb4fdca6a1dad867a9d96751936e2b8928e7c6af
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 9 16:58:05 2012 +0300

    - update to 1.1, cookie plus decode fix included

 issue-13.patch     | 51 ---------------------------------------------------
 jquery-cookie.spec | 18 ++++++++++--------
 2 files changed, 10 insertions(+), 59 deletions(-)
---
diff --git a/jquery-cookie.spec b/jquery-cookie.spec
index 34c201e..f058564 100644
--- a/jquery-cookie.spec
+++ b/jquery-cookie.spec
@@ -1,13 +1,12 @@
 %define		plugin	cookie
 Summary:	jQuery Cookie plugin
 Name:		jquery-%{plugin}
-Version:	1.0
-Release:	2
+Version:	1.1
+Release:	1
 License:	MIT / GPL
 Group:		Applications/WWW
-Source0:	https://github.com/carhartl/jquery-cookie/tarball/master#/%{plugin}.tgz
-Patch0:		issue-13.patch
-# Source0-md5:	d1be69258e0b0745e871b067fbf6cfac
+Source0:	https://github.com/carhartl/jquery-cookie/tarball/v1.1/%{name}-%{version}.tgz
+# Source0-md5:	18f71cea2801bcbe1da2aa810c73833c
 URL:		http://plugins.jquery.com/project/Cookie
 BuildRequires:	js
 BuildRequires:	rpmbuild(macros) > 1.268
@@ -25,22 +24,25 @@ cookies.
 %prep
 %setup -qc
 mv *-%{name}-*/* .
-%patch0 -p1
 
 %build
 install -d build
 # compress .js
-yuicompressor --charset UTF-8 jquery.cookie.js -o build/jquery.cookie.js
+%{__sed} -e 's,/\*!,/*,' jquery.cookie.js > build/tmp.js
+yuicompressor --charset UTF-8 build/tmp.js -o build/jquery.cookie.js
 js -C -f build/jquery.cookie.js
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -p build/jquery.cookie.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+cp -p jquery.cookie.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+cp -p build/jquery.cookie.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README.md CHANGELOG.md
 %{_appdir}


More information about the pld-cvs-commit mailing list