source: projects/specs/trunk/nonfree/self-build-mplayer/mplayer-vl.spec @ 3126

Revision 3126, 15.7 KB checked in by munepi, 13 years ago (diff)

updated self-build-ffmpeg-vl.spec, self-build-gpac-vl.spec self-build-libquicktime-vl.spec self-build-mplayer-vl.spec self-build-vlc-vl.spec self-build-x264-vl.spec; added rtmpdump-vl.spec

Line 
1%define with_vaapi 1
2%define with_libvpx 1
3
4%define name    mplayer
5%define version 1.0
6%define extver  rc4
7%define release 41%{?extver:.%{extver}}%{?_dist_release}
8%define svndate  20100709
9#% define release       40.%{svndate}%{?_dist_release}
10
11%define ttfontdir   /usr/share/fonts
12%define ttfontlist  TrueType-vlgothic/VL-PGothic-Regular \\\
13                    TrueType-sazanami-gothic/sazanami-gothic
14
15Summary:        The Movie Player
16Summary(ja):    動画プレイヤー
17Name:           %{name}
18Version:        %{version}
19Release:        %{release}
20Source0:        http://www.mplayerhq.hu/MPlayer/releases/MPlayer-%{version}%{extver}.tar.bz2
21#Source0:       mplayer-export-%{svndate}.tar.bz2
22Source1:        http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
23Source10:       mplayer-snapshot-vine.sh
24#Patch2:         %{name}-config.patch
25Patch2:         %{name}-config-20100709-vine.patch
26Patch8:         %{name}-manlinks.patch
27Patch14:        %{name}-nodvdcss.patch
28
29## Vine
30Patch50:       mplayer-20100709-fixed-vo_x11_create_vo_window.patch
31
32License:        GPLv2+
33Group:          Applications/Multimedia
34URL:            http://www.mplayerhq.hu/
35
36BuildRequires:  SDL-devel
37BuildRequires:  aalib-devel
38BuildRequires:  alsa-lib-devel
39BuildRequires:  cdparanoia-devel
40BuildRequires:  desktop-file-utils
41BuildRequires:  esound-devel
42BuildRequires:  enca-devel
43BuildRequires:  freetype2-devel >= 2.0.9
44BuildRequires:  fribidi-devel
45BuildRequires:  fontconfig-devel
46BuildRequires:  giflib-devel
47BuildRequires:  gtk2-devel
48BuildRequires:  mesa-libGL-devel
49BuildRequires:  libXinerama-devel
50BuildRequires:  libXScrnSaver-devel
51BuildRequires:  libXv-devel
52BuildRequires:  libXvMC-devel
53BuildRequires:  libXxf86dga-devel
54BuildRequires:  libXxf86vm-devel
55BuildRequires:  libass-devel
56BuildRequires:  libpng-devel
57BuildRequires:  libjpeg-devel
58BuildRequires:  libdvdread
59BuildRequires:  libmpcdec-devel >= 1.2.1
60BuildRequires:  librtmp-devel >= 2.3
61BuildRequires:  speex-devel >= 1.1
62%if %{?_dist_release} != "vl5"
63%{?with_vaapi:BuildRequires:libva-devel}
64%endif
65BuildRequires:  libvdpau-devel
66BuildRequires:  libvorbis-devel
67%if %{?_dist_release} != "vl5"
68%{?with_libvpx:BuildRequires:  libvpx-devel >= 0.9.1}
69%endif
70BuildRequires:  lzo-devel >= 2
71BuildRequires:  pulseaudio-lib-devel
72BuildRequires:  speex-devel >= 1.1
73BuildRequires:  twolame-devel
74BuildRequires:  xorg-x11-devel
75BuildRequires:  yasm
76BuildRequires:  zlib-devel
77
78# *-devel packages provided by other self-build-* should only be listed
79# in self-build-%{name}.spec as PreReq.
80##Requires:     self-build-mplayer-codecs
81##BuildRequires:        self-build-libdvdcss
82##BuildRequires:        self-build-libdvdnav
83##BuildRequires:  self-build-faac
84##BuildRequires:  self-build-lame
85##BuildRequires:  self-build-libdca
86##BuildRequires:  self-build-x264 >= 0.0.0-15.20110322
87##BuildRequires:  self-build-xvidcore >= 0.9.2
88##BuildRequires:  self-build-faad2 >= 2.6
89##BuildRequires:  self-build-libmad
90##BuildRequires:  self-build-libmpeg2
91
92Requires:       TrueType-vlgothic
93Requires:       mesa-libGL
94
95BuildRoot:      %{_tmppath}/%{name}-%{version}-root
96
97
98%description
99MPlayer can play most standard video formats out of the box and almost
100all others with the help of external codecs.
101MPlayer currently works best from the command line, but visual feedback
102for many functions is available from its onscreen status display (OSD),
103which is also used for displaying subtitles.
104MPlayer also has a GUI with skin support and several unofficial alternative
105graphical frontends are available.
106
107MEncoder is a command line video encoder for advanced users that can
108be built from the MPlayer source tree. Unofficial graphical frontends
109exist but arenot included.
110
111MPlayer supports most common formats, like DVDs, MPEG-1/2/4, etc, but
112support for some newer codecs are not yet inpmlemented.
113You should install mplayer-codecs package if you want to play videos
114using those new codecs.
115
116%description -l ja
117MPlayer は一般的なフォーマットの動画ならそのままですぐ再生できます。
118またそれ以外のほとんど全てのフォーマットも外部 Codec を使用することで再生できます。
119現在の MPlayer はコマンドラインから使うのが一番便利ですが、
120多くの操作は字幕と同様に、
121オンスクリーン・ディスプレイ (OSD) によりその結果が画面上で確認できます。
122MPlayer には スキンを変更できる GUI も用意されていますし、
123また複数の非公式なフロントエンドも利用できます。
124
125MEncoder は上級者向けのコマンドラインの動画用エンコーダーです。
126非公式な GUI フロントエンドもありますが、このパッケージには含まれていません。
127
128MPlayer は何もしなくても DVD や MPEG-1/2/4 のように一般的なフォーマット
129を再生できます。ただし一部の最新のフォーマットへの対応はまだ実装されて
130いないので、そのような動画を再生したい場合は mplayer-codecs パッケージ
131をインストールする必要があります。
132
133
134%prep
135%setup -q -n MPlayer-%{version}%{extver}
136#%setup -q -n mplayer-export-%{svndate}
137
138%patch2 -p1 -b .config
139%patch8 -p1 -b .manlinks
140%patch14 -p1 -b .nodvdcss
141
142%patch50 -p1 -b .x11
143
144%build
145./configure \
146    --prefix=%{_prefix} \
147    --confdir=%{_sysconfdir}/mplayer \
148    --enable-runtime-cpudetection \
149    --extra-cflags="$RPM_OPT_FLAGS" \
150    --disable-libdvdcss-internal \
151    --disable-dvdread-internal \
152    --enable-dvdread \
153    --enable-dvdnav \
154    \
155    --disable-faac-lavc \
156    --disable-mp3lame-lavc \
157    --disable-x264-lavc \
158    \
159    --disable-faad-internal \
160    \
161    --disable-libopenjpeg \
162    \
163    --enable-vdpau \
164    \
165    --disable-bitmap-font \
166    --disable-termcap \
167    --enable-xvmc \
168    --with-xvmclib=XvMCW \
169    \
170    --enable-largefiles \
171    --enable-menu \
172    --enable-gui \
173    --language=ja,en \
174    ;
175
176%{__make} %{?_smp_mflags}
177
178%install
179%{__rm} -rf ${RPM_BUILD_ROOT}
180%{__make} install INSTALLSTRIP= \
181    prefix=${RPM_BUILD_ROOT}%{_prefix} \
182    BINDIR=${RPM_BUILD_ROOT}%{_bindir} \
183    DATADIR=${RPM_BUILD_ROOT}%{_datadir}/mplayer \
184    CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer \
185    LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \
186    MANDIR=${RPM_BUILD_ROOT}%{_mandir} \
187    ;
188
189## install some default config files
190%{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer
191%{__install} -pm 644 etc/example.conf \
192    ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer/mplayer.conf
193%{__install} -pm 644 etc/{input,menu,codecs}.conf \
194    ${RPM_BUILD_ROOT}%{_sysconfdir}/mplayer
195
196# install default skin
197%{__mkdir} -p ${RPM_BUILD_ROOT}%{_datadir}/mplayer/skins
198pushd ${RPM_BUILD_ROOT}%{_datadir}/mplayer/skins
199%{__tar} xjf %{SOURCE1}
200%{__ln_s} Blue default
201popd
202
203# make sybolic link to ttf font for subtitle
204for i in %{ttfontlist}; do
205    if [ -e %{ttfontdir}/$i.ttf ];then
206        %__ln_s -f %{ttfontdir}/$i.ttf ${RPM_BUILD_ROOT}%{_datadir}/mplayer/subfont.ttf;
207        break;
208    fi;
209done
210
211## install TOOLS
212for file in aconvert.sh divx2svcd.sh mencvcd.sh midentify.sh mpconsole.sh qepdvcd.sh subsearch.sh ; do
213%__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .sh`
214done
215
216for file in calcbpp.pl countquant.pl dvd2divxscript.pl ; do
217%__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .pl`
218done
219
220for file in vobshift.py ; do
221%__install -pm 755 TOOLS/$file $RPM_BUILD_ROOT%{_bindir}/`basename $file .py`
222done
223
224%__mkdir -p $RPM_BUILD_ROOT%{_datadir}/mplayer
225%__install -pm 644 TOOLS/*.fp $RPM_BUILD_ROOT%{_datadir}/mplayer/
226
227
228%clean
229%{__rm} -rf ${RPM_BUILD_ROOT}
230
231
232%files
233%defattr(-,root,root)
234%doc AUTHORS Changelog Copyright LICENSE README
235%config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf
236%config(noreplace) %{_sysconfdir}/mplayer/codecs.conf
237%config(noreplace) %{_sysconfdir}/mplayer/input.conf
238%config(noreplace) %{_sysconfdir}/mplayer/menu.conf
239%{_bindir}/mplayer
240%{_bindir}/gmplayer
241%{_bindir}/mencoder
242%{_datadir}/mplayer/skins/Blue
243%{_datadir}/mplayer/skins/default
244%{_datadir}/mplayer/subfont.ttf
245%{_datadir}/applications/mplayer.desktop
246%{_datadir}/pixmaps/mplayer.xpm
247%{_mandir}/man1/mplayer.1*
248%{_mandir}/man1/mencoder.1*
249## TOOLS
250%{_bindir}/aconvert
251%{_bindir}/calcbpp
252%{_bindir}/countquant
253%{_bindir}/divx2svcd
254%{_bindir}/dvd2divxscript
255%{_bindir}/mencvcd
256%{_bindir}/midentify
257%{_bindir}/mpconsole
258%{_bindir}/qepdvcd
259%{_bindir}/subsearch
260%{_bindir}/vobshift
261%{_datadir}/mplayer/*.fp
262
263
264%changelog
265* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-41.rc4
266- new upstream release
267  - ready for Vine Linux 6
268  - revived support for Vine Linux 5
269- added BuildRequires:
270  - libass-devel
271  - librtmp-devel >= 2.3
272  - speex-devel >= 1.1
273
274* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-40.20100709
275- added BuildRequires:
276  - aalib-devel
277  - enca-devel
278  - lzo-devel
279  - speex-devel
280
281* Sun Jul 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-39.20100709
282- updated fixed %{name}-config.patch
283  - applied %{name}-config-20100709-vine.patch
284
285* Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-38.20100709
286- change release to sync with self-build-mplayer
287
288* Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-37.20100709
289- updated source snapshot 20100709
290- renamed %%Source10 to mplayer-snapshot-vine.sh
291- applied mplayer-20100709-fixed-vo_x11_create_vo_window.patch
292- added BuildRequires: libvpx-devel >= 0.9.1
293
294* Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-36.20100621
295- updated source snapshot 20100621
296
297* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-35.20100615
298- updated source snapshot 20100615
299- added BuildRequires: libXinerama-devel
300- dropped vl4 support
301
302* Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-34.20100410
303- updated source snapshot 20100410
304
305* Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-33.20100401
306- updated source snapshot 20100401
307
308* Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-32.20100326
309- updated source snapshot 20100326
310
311* Thu Mar 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-31.20100317
312- updated source snapshot 20100317
313
314* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-30.20100216
315- updated source snapshot 20100216
316- moved scripts from TOOLS
317- added --disable-libopenjpeg in configure options
318
319* Tue Feb 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-29.20100201
320- updated source snapshot 20100201
321- dropped obsolete patches
322- added BuildRequires:
323  - libvdpau-devel
324  - libXScrnSaver-devel
325
326* Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-28.20091031
327- update mplayer-config-20091215-vine.patch
328- update mplayer-20091215-x86_32-compile.patch
329- added --enable-runtime-cpudetection in configure options
330
331* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-27.20091031
332- source snapshot 20091031
333  - updated mplayer-20091031-x86_32-compile.patch
334
335* Sun Oct 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-26.20091003
336- source snapshot 20091003
337
338* Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-25.20090905
339- change release to sync with self-build-mplayer
340
341* Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-24.20090905
342- source snapshot 20090905
343- added settings for vl6
344
345* Thu Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-23.20090821
346- source snapshot 20090821
347- replaced BR: libungif-devel with BR: giflib-devel
348
349* Thu Jul 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-22.20090722
350- source snapshot 20090722
351
352* Fri Jul 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-21.20090702
353- source snapshot 20090702
354
355* Fri Jun 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-20.20090611
356- source snapshot 20090611
357
358* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-19.20090522
359- added Requires: TrueType-vlgothic
360
361* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-18.20090522
362- source snapshot 20090522
363  - build with x264 >= 0.0.0-9.20090522
364  - updated mplayer-20090522-nodvdcss.patch
365
366* Thu May 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-17.20090502
367- change release to sync with self-build-mplayer
368
369* Sun May 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-16.20090502
370- source snapshot 20090502
371- updated mplayer-20090503-x86_32-compile.patch
372- updated mplayer-20090502-nodvdcss.patch
373
374* Thu Apr 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-15.20090327
375- applied mplayer-config-vine.patch
376
377* Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-14.20090327
378- source snapshot 20090327
379- updated mplayer-20090327-x86_32-compile.patch
380- updated mplayer-20090325-nodvdcss.patch
381- dropped gmplayer-about-vine.patch
382- install some default config files
383- added configure options:
384  - --disable-termcap
385  - --enable-xvmc
386  - --with-xvmclib=XvMCW
387- archived doc/mplayer-1.0/TOOLS directory to doc/TOOLS.tar.bz2
388- fixed %%files for *.conf
389
390* Fri Mar 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-13.20090305
391- source snapshot 20090305
392
393* Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-12.20090227
394- source snapshot 20090227
395
396* Tue Feb 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-11.20090216
397- source snapshot 20090216
398
399* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-10.20090206
400- source snapshot 20090206
401- dropped mplayer-man-zh_CN.patch
402- updated mplayer-20090206-nodvdcss.patch
403- changed to PreReq:  self-build-faad2 from faad2-devel
404- added PreReq:  self-build-libmad
405
406* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-9.20090131
407- source snapshot 20090131
408
409* Thu Jan 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-8.20090122
410- change release to sync with self-build-mplayer
411
412* Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-7.20090122
413- source snapshot
414- update mplayer-20090122-nodvdcss.patch
415- added BuildRequires:
416  - faad2-devel
417  - libmpcdec-devel
418  - twolame-devel
419  - yasm
420  - faac-devel (as PreReq in self-build-%{name})
421  - lame-devel (as PreReq in self-build-%{name})
422  - libdca-devel (as PreReq in self-build-%{name})
423  - x264-devel >= 0.0.0-4.20090110 (as PreReq in self-build-%{name})
424  - xvidcore-devel >= 0.9.2 (as PreReq in self-build-%{name})
425
426* Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-6.20090109
427- source snapshot
428- added --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc
429  --disable-faad-internal in configure options
430- dropped gmplayer-add-flv-extension.patch
431
432* Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-5.20081001
433- source snapshot
434- fixed License
435- added some patches from RPM Fusion
436- updated gmplayer-about-vine.patch for 20081001 snapshot
437- added BuildRequires:  libdvdread
438- added BuildRequires:  self-build-libdvdcss self-build-libdvdnav
439- added --disable-dvdread-internal --enable-dvdread --enable-dvdnav
440  in configure options
441#- applied mplayer-avoid-Warning_MVs_not_available.patch for VineSeed
442
443* Mon Nov 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-4.rc2
444- fixed License
445- added some devel packages to support OpenGL
446
447* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3.rc2
448- spec in utf8
449- fix sybolic link of subfont for vl5
450
451* Wed May 07 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-2.rc2vl4
452- add "Patch105: CVE-2008-1558.patch".
453
454* Fri May 02 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-1.rc2vl4
455- build with new versioning policy.
456- fix Source[01] URLs.
457- add "Patch200: gmplayer-about-vine.patch".
458- add "Patch201: gmplayer-add-flv-extension.patch".
459
460* Sun Feb 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-0vl0.3rc2
461- add four official security patches (CVE-2008-0485, CVE-2008-0486,
462  CVE-2008-0629, CVE-2008-0630)
463- add mplayer-1.0rc2-20080211-stream_cddb.patch
464
465* Tue Feb 12 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.2rc2
466- change source download URL. <BTS:VineLinux:603>
467
468* Sun Jan 27 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.1rc2
469- fix CONFDIR for make install. <BTS:wishes:33>
470
471* Fri Jan 18 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.0rc2
472- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.