1 %define ver %(echo %{version} | tr . -)
2 Summary: JW Media Player
3 Summary(pl.UTF-8): Odtwarzacz JW Media
8 License: Creative Commons
9 Group: Applications/WWW
10 Source0: http://www.jeroenwijering.com/upload/mediaplayer-%{ver}.zip
11 # Source0-md5: ad0f15198fcdbabe453fe94e193a8764
12 Source1: %{name}-lighttpd.conf
13 URL: http://www.jeroenwijering.com/?item=JW_Media_Player
14 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires: webserver(alias)
18 Obsoletes: flash_media_player
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _webapps /etc/webapps
23 %define _webapp %{name}
24 %define _sysconfdir %{_webapps}/%{_webapp}
25 %define _appdir %{_datadir}/%{_webapp}
28 The JW Media Player (built with Adobe's Flash) supports playback of a
29 single media file of any format the Adobe Flash Player can handle
30 (MP3, FLV, SWF, JPG, PNG and GIF). It also supports RSS, XSPF and ATOM
31 playlist (with mixed mediatypes and advertisement possibilities), a
32 wide range of flashvars (settings) for tweaking both behavior and
33 appearance and an extensive, documented JavaScript/ActionScript API.
35 %description -l pl.UTF-8
36 JW Media Player (zbudowany z Flashem Adobe) potrafi odtwarzać pliki
37 multimedialne dowolnego typu obsługiwanego przez Adobe Flash Player
38 (MP3, FLV, SWF, JPG, PNG i GIF). Obsługuje także playlisty
39 RSS/XSPF/ATOM (z mieszanymi typami mediów), szeroki zakres ustawień do
40 modyfikowania zarówno zachowania jak i wyglądu oraz obszerne,
41 udokumentowane API JavaScriptu/ActionScriptu.
44 %setup -q -n mediaplayer-%{ver}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
49 cp -a mediaplayer.swf $RPM_BUILD_ROOT%{_appdir}
50 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
53 rm -rf $RPM_BUILD_ROOT
55 %triggerin -- lighttpd
56 %webapp_register lighttpd %{_webapp}
58 %triggerun -- lighttpd
59 %webapp_unregister lighttpd %{_webapp}
62 %defattr(644,root,root,755)
63 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
65 %{_appdir}/mediaplayer.swf