]> git.pld-linux.org Git - packages/jwplayer7.git/blob - jwplayer.spec
e892133eb21e2ebc44a3fa4cbc8cb52ba9c68281
[packages/jwplayer7.git] / jwplayer.spec
1 Summary:        Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website
2 Summary(pl.UTF-8):      Odtwarzacz JW Media
3 Name:           jwplayer
4 Version:        6.9
5 Release:        1
6 License:        CC 3.0
7 Group:          Applications/WWW
8 Source0:        https://account.jwplayer.com/static/download/%{name}-%{version}.zip
9 # Source0-md5:  5c59cc46840296d7fe0009290274ce67
10 Source1:        https://account.jwplayer.com/static/download/%{name}-skins-free.zip
11 # Source1-md5:  cff9340ea2173ec51862db7fc7ca155a
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 -qc -a1
47 mv %{name}/* .
48 mv %{name}-skins-free skins
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
53 cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
54 cp -a skins $RPM_BUILD_ROOT%{_appdir}
55 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
56 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
57 cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %triggerin -- apache1 < 1.3.37-3, apache1-base
63 %webapp_register apache %{_webapp}
64
65 %triggerun -- apache1 < 1.3.37-3, apache1-base
66 %webapp_unregister apache %{_webapp}
67
68 %triggerin -- apache < 2.2.0, apache-base
69 %webapp_register httpd %{_webapp}
70
71 %triggerun -- apache < 2.2.0, apache-base
72 %webapp_unregister httpd %{_webapp}
73
74 %triggerin -- lighttpd
75 %webapp_register lighttpd %{_webapp}
76
77 %triggerun -- lighttpd
78 %webapp_unregister lighttpd %{_webapp}
79
80 %files
81 %defattr(644,root,root,755)
82 %doc README.html
83 %dir %attr(750,root,http) %{_sysconfdir}
84 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
85 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
86 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
87 %dir %{_appdir}
88 %{_appdir}/jwplayer.flash.swf
89 %{_appdir}/jwplayer.html5.js
90 %{_appdir}/jwplayer.js
91 %dir %{_appdir}/skins
92 %{_appdir}/skins/five.xml
93 %{_appdir}/skins/six.xml
This page took 0.081917 seconds and 3 git commands to generate.