2 # - paths and deps for demo
4 Summary: Nice, downward compatible, touchable, jQuery dial
9 Group: Applications/WWW
10 Source0: https://github.com/aterrien/jQuery-Knob/tarball/master/%{name}-%{version}.tgz
11 # Source0-md5: acf069e9fd3ae21bdd7f77383b73cd42
12 URL: http://anthonyterrien.com/knob/
13 BuildRequires: closure-compiler
14 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires: jquery >= 1.7
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _appdir %{_datadir}/jquery/%{plugin}
24 - canvas based; no png or jpg sprites.
25 - touch, mouse and mousewheel, keyboard events implemented.
26 - downward compatible; overloads an input element.
29 Summary: Demo for jQuery.%{plugin}
30 Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.%{plugin}
32 Requires: %{name} = %{version}-%{release}
35 Demonstrations and samples for jQuery.%{plugin}.
39 mv *-jQuery-Knob-*/* .
46 out=build/${js#*/jquery.}
48 yuicompressor --charset UTF-8 $js -o $out
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_appdir}
58 cp -p build/%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
59 cp -p js/jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
60 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
62 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63 cp -a index.html $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
74 %defattr(644,root,root,755)
75 %{_examplesdir}/%{name}-%{version}