2 # - paths and deps for demo
3 %define plugin mousewheel
4 Summary: jQuery Mouse Wheel Plugin
9 Group: Applications/WWW
10 Source0: https://github.com/downloads/brandonaaron/jquery-mousewheel/jquery-mousewheel-%{version}.zip
11 # Source0-md5: 3b4c993af810fa82b8e0a1a206ce0952
12 URL: https://github.com/brandonaaron/jquery-mousewheel
13 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires: jquery >= 1.2
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _appdir %{_datadir}/jquery/%{plugin}
22 A jQuery plugin that adds cross-browser mouse wheel support.
24 In order to use the plugin, simply bind the "mousewheel" event to an
25 element. It also provides two helper methods called mousewheel and
26 unmousewheel that act just like other event helper methods in jQuery.
27 The event callback receives three extra arguments which are the
28 normalized "deltas" of the mouse wheel.
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}.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_appdir}
46 cp -p jquery.%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
47 cp -p jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
48 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51 cp -a test/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
61 %defattr(644,root,root,755)
62 %{_examplesdir}/%{name}-%{version}