]>
Commit | Line | Data |
---|---|---|
807699a2 ER |
1 | %define plugin touchSwipe |
2 | Summary: A jQuery plugin for touch devices | |
3 | Name: jquery-touchswipe | |
4 | Version: 1.6.6 | |
5 | Release: 1 | |
6 | License: MIT/GPL | |
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/ | |
11 | BuildRequires: unzip | |
12 | Requires: jquery | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _appdir %{_datadir}/jquery/%{plugin} | |
17 | ||
18 | %description | |
19 | A jQuery plugin to be used on touch devices such as iPad, iPhone, | |
20 | Android, etc. | |
21 | ||
22 | Detects single and multiple finger swipes, pinches and falls back to | |
23 | mouse 'drags' on the desktop. | |
24 | ||
25 | Time and distance thresholds can be set to destinguish between swipe | |
26 | gesture and slow drag. | |
27 | ||
28 | Allows exclusion of child elements (interactive elements) as well | |
29 | allowing page scrolling or page zooming depending on configuration. | |
30 | ||
31 | %package demo | |
32 | Summary: Demo for jQuery.%{plugin} | |
33 | Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.%{plugin} | |
34 | Group: Development | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description demo | |
38 | Demonstrations and samples for jQuery.%{plugin}. | |
39 | ||
40 | %prep | |
41 | %setup -qc | |
42 | mv TouchSwipe-Jquery-Plugin-%{version}/* . | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}} | |
47 | ||
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 | |
51 | ||
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 | |
54 | ||
55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | cp -a demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %{_appdir} | |
64 | ||
65 | %files demo | |
66 | %defattr(644,root,root,755) | |
67 | %{_examplesdir}/%{name}-%{version} |