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