]> git.pld-linux.org Git - SPECS.git/blob - jwplayer7.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / jwplayer7.spec
1 # NOTE:
2 # track releases here: https://github.com/jwplayer/jwplayer/releases
3 Summary:        Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website
4 Summary(pl.UTF-8):      Odtwarzacz JW Media
5 Name:           jwplayer7
6 Version:        7.2.4
7 Release:        1
8 License:        CC 3.0
9 Group:          Applications/WWW
10 Source0:        https://ssl.p.jwpcdn.com/player/download/jwplayer-%{version}.zip
11 # Source0-md5:  d447b9c6e6213a223f51c2a170a771ee
12 Source2:        lighttpd.conf
13 Source3:        apache.conf
14 URL:            http://www.jwplayer.com/about-jwplayer/
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 BuildRequires:  unzip
17 Requires:       webapps
18 Requires:       webserver(alias)
19 Obsoletes:      flash_media_player
20 Obsoletes:      jw_media_player
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _webapps        /etc/webapps
25 %define         _webapp         %{name}
26 %define         _sysconfdir     %{_webapps}/%{_webapp}
27 %define         _appdir %{_datadir}/%{_webapp}
28
29 %description
30 The JW Media Player (built with Adobe's Flash) supports playback of a
31 single media file of any format the Adobe Flash Player can handle
32 (MP3, FLV, SWF, JPG, PNG and GIF). It also supports RSS, XSPF and ATOM
33 playlist (with mixed mediatypes and advertisement possibilities), a
34 wide range of flashvars (settings) for tweaking both behavior and
35 appearance and an extensive, documented JavaScript/ActionScript API.
36
37 %description -l pl.UTF-8
38 JW Media Player (zbudowany z Flashem Adobe) potrafi odtwarzać pliki
39 multimedialne dowolnego typu obsługiwanego przez Adobe Flash Player
40 (MP3, FLV, SWF, JPG, PNG i GIF). Obsługuje także playlisty
41 RSS/XSPF/ATOM (z mieszanymi typami mediów), szeroki zakres ustawień do
42 modyfikowania zarówno zachowania jak i wyglądu oraz obszerne,
43 udokumentowane API JavaScriptu/ActionScriptu.
44
45 %prep
46 %setup -q -n jwplayer-%{version}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
51 cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
52 cp -a skins $RPM_BUILD_ROOT%{_appdir}
53 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
54 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
55 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %triggerin -- apache1 < 1.3.37-3, apache1-base
61 %webapp_register apache %{_webapp}
62
63 %triggerun -- apache1 < 1.3.37-3, apache1-base
64 %webapp_unregister apache %{_webapp}
65
66 %triggerin -- apache < 2.2.0, apache-base
67 %webapp_register httpd %{_webapp}
68
69 %triggerun -- apache < 2.2.0, apache-base
70 %webapp_unregister httpd %{_webapp}
71
72 %triggerin -- lighttpd
73 %webapp_register lighttpd %{_webapp}
74
75 %triggerun -- lighttpd
76 %webapp_unregister lighttpd %{_webapp}
77
78 %files
79 %defattr(644,root,root,755)
80 %dir %attr(750,root,http) %{_sysconfdir}
81 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
82 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
83 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
84 %dir %{_appdir}
85 %{_appdir}/jwplayer.js
86 %{_appdir}/polyfills.base64.js
87 %{_appdir}/polyfills.promise.js
88 %{_appdir}/provider.cast.js
89 %{_appdir}/provider.shaka.js
90 %{_appdir}/provider.youtube.js
91 %{_appdir}/jwplayer.flash.swf
92
93 %dir %{_appdir}/skins
94 %{_appdir}/skins/beelden.css
95 %{_appdir}/skins/bekle.css
96 %{_appdir}/skins/five.css
97 %{_appdir}/skins/glow.css
98 %{_appdir}/skins/roundster.css
99 %{_appdir}/skins/seven.css
100 %{_appdir}/skins/six.css
101 %{_appdir}/skins/stormtrooper.css
102 %{_appdir}/skins/vapor.css
This page took 0.545537 seconds and 3 git commands to generate.