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: jwplayer Version: 6.9 Release: 1 License: CC 3.0 Group: Applications/WWW Source0: https://account.jwplayer.com/static/download/%{name}-%{version}.zip # Source0-md5: 5c59cc46840296d7fe0009290274ce67 Source1: https://account.jwplayer.com/static/download/%{name}-skins-free.zip # Source1-md5: cff9340ea2173ec51862db7fc7ca155a 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 -qc -a1 mv %{name}/* . mv %{name}-skins-free skins %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) %doc README.html %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.flash.swf %{_appdir}/jwplayer.html5.js %{_appdir}/jwplayer.js %dir %{_appdir}/skins %{_appdir}/skins/five.xml %{_appdir}/skins/six.xml