]>
Commit | Line | Data |
---|---|---|
6c3387e9 ER |
1 | Summary: Fancybox - Fancy lightbox alternative |
2 | Name: jquery-fancybox | |
3 | Version: 1.3.1 | |
4 | Release: 0.1 | |
5 | License: MIT / GPL | |
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 | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define _appdir %{_datadir}/jquery | |
16 | ||
17 | %description | |
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. | |
20 | ||
21 | - Can display images, HTML elements, SWF movies, Iframes and also Ajax | |
22 | requests | |
23 | - Customizable through settings and CSS | |
24 | - Groups related items and adds navigation. | |
25 | - If the mouse wheel plugin is included in the page then FancyBox will | |
26 | respond to mouse wheel events as well | |
27 | - Support fancy transitions by using easing plugin | |
28 | - Adds a nice drop shadow under the zoomed item | |
29 | ||
30 | %package demo | |
31 | Summary: Demo for jQuery.fancybox | |
32 | Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.fancybox | |
33 | Group: Development | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description demo | |
37 | Demonstrations and samples for jQuery.fancybox. | |
38 | ||
39 | %prep | |
40 | %setup -qn jquery.fancybox-%{version} | |
41 | ||
42 | find '(' -name '*.js' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,' | |
43 | ||
44 | mv fancybox/jquery.fancybox{-%{version},}.css | |
45 | mv fancybox/jquery.fancybox{-%{version}.pack,}.js | |
46 | mv fancybox/jquery.mousewheel{-3.0.2.pack,}.js | |
47 | mv fancybox/jquery.easing{-1.3.pack,}.js | |
48 | rm fancybox/jquery.fancybox-%{version}.js | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}} | |
53 | cp -a fancybox $RPM_BUILD_ROOT%{_appdir} | |
54 | cp -a example ajax.txt index.html style.css $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %{_appdir}/fancybox | |
62 | ||
63 | %files demo | |
64 | %defattr(644,root,root,755) | |
65 | %{_examplesdir}/%{name}-%{version} |