1 %define plugin touch-punch
2 Summary: Touch Event Support for jQuery UI
3 Name: jquery-ui-%{plugin}
7 Group: Applications/WWW
8 Source0: https://github.com/furf/jquery-ui-touch-punch/tarball/master/%{name}-%{version}.tgz
9 # Source0-md5: e1d0c6664da0b889fcea1a17d21c3e80
10 URL: http://touchpunch.furf.com/
11 BuildRequires: rpmbuild(macros) >= 1.268
13 # depends: jquery.ui.widget.js, jquery.ui.mouse.js
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _appdir %{_datadir}/jquery/ui/%{plugin}
21 jQuery UI Touch Punch is a small hack that enables the use of touch
22 events on sites using the jQuery UI user interface library.
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_appdir}
31 cp -p jquery.ui.%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
32 cp -p jquery.ui.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
33 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)