1 Summary: Fancybox - Fancy lightbox alternative
6 Group: Applications/WWW
7 Source0: http://fancybox.googlecode.com/files/jquery.fancybox-%{version}.zip
8 # Source0-md5: d72d950a798ffaa83750dfd6e4a0e382
9 URL: http://www.fancybox.net/
10 BuildRequires: rpmbuild(macros) > 1.268
11 Requires: jquery >= 1.3
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _appdir %{_datadir}/jquery
18 FancyBox is a tool for displaying images, html content and multi-media
19 in a Mac-style "lightbox" that floats overtop of web page.
22 - Can display images, HTML elements, SWF movies, Iframes and also Ajax
24 - Customizable through settings and CSS
25 - Groups related items and adds navigation.
26 - If the mouse wheel plugin is included in the page then FancyBox will
27 respond to mouse wheel events as well
28 - Support fancy transitions by using easing plugin
29 - Adds a nice drop shadow under the zoomed item
32 Summary: Demo for jQuery.fancybox
33 Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.fancybox
35 Requires: %{name} = %{version}-%{release}
38 Demonstrations and samples for jQuery.fancybox.
41 %setup -qn jquery.fancybox-%{version}
43 find '(' -name '*.js' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
45 mv fancybox/jquery.fancybox{-%{version},}.css
46 mv fancybox/jquery.fancybox{-%{version}.pack,}.js
50 mv fancybox/jquery.fancybox-%{version}.js src/jquery.fancybox.js
52 # deps - rename for now
53 mv fancybox/jquery.easing{-1.3.pack,}.js # ? not used?
54 mv fancybox/jquery.mousewheel{-3.0.2.pack,}.js
56 # adjust demos to work offline
57 mv index.html style.css ajax.txt example demo
58 ln -s %{_appdir}/jquery.js demo
59 ln -s %{_appdir}/fancybox demo
62 s,./fancybox/jquery.fancybox-1.3.1.js,fancybox/jquery.fancybox.js,
63 s,./fancybox/jquery.fancybox-1.3.1.css,fancybox/jquery.fancybox.css,
65 s,http://code.jquery.com/jquery-1.4.2.min.js,jquery.js,
67 s,./fancybox/jquery.mousewheel-3.0.2.pack.js,fancybox/jquery.mousewheel.js,
69 s,./example/,example/,g
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
75 cp -a fancybox $RPM_BUILD_ROOT%{_appdir}
76 cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
86 %defattr(644,root,root,755)
87 %{_examplesdir}/%{name}-%{version}