]> git.pld-linux.org Git - packages/jwplayer.git/blame - jwplayer.spec
up to 6.11
[packages/jwplayer.git] / jwplayer.spec
CommitLineData
35e60aa4
ER
1# NOTE:
2# track releases here: https://github.com/jwplayer/jwplayer/releases
e87e1586 3Summary: Flash Video Player for FLV, H.264/MPEG-4, MP3 and YouTube Videos on your website
5aee2365 4Summary(pl.UTF-8): Odtwarzacz JW Media
73a3c0be 5Name: jwplayer
b6d936c5
ER
6Version: 6.11
7Release: 1
e87e1586 8License: CC 3.0
a67578bf 9Group: Applications/WWW
73a3c0be 10Source0: https://account.jwplayer.com/static/download/%{name}-%{version}.zip
b6d936c5 11# Source0-md5: 5774dd78a8b64dfdd393a304aacad669
1126a9d0 12Source1: https://account.jwplayer.com/static/download/%{name}-skins-free.zip
b6d936c5 13# Source1-md5: 3897a327a1826c67a46078531f9b6a71
1126a9d0 14Source2: lighttpd.conf
83cc1b4d 15Source3: apache.conf
73a3c0be 16URL: http://www.jwplayer.com/about-jwplayer/
5e725329 17BuildRequires: rpmbuild(macros) >= 1.268
fcd266eb 18BuildRequires: unzip
5e725329 19Requires: webapps
c40d97cc 20Requires: webserver(alias)
00e6b162 21Obsoletes: flash_media_player
73a3c0be 22Obsoletes: jw_media_player
a67578bf
ER
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
5e725329
ER
26%define _webapps /etc/webapps
27%define _webapp %{name}
28%define _sysconfdir %{_webapps}/%{_webapp}
29%define _appdir %{_datadir}/%{_webapp}
2a5be263 30
a67578bf 31%description
00e6b162
ER
32The JW Media Player (built with Adobe's Flash) supports playback of a
33single 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
35playlist (with mixed mediatypes and advertisement possibilities), a
36wide range of flashvars (settings) for tweaking both behavior and
5aee2365 37appearance and an extensive, documented JavaScript/ActionScript API.
2c5d3529
JB
38
39%description -l pl.UTF-8
5aee2365
JB
40JW Media Player (zbudowany z Flashem Adobe) potrafi odtwarzać pliki
41multimedialne dowolnego typu obsługiwanego przez Adobe Flash Player
42(MP3, FLV, SWF, JPG, PNG i GIF). Obsługuje także playlisty
43RSS/XSPF/ATOM (z mieszanymi typami mediów), szeroki zakres ustawień do
44modyfikowania zarówno zachowania jak i wyglądu oraz obszerne,
45udokumentowane API JavaScriptu/ActionScriptu.
a67578bf
ER
46
47%prep
1126a9d0 48%setup -qc -a1
b6d936c5 49mv %{name}/* .
1126a9d0 50mv %{name}-skins-free skins
a67578bf
ER
51
52%install
53rm -rf $RPM_BUILD_ROOT
c40d97cc 54install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
73a3c0be 55cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
1126a9d0
ER
56cp -a skins $RPM_BUILD_ROOT%{_appdir}
57cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
83cc1b4d
ER
58cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
59cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
5e725329 60
8e27e6ee
JB
61%clean
62rm -rf $RPM_BUILD_ROOT
63
83cc1b4d
ER
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
5e725329
ER
76%triggerin -- lighttpd
77%webapp_register lighttpd %{_webapp}
78
79%triggerun -- lighttpd
80%webapp_unregister lighttpd %{_webapp}
a67578bf 81
a67578bf
ER
82%files
83%defattr(644,root,root,755)
b6d936c5 84%doc README.html
5f8db32e 85%dir %attr(750,root,http) %{_sysconfdir}
83cc1b4d
ER
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
c40d97cc 88%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
6fafc418 89%dir %{_appdir}
73a3c0be
ER
90%{_appdir}/jwplayer.flash.swf
91%{_appdir}/jwplayer.html5.js
92%{_appdir}/jwplayer.js
1126a9d0
ER
93%dir %{_appdir}/skins
94%{_appdir}/skins/five.xml
95%{_appdir}/skins/six.xml
This page took 0.072222 seconds and 4 git commands to generate.