]>
Commit | Line | Data |
---|---|---|
8e27e6ee | 1 | # TODO: spec filename vs Name |
00e6b162 | 2 | Summary: JW Media Player |
2c5d3529 | 3 | Summary(pl.UTF-8): Odtwarzacz Flash Media |
00e6b162 ER |
4 | Name: jw_media_player |
5 | Version: 3.99 | |
c40d97cc | 6 | Release: 0.4 |
a67578bf ER |
7 | License: Creative Commons |
8 | Group: Applications/WWW | |
9 | Source0: http://www.jeroenwijering.com/upload/%{name}.zip | |
00e6b162 | 10 | # Source0-md5: 995e438774dba2c1c3919e62749aa735 |
5e725329 | 11 | Source1: %{name}-lighttpd.conf |
00e6b162 | 12 | URL: http://www.jeroenwijering.com/?item=JW_Media_Player |
5e725329 ER |
13 | BuildRequires: rpmbuild(macros) >= 1.268 |
14 | Requires: webapps | |
c40d97cc | 15 | Requires: webserver(alias) |
00e6b162 | 16 | Obsoletes: flash_media_player |
a67578bf ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
5e725329 ER |
20 | %define _webapps /etc/webapps |
21 | %define _webapp %{name} | |
22 | %define _sysconfdir %{_webapps}/%{_webapp} | |
23 | %define _appdir %{_datadir}/%{_webapp} | |
2a5be263 | 24 | |
a67578bf | 25 | %description |
00e6b162 ER |
26 | The JW Media Player (built with Adobe's Flash) supports playback of a |
27 | single media file of any format the Adobe Flash Player can handle | |
28 | (MP3, FLV, SWF, JPG, PNG and GIF). It also supports RSS, XSPF and ATOM | |
29 | playlist (with mixed mediatypes and advertisement possibilities), a | |
30 | wide range of flashvars (settings) for tweaking both behavior and | |
31 | appearance and an extensive, documented javascript/actionscript API. | |
2c5d3529 JB |
32 | |
33 | %description -l pl.UTF-8 | |
34 | Flash Media Player potrafi odtwarzać pliki multimedialne dowolnego | |
00e6b162 ER |
35 | typu obsługiwanego przez Adobe Flash Player (MP3, FLV, SWF, JPG, PNG i |
36 | GIF). Obsługuje także playlisty RSS/XSPF/ATOM (z mieszanymi typami | |
2c5d3529 JB |
37 | mediów), szeroki zakres ustawień do modyfikowania zarówno zachowania |
38 | jak i wyglądu oraz obszerne, udokumentowane API | |
39 | Javascriptu/Actionscriptu. | |
a67578bf ER |
40 | |
41 | %prep | |
42 | %setup -q -n %{name} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
c40d97cc | 46 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} |
2a5be263 | 47 | cp -a mediaplayer.swf $RPM_BUILD_ROOT%{_appdir} |
5e725329 ER |
48 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf |
49 | ||
8e27e6ee JB |
50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
5e725329 ER |
53 | %triggerin -- lighttpd |
54 | %webapp_register lighttpd %{_webapp} | |
55 | ||
56 | %triggerun -- lighttpd | |
57 | %webapp_unregister lighttpd %{_webapp} | |
a67578bf | 58 | |
a67578bf ER |
59 | %files |
60 | %defattr(644,root,root,755) | |
c40d97cc | 61 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf |
6fafc418 | 62 | %dir %{_appdir} |
2a5be263 | 63 | %{_appdir}/mediaplayer.swf |