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