# NOTE: # track releases here: https://github.com/jwplayer/jwplayer/releases Summary: Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website Summary(pl.UTF-8): Odtwarzacz JW Media Name: jwplayer7 Version: 7.2.2 Release: 1 License: CC 3.0 Group: Applications/WWW Source0: https://ssl.p.jwpcdn.com/player/download/jwplayer-%{version}.zip # Source0-md5: a74a7f3e303e1b15af196f41835b128a Source2: lighttpd.conf Source3: apache.conf URL: http://www.jwplayer.com/about-jwplayer/ BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: unzip Requires: webapps Requires: webserver(alias) Obsoletes: flash_media_player Obsoletes: jw_media_player BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _webapps /etc/webapps %define _webapp %{name} %define _sysconfdir %{_webapps}/%{_webapp} %define _appdir %{_datadir}/%{_webapp} %description The JW Media Player (built with Adobe's Flash) supports playback of a single media file of any format the Adobe Flash Player can handle (MP3, FLV, SWF, JPG, PNG and GIF). It also supports RSS, XSPF and ATOM playlist (with mixed mediatypes and advertisement possibilities), a wide range of flashvars (settings) for tweaking both behavior and appearance and an extensive, documented JavaScript/ActionScript API. %description -l pl.UTF-8 JW Media Player (zbudowany z Flashem Adobe) potrafi odtwarzać pliki multimedialne dowolnego typu obsługiwanego przez Adobe Flash Player (MP3, FLV, SWF, JPG, PNG i GIF). Obsługuje także playlisty RSS/XSPF/ATOM (z mieszanymi typami mediów), szeroki zakres ustawień do modyfikowania zarówno zachowania jak i wyglądu oraz obszerne, udokumentowane API JavaScriptu/ActionScriptu. %prep %setup -q -n jwplayer-%{version} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir} cp -a skins $RPM_BUILD_ROOT%{_appdir} cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf %clean rm -rf $RPM_BUILD_ROOT %triggerin -- apache1 < 1.3.37-3, apache1-base %webapp_register apache %{_webapp} %triggerun -- apache1 < 1.3.37-3, apache1-base %webapp_unregister apache %{_webapp} %triggerin -- apache < 2.2.0, apache-base %webapp_register httpd %{_webapp} %triggerun -- apache < 2.2.0, apache-base %webapp_unregister httpd %{_webapp} %triggerin -- lighttpd %webapp_register lighttpd %{_webapp} %triggerun -- lighttpd %webapp_unregister lighttpd %{_webapp} %files %defattr(644,root,root,755) %dir %attr(750,root,http) %{_sysconfdir} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf %dir %{_appdir} %{_appdir}/jwplayer.js %{_appdir}/polyfills.base64.js %{_appdir}/polyfills.promise.js %{_appdir}/provider.cast.js %{_appdir}/provider.shaka.js %{_appdir}/provider.youtube.js %{_appdir}/jwplayer.flash.swf %dir %{_appdir}/skins %{_appdir}/skins/beelden.css %{_appdir}/skins/bekle.css %{_appdir}/skins/five.css %{_appdir}/skins/glow.css %{_appdir}/skins/roundster.css %{_appdir}/skins/seven.css %{_appdir}/skins/six.css %{_appdir}/skins/stormtrooper.css %{_appdir}/skins/vapor.css