2 # track releases here: https://github.com/jwplayer/jwplayer/releases
3 Summary: Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website
4 Summary(pl.UTF-8): Odtwarzacz JW Media
9 Group: Applications/WWW
10 Source0: https://account.jwplayer.com/static/download/%{name}-6.12.zip
11 # Source0-md5: fc733ca3f88a15c59c340a769da496ab
12 Source1: https://account.jwplayer.com/static/download/%{name}-skins-free.zip
13 # Source1-md5: 3897a327a1826c67a46078531f9b6a71
14 Source2: lighttpd.conf
16 URL: http://www.jwplayer.com/about-jwplayer/
17 BuildRequires: rpmbuild(macros) >= 1.268
20 Requires: webserver(alias)
21 Obsoletes: flash_media_player
22 Obsoletes: jw_media_player
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _webapps /etc/webapps
27 %define _webapp %{name}
28 %define _sysconfdir %{_webapps}/%{_webapp}
29 %define _appdir %{_datadir}/%{_webapp}
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
37 appearance and an extensive, documented JavaScript/ActionScript API.
39 %description -l pl.UTF-8
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.
50 mv %{name}-skins-free skins
53 grep -oF 'jwplayer.version="%{version}"' jwplayer.js
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
58 cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
59 cp -a skins $RPM_BUILD_ROOT%{_appdir}
60 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
61 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
62 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
65 rm -rf $RPM_BUILD_ROOT
67 %triggerin -- apache1 < 1.3.37-3, apache1-base
68 %webapp_register apache %{_webapp}
70 %triggerun -- apache1 < 1.3.37-3, apache1-base
71 %webapp_unregister apache %{_webapp}
73 %triggerin -- apache < 2.2.0, apache-base
74 %webapp_register httpd %{_webapp}
76 %triggerun -- apache < 2.2.0, apache-base
77 %webapp_unregister httpd %{_webapp}
79 %triggerin -- lighttpd
80 %webapp_register lighttpd %{_webapp}
82 %triggerun -- lighttpd
83 %webapp_unregister lighttpd %{_webapp}
86 %defattr(644,root,root,755)
88 %dir %attr(750,root,http) %{_sysconfdir}
89 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
90 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
91 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
93 %{_appdir}/jwplayer.flash.swf
94 %{_appdir}/jwplayer.html5.js
95 %{_appdir}/jwplayer.js
97 %{_appdir}/skins/five.xml
98 %{_appdir}/skins/six.xml