]> git.pld-linux.org Git - packages/jwplayer.git/blame - jwplayer.spec
add link to sourcecode
[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
e2b85b3f 6Version: 6.9
8d7cbbd9 7Release: 2
e87e1586 8License: CC 3.0
a67578bf 9Group: Applications/WWW
73a3c0be 10Source0: https://account.jwplayer.com/static/download/%{name}-%{version}.zip
e2b85b3f 11# Source0-md5: 5c59cc46840296d7fe0009290274ce67
1126a9d0 12Source1: https://account.jwplayer.com/static/download/%{name}-skins-free.zip
e2b85b3f 13# Source1-md5: cff9340ea2173ec51862db7fc7ca155a
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
1126a9d0 49mv %{name}-skins-free skins
a67578bf
ER
50
51%install
52rm -rf $RPM_BUILD_ROOT
c40d97cc 53install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
73a3c0be 54cp -p *.swf *.js $RPM_BUILD_ROOT%{_appdir}
1126a9d0
ER
55cp -a skins $RPM_BUILD_ROOT%{_appdir}
56cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
83cc1b4d
ER
57cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
58cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
5e725329 59
8e27e6ee
JB
60%clean
61rm -rf $RPM_BUILD_ROOT
62
83cc1b4d
ER
63%triggerin -- apache1 < 1.3.37-3, apache1-base
64%webapp_register apache %{_webapp}
65
66%triggerun -- apache1 < 1.3.37-3, apache1-base
67%webapp_unregister apache %{_webapp}
68
69%triggerin -- apache < 2.2.0, apache-base
70%webapp_register httpd %{_webapp}
71
72%triggerun -- apache < 2.2.0, apache-base
73%webapp_unregister httpd %{_webapp}
74
5e725329
ER
75%triggerin -- lighttpd
76%webapp_register lighttpd %{_webapp}
77
78%triggerun -- lighttpd
79%webapp_unregister lighttpd %{_webapp}
a67578bf 80
a67578bf
ER
81%files
82%defattr(644,root,root,755)
5f8db32e 83%dir %attr(750,root,http) %{_sysconfdir}
83cc1b4d
ER
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
c40d97cc 86%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
6fafc418 87%dir %{_appdir}
73a3c0be
ER
88%{_appdir}/jwplayer.flash.swf
89%{_appdir}/jwplayer.html5.js
90%{_appdir}/jwplayer.js
1126a9d0
ER
91%dir %{_appdir}/skins
92%{_appdir}/skins/five.xml
93%{_appdir}/skins/six.xml
This page took 0.074337 seconds and 4 git commands to generate.