packages: jquery-hashchange/jquery-hashchange.spec (NEW) - new
glen
glen at pld-linux.org
Tue Apr 19 11:47:29 CEST 2011
Author: glen Date: Tue Apr 19 09:47:29 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/jquery-hashchange:
jquery-hashchange.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/jquery-hashchange/jquery-hashchange.spec
diff -u /dev/null packages/jquery-hashchange/jquery-hashchange.spec:1.1
--- /dev/null Tue Apr 19 11:47:29 2011
+++ packages/jquery-hashchange/jquery-hashchange.spec Tue Apr 19 11:47:24 2011
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define plugin hashchange
+Summary: jQuery hashchange event
+Name: jquery-%{plugin}
+Version: 1.3
+Release: 1
+License: MIT / GPL
+Group: Applications/WWW
+Source0: http://github.com/cowboy/jquery-hashchange/raw/v1.3/jquery.ba-hashchange.min.js
+# Source0-md5: 757898a5793d29189e52ca6ee8fce808
+URL: http://benalman.com/projects/jquery-hashchange-plugin/
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: js
+BuildRequires: yuicompressor
+Requires: jquery
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_datadir}/jquery/%{plugin}
+
+%description
+This jQuery plugin enables very basic bookmarkable #hash history via a
+cross-browser HTML5 window.onhashchange event.
+
+While this functionality was initially tied to the jQuery BBQ plugin,
+the event.special window.onhashchange functionality has now been
+broken out into a separate plugin for users who want just the basic
+event & back button support, without all the extra awesomeness that
+BBQ provides.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}.js
+
+%build
+# compress .js
+install -d build
+yuicompressor --charset UTF-8 %{plugin}.js -o build/%{plugin}.js
+js -C -f build/%{plugin}.js
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -p build/%{plugin}.js $RPM_BUILD_ROOT%{_appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_appdir}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/04/19 09:47:24 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list