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}-%{version}.zip
11 # Source0-md5: ef4790a715bfadf8ccc78b4f91989579
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 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
55 cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
56 cp -a skins $RPM_BUILD_ROOT%{_appdir}
57 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
58 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
59 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
62 rm -rf $RPM_BUILD_ROOT
64 %triggerin -- apache1 < 1.3.37-3, apache1-base
65 %webapp_register apache %{_webapp}
67 %triggerun -- apache1 < 1.3.37-3, apache1-base
68 %webapp_unregister apache %{_webapp}
70 %triggerin -- apache < 2.2.0, apache-base
71 %webapp_register httpd %{_webapp}
73 %triggerun -- apache < 2.2.0, apache-base
74 %webapp_unregister httpd %{_webapp}
76 %triggerin -- lighttpd
77 %webapp_register lighttpd %{_webapp}
79 %triggerun -- lighttpd
80 %webapp_unregister lighttpd %{_webapp}
83 %defattr(644,root,root,755)
85 %dir %attr(750,root,http) %{_sysconfdir}
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
88 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
90 %{_appdir}/jwplayer.flash.swf
91 %{_appdir}/jwplayer.html5.js
92 %{_appdir}/jwplayer.js
94 %{_appdir}/skins/five.xml
95 %{_appdir}/skins/six.xml