]>
Commit | Line | Data |
---|---|---|
e87e1586 | 1 | Summary: Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website |
5aee2365 | 2 | Summary(pl.UTF-8): Odtwarzacz JW Media |
73a3c0be ER |
3 | Name: jwplayer |
4 | Version: 6.8 | |
1126a9d0 | 5 | Release: 0.2 |
e87e1586 | 6 | License: CC 3.0 |
a67578bf | 7 | Group: Applications/WWW |
73a3c0be ER |
8 | Source0: https://account.jwplayer.com/static/download/%{name}-%{version}.zip |
9 | # Source0-md5: cf4647973e2f0b338d5986745fecb932 | |
1126a9d0 ER |
10 | Source1: https://account.jwplayer.com/static/download/%{name}-skins-free.zip |
11 | # Source1-md5: fdc9c63a7b533b31d14af5f7e0ae3383 | |
12 | Source2: lighttpd.conf | |
73a3c0be | 13 | URL: http://www.jwplayer.com/about-jwplayer/ |
5e725329 | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
fcd266eb | 15 | BuildRequires: unzip |
5e725329 | 16 | Requires: webapps |
c40d97cc | 17 | Requires: webserver(alias) |
00e6b162 | 18 | Obsoletes: flash_media_player |
73a3c0be | 19 | Obsoletes: jw_media_player |
a67578bf ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
5e725329 ER |
23 | %define _webapps /etc/webapps |
24 | %define _webapp %{name} | |
25 | %define _sysconfdir %{_webapps}/%{_webapp} | |
26 | %define _appdir %{_datadir}/%{_webapp} | |
2a5be263 | 27 | |
a67578bf | 28 | %description |
00e6b162 ER |
29 | The JW Media Player (built with Adobe's Flash) supports playback of a |
30 | single media file of any format the Adobe Flash Player can handle | |
31 | (MP3, FLV, SWF, JPG, PNG and GIF). It also supports RSS, XSPF and ATOM | |
32 | playlist (with mixed mediatypes and advertisement possibilities), a | |
33 | wide range of flashvars (settings) for tweaking both behavior and | |
5aee2365 | 34 | appearance and an extensive, documented JavaScript/ActionScript API. |
2c5d3529 JB |
35 | |
36 | %description -l pl.UTF-8 | |
5aee2365 JB |
37 | JW Media Player (zbudowany z Flashem Adobe) potrafi odtwarzać pliki |
38 | multimedialne dowolnego typu obsługiwanego przez Adobe Flash Player | |
39 | (MP3, FLV, SWF, JPG, PNG i GIF). Obsługuje także playlisty | |
40 | RSS/XSPF/ATOM (z mieszanymi typami mediów), szeroki zakres ustawień do | |
41 | modyfikowania zarówno zachowania jak i wyglądu oraz obszerne, | |
42 | udokumentowane API JavaScriptu/ActionScriptu. | |
a67578bf ER |
43 | |
44 | %prep | |
1126a9d0 | 45 | %setup -qc -a1 |
73a3c0be | 46 | mv %{name}/* . |
1126a9d0 | 47 | mv %{name}-skins-free skins |
a67578bf ER |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
c40d97cc | 51 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} |
73a3c0be | 52 | cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir} |
1126a9d0 ER |
53 | cp -a skins $RPM_BUILD_ROOT%{_appdir} |
54 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf | |
5e725329 | 55 | |
8e27e6ee JB |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
5e725329 ER |
59 | %triggerin -- lighttpd |
60 | %webapp_register lighttpd %{_webapp} | |
61 | ||
62 | %triggerun -- lighttpd | |
63 | %webapp_unregister lighttpd %{_webapp} | |
a67578bf | 64 | |
a67578bf ER |
65 | %files |
66 | %defattr(644,root,root,755) | |
73a3c0be | 67 | %doc README.html |
c40d97cc | 68 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
6fafc418 | 69 | %dir %{_appdir} |
73a3c0be ER |
70 | %{_appdir}/jwplayer.flash.swf |
71 | %{_appdir}/jwplayer.html5.js | |
72 | %{_appdir}/jwplayer.js | |
1126a9d0 ER |
73 | %dir %{_appdir}/skins |
74 | %{_appdir}/skins/five.xml | |
75 | %{_appdir}/skins/six.xml |