1 %define plugin touchSwipe
2 Summary: A jQuery plugin for touch devices
3 Name: jquery-touchswipe
7 Group: Applications/WWW
8 Source0: https://github.com/mattbryson/TouchSwipe-Jquery-Plugin/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: 98115bae96b53f2f8294fcfed87b7e54
10 URL: http://labs.rampinteractive.co.uk/touchSwipe/demos/
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _appdir %{_datadir}/jquery/%{plugin}
19 A jQuery plugin to be used on touch devices such as iPad, iPhone,
22 Detects single and multiple finger swipes, pinches and falls back to
23 mouse 'drags' on the desktop.
25 Time and distance thresholds can be set to destinguish between swipe
26 gesture and slow drag.
28 Allows exclusion of child elements (interactive elements) as well
29 allowing page scrolling or page zooming depending on configuration.
32 Summary: Demo for jQuery.%{plugin}
33 Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.%{plugin}
35 Requires: %{name} = %{version}-%{release}
38 Demonstrations and samples for jQuery.%{plugin}.
42 mv TouchSwipe-Jquery-Plugin-%{version}/* .
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
48 cp -p jquery.%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
49 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
50 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.min.js
52 cp -p jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.src.js
53 ln -s %{plugin}-%{version}.src.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
66 %defattr(644,root,root,755)
67 %{_examplesdir}/%{name}-%{version}