1 %define plugin hashchange
2 Summary: jQuery hashchange event
7 Group: Applications/WWW
8 Source0: http://github.com/cowboy/jquery-hashchange/raw/v1.3/jquery.ba-hashchange.min.js
9 # Source0-md5: 757898a5793d29189e52ca6ee8fce808
10 URL: http://benalman.com/projects/jquery-hashchange-plugin/
11 BuildRequires: rpmbuild(macros) >= 1.268
13 BuildRequires: yuicompressor
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _appdir %{_datadir}/jquery/%{plugin}
21 This jQuery plugin enables very basic bookmarkable #hash history via a
22 cross-browser HTML5 window.onhashchange event.
24 While this functionality was initially tied to the jQuery BBQ plugin,
25 the event.special window.onhashchange functionality has now been
26 broken out into a separate plugin for users who want just the basic
27 event & back button support, without all the extra awesomeness that
32 cp -p %{SOURCE0} %{plugin}.js
37 yuicompressor --charset UTF-8 %{plugin}.js -o build/%{plugin}.js
38 js -C -f build/%{plugin}.js
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_appdir}
43 cp -p build/%{plugin}.js $RPM_BUILD_ROOT%{_appdir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)