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