packages: jquery-history/jquery-history.spec - old project dead, switch to ...

glen glen at pld-linux.org
Tue Jun 26 13:21:41 CEST 2012


Author: glen                         Date: Tue Jun 26 11:21:41 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- old project dead, switch to history.js which is maintained and supports html5

---- Files affected:
packages/jquery-history:
   jquery-history.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/jquery-history/jquery-history.spec
diff -u packages/jquery-history/jquery-history.spec:1.1 packages/jquery-history/jquery-history.spec:1.2
--- packages/jquery-history/jquery-history.spec:1.1	Wed Nov 30 16:48:12 2011
+++ packages/jquery-history/jquery-history.spec	Tue Jun 26 13:21:36 2012
@@ -2,15 +2,13 @@
 %define		plugin	history
 Summary:	jQuery history plugin
 Name:		jquery-%{plugin}
-Version:	0.1
+Version:	1.7.1
 Release:	1
-License:	MIT
+License:	New BSD License
 Group:		Applications/WWW
-Source0:	http://github.com/tkyk/jquery-history-plugin/raw/master/jquery.history.js
-# Source0-md5:	9c162509c5b432ebb2d9f7ea0852a26d
-URL:		http://tkyk.github.com/jquery-history-plugin/
-BuildRequires:	closure-compiler
-BuildRequires:	js
+Source0:	https://github.com/balupton/history.js/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5:	8aee8aed522b72695cb80edb219e4576
+URL:		https://github.com/balupton/History.js/
 BuildRequires:	rpmbuild(macros) >= 1.553
 Requires:	jquery
 BuildArch:	noarch
@@ -19,37 +17,29 @@
 %define		_appdir	%{_datadir}/jquery/%{plugin}
 
 %description
-jQuery history plugin helps you to support back/forward buttons and
-bookmarks in your javascript applications. You can store the
-application state into URL hash and restore the state from it.
+History.js gracefully supports the HTML5 History/State APIs
+(pushState, replaceState, onPopState) in all browsers. Including
+continued support for data, titles, replaceState. Supports jQuery,
+MooTools and Prototype. For HTML5 browsers this means that you can
+modify the URL directly, without needing to use hashes anymore. For
+HTML4 browsers it will revert back to using the old onhashchange
+functionality.
 
 %prep
-%setup -qcT
-cp -p %{SOURCE0} .
-
-%build
-install -d build
-
-# compress .js
-js=jquery.history.js
-out=build/$js
-%if 0%{!?debug:1}
-closure-compiler --js $js --charset UTF-8 --js_output_file $out
-js -C -f $out
-%else
-cp -p $js $out
-%endif
+%setup -qc
+mv *-history.js-*/* .
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -p build/jquery.history.js $RPM_BUILD_ROOT%{_appdir}/history.js
+cp -p scripts/compressed/history*.js $RPM_BUILD_ROOT%{_appdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc History.md README.md license.txt
 %{_appdir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -58,5 +48,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2012/06/26 11:21:36  glen
+- old project dead, switch to history.js which is maintained and supports html5
+
 Revision 1.1  2011/11/30 15:48:12  glen
 - new
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/jquery-history/jquery-history.spec?r1=1.1&r2=1.2



More information about the pld-cvs-commit mailing list