1 %define plugin sortable
2 Summary: A flexible, opinionated sorting plugin for jQuery
6 License: Modified BSD License
7 Group: Applications/WWW
8 Source0: https://github.com/johnny/jquery-sortable/archive/%{version}/%{plugin}-%{version}.tar.gz
9 # Source0-md5: 66eff7676421f96dd05c58451ca4ec61
10 Source1: http://johnny.github.io/jquery-sortable/js/jquery-sortable.js
11 # Source1-md5: d51d97a074b2d39fdc27b85c2c1a7f3f
12 Source2: http://johnny.github.io/jquery-sortable/js/jquery-sortable-min.js
13 # Source2-md5: 1f36199dcb98956681fefc63fa3babef
14 URL: http://johnny.github.io/jquery-sortable/
15 Requires: jquery >= 1.7.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _appdir %{_datadir}/jquery/%{plugin}
22 jQuery Sortable is a flexible, opinionated sorting plugin. It enables
23 items in a list (or table etc.) to be sorted horizontally and
24 vertically using the mouse. Supports nested lists and pure drag/drop
27 jQuery Sortable does not depend on jQuery UI and works well with
28 Twitter's Bootstrap (You can even sort the Bootstrap navigation).
31 Summary: Demo for jQuery.%{plugin}
32 Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.%{plugin}
34 Requires: %{name} = %{version}-%{release}
37 Demonstrations and samples for jQuery.%{plugin}.
45 grep 'jquery-sortable.js v%{version}' jquery-%{plugin}.js
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
51 cp -p jquery-%{plugin}-min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
52 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
53 cp -p jquery-%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.src.js
54 ln -s %{plugin}-%{version}.src.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc README.mkd LICENSE CHANGELOG TODO