]>
Commit | Line | Data |
---|---|---|
1 | %define ver %(echo %{version} | tr . -) | |
2 | Summary: JW Media Player | |
3 | Summary(pl.UTF-8): Odtwarzacz JW Media | |
4 | Name: jw_media_player | |
5 | Version: 3.16 | |
6 | Release: 1 | |
7 | Epoch: 1 | |
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 | |
15 | BuildRequires: unzip | |
16 | Requires: webapps | |
17 | Requires: webserver(alias) | |
18 | Obsoletes: flash_media_player | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _webapps /etc/webapps | |
23 | %define _webapp %{name} | |
24 | %define _sysconfdir %{_webapps}/%{_webapp} | |
25 | %define _appdir %{_datadir}/%{_webapp} | |
26 | ||
27 | %description | |
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. | |
34 | ||
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. | |
42 | ||
43 | %prep | |
44 | %setup -q -n mediaplayer-%{ver} | |
45 | ||
46 | %install | |
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 | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %triggerin -- lighttpd | |
56 | %webapp_register lighttpd %{_webapp} | |
57 | ||
58 | %triggerun -- lighttpd | |
59 | %webapp_unregister lighttpd %{_webapp} | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf | |
64 | %dir %{_appdir} | |
65 | %{_appdir}/mediaplayer.swf |