2 # - bundles ZeroClipboard 1.0.7, adds jQuery wrapper
4 # - patch default .swf path?
6 Summary: jQuery ZeroClipboard
11 Group: Applications/WWW
12 Source0: http://www.steamdev.com/zclip/archive/jquery.%{plugin}.%{version}.zip
13 # Source0-md5: e80f36a66e2c0fbc10454fc78acfea52
14 URL: http://www.steamdev.com/zclip/
15 BuildRequires: rpmbuild(macros) >= 1.553
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _appdir %{_datadir}/jquery/%{plugin}
24 zClip is a lightweight jQuery "copy to clipboard" plugin built using
25 the popular Zero Clipboard library. This plugin uses an invisible
26 Adobe Flash movie that is fully compatible with Flash Player 10 and
30 - Compatible with Flash 10
31 - Avoids built in browser security conflicts by using a 3rd party
32 browser plugin (Adobe Flash)
33 - Invisible overlay, no interference with page design
34 - Support for CSS ":hover" and ":active" states
35 - Preserves the targeted element's "click" "mouseenter" and
37 - Supplies callback functions for "before copy" and "after copy"
38 - Extremely light weight! (~7KB minified)
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_appdir}
47 cp -p jquery.%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
48 cp -p jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
49 ln -s %{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
50 ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
52 cp -p *.swf $RPM_BUILD_ROOT%{_appdir}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)