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

Revision 3126, 16.3 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 pkgname mplayer
2%define name    self-build-%{pkgname}
3%define version 1.0
4%define extver  rc4
5%define release 41%{?extver:.%{extver}}%{?_dist_release}
6%define svndate  20100709
7#% define release       40.%{svndate}%{?_dist_release}
8
9%define source0path     MPlayer/releases/MPlayer-%{version}%{extver}.tar.bz2
10%define source1path     MPlayer/skins/Blue-1.7.tar.bz2
11
12%define with_vaapi 1
13%define with_libvpx 1
14
15Summary:        Package to automatically build %{pkgname} rpm package
16Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
17Name:           %{name}
18Version:        %{version}
19Release:        %{release}
20Source0:        %{pkgname}-vl.spec
21Source1:        %{pkgname}-snapshot-vine.sh
22
23#Source11:      %{pkgname}-export-%{svndate}.tar.bz2
24#Source12:      Blue-1.7.tar.bz2
25
26#Source102:        %{pkgname}-config.patch
27Source102:        %{pkgname}-config-20100709-vine.patch
28Source108:        %{pkgname}-manlinks.patch
29Source114:        %{pkgname}-nodvdcss.patch
30
31Source150:       mplayer-20100709-fixed-vo_x11_create_vo_window.patch
32
33License:        GPLv2+
34Group:          Restricted Software
35
36Requires(post):         self-build-setup >= 0.9.9
37Requires(post):         subversion
38
39# (build)requies of target package.
40Requires(post): SDL-devel
41Requires(post):  aalib-devel
42Requires(post): alsa-lib-devel
43Requires(post): cdparanoia-devel
44Requires(post):  desktop-file-utils
45Requires(post): esound-devel
46Requires(post):  enca-devel
47Requires(post): freetype2-devel >= 2.0.9
48Requires(post):  fribidi-devel
49Requires(post):  fontconfig-devel
50Requires(post): giflib-devel
51Requires(post): gtk2-devel
52Requires(post): mesa-libGL-devel
53Requires(post):  libXinerama-devel
54Requires(post):  libXScrnSaver-devel
55Requires(post):  libXv-devel
56Requires(post):  libXvMC-devel
57Requires(post):  libXxf86dga-devel
58Requires(post):  libXxf86vm-devel
59Requires(post):  libass-devel
60Requires(post): libpng-devel
61Requires(post): libjpeg-devel
62Requires(post): libdvdread
63Requires(post):  libmpcdec-devel >= 1.2.1
64Requires(post):  librtmp-devel >= 2.3
65Requires(post):  speex-devel >= 1.1
66%if %{?_dist_release} != "vl5"
67%{?with_vaapi:Requires(post):libva-devel}
68%endif
69Requires(post):  libvdpau-devel
70Requires(post): libvorbis-devel
71%if %{?_dist_release} != "vl5"
72%{?with_libvpx:Requires(post):  libvpx-devel >= 0.9.1}
73%endif
74Requires(post):  lzo-devel >= 2
75Requires(post):  pulseaudio-lib-devel
76Requires(post):  speex-devel >= 1.1
77Requires(post):  twolame-devel
78Requires(post): xorg-x11-devel
79Requires(post):  yasm
80Requires(post): zlib-devel
81
82Requires(post):         self-build-mplayer-codecs
83Requires(post):         self-build-libdvdcss
84Requires(post):         self-build-libdvdnav
85Requires(post):         self-build-faac
86Requires(post):         self-build-faad2 >= 2.6
87Requires(post):         self-build-lame
88Requires(post):         self-build-libdca
89Requires(post):         self-build-libmad
90%if %{?_dist_release} != "vl5"
91Requires(post): self-build-x264 >= 0.0.0-15.20110322
92%elseif %{?_dist_release} == "vl5"
93Requires(post): self-build-x264 >= 0.0.0-9.20090522
94%endif
95Requires(post):         self-build-xvidcore >= 0.9.2
96Requires(post):         self-build-libmpeg2
97Requires:       TrueType-vlgothic
98Requires:       mesa-libGL
99
100BuildArch:      noarch
101BuildRoot:      %{_tmppath}/%{name}-%{version}-root
102
103Packager:       munepi
104
105%description
106MPlayer can play most standard video formats out of the box and almost
107all others with the help of external codecs.
108MPlayer currently works best from the command line, but visual feedback
109for many functions is available from its onscreen status display (OSD),
110which is also used for displaying subtitles.
111MPlayer also has a GUI with skin support and several unofficial alternative
112graphical frontends are available.
113
114MEncoder is a command line video encoder for advanced users that can
115be built from the MPlayer source tree. Unofficial graphical frontends
116exist but arenot included.
117
118MPlayer supports most common formats, like DVDs, MPEG-1/2/4, etc, but
119support for some newer codecs are not yet inpmlemented.
120You should install mplayer-codecs package if you want to play videos
121using those new codecs.
122
123
124Additional function is automatically included if following
125packages are installed in advance.
126
127samba-libsmbclient-devel: SMB file system support
128
129
130[Note]
131This package requires many other packages to compile
132targetsoftware. So it consume more disk space than usual.
133Also installation takes logner time because of compilation.
134(This will take a few minutes to quarter or half of an hour,
135depends on building environment)
136
137[About self-build package]
138For some kind of software, distributing of binary package
139may viorate the patent or law. Therefore we chose self-build
140packge, create binary package on your machine, for such kind
141of softwares instead of distributing binary package.
142
143Please obey the national law when you use the created binary
144packages. And if you want to use the softwares using patented
145thechnology, it may be required to get a permission, make an
146agreement or purchas a license. Please consider it with your
147purpose or way of use and take appropriate action.
148
149%description -l ja
150MPlayer は一般的なフォーマットの動画ならそのままですぐ再生できます。
151またそれ以外のほとんど全てのフォーマットも外部 Codec を使用すること
152で生できます。
153現在の MPlayer はコマンドラインから使うのが一番便利ですが、多くの操作
154は字幕と同様に、オンスクリーン・ディスプレイ (OSD) によりその結果が画
155面上で確認できます。
156MPlayer には スキンを変更できる GUI も用意されていますし、また複数の
157非公式なフロントエンドも利用できます。
158
159MEncoder は上級者向けのコマンドラインの動画用エンコーダーです。
160非公式な GUI フロントエンドもありますが、このパッケージには含まれて
161いません。
162
163MPlayer は何もしなくても DVD や MPEG-1/2/4 のように一般的なフォーマット
164を再生できます。ただし一部の最新のフォーマットへの対応はまだ実装されて
165いないので、そのような動画を再生したい場合は mplayer-codecs パッケージ
166をインストールする必要があります。
167
168
169このパッケージより前に以下の関連パッケージをインストールして
170おくと、%{pkgname} が対応できる機能が自動的に追加されます。
171
172samba-libsmbclient-devel: SMB ファイルシステムのサポート
173
174
175[注意]
176コンパイルに必要な多くの関連パッケージを要求するので通常より
177ディスクの領域を多く消費します。
178またインストール時にコンパイルを行うため、通常より時間がかか
179る場合があります。(環境にもよりますが数分から数十分程度)
180
181[self-build パッケージについて]
182ソフトウェアによってはバイナリパッケージの配布が特許や法律に
183違反する可能性があるものがあります。その為、このような問題が
184懸念されるソフトウェアについてはバイナリパッケージを直接配布
185せずに、ユーザの環境でバイナリを作成する self-build パッケー
186ジという方法を採っています。
187
188作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
189アのライセンス、および利用する国の各種法令に従ってください。
190また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
191センスの購入などが必要となる場合がありますので、利用する目的
192や形態に応じて各自で判断し適切な対応を取ってください。
193
194
195%prep
196[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
197
198%install
199%{__rm} -rf ${RPM_BUILD_ROOT}
200%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
201%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
202%{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
203#%{__install} -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
204#%{__install} -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
205%{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
206%{__install} -m 644 %{SOURCE108} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
207%{__install} -m 644 %{SOURCE114} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
208%{__install} -m 644 %{SOURCE150} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
209
210
211%clean
212%{__rm} -rf ${RPM_BUILD_ROOT}
213
214%posttrans
215## official tarball
216/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
217    http://www{,1,2,3,4,5,7,8}.mplayerhq.hu/%{source0path} \
218    http://www{,1,2,3,4,5,7,8}.mplayerhq.hu/%{source1path} \
219    635000
220exit 0
221
222## svn checkout
223# set locale
224case $LANG in
225    ja*)LOCALE=ja ;;
226    *) LOCALE=C ;;
227esac
228
229GetSrc_C(){
230    echo -n "     "
231    echo "Download source file with Subversion..."
232}
233
234GetSrc_ja(){
235    echo -n "     "
236    echo "Subversion を用いてソースファイルをダウンロードしています..."
237}
238
239GetSrc_$LOCALE
240
241# svn checkout
242. /etc/self-build.conf
243(cd $TEMP_DIR
244su $BUILD_USER -c "/bin/bash %{_datadir}/%{name}/%{pkgname}-snapshot-vine.sh >/dev/null 2>&1 || exit 1"
245%__mv %{pkgname}-export-%{svndate}.tar.bz2 %{_datadir}/%{name}/ || exit 1
246)
247
248# /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
249#     http://www{,1,2,3,4,5,7,8}.mplayerhq.hu/%{source0path} \
250#     http://www{,1,2,3,4,5,7,8}.mplayerhq.hu/%{source1path} \
251#     635000
252/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec \
253    http://www{,1,2,3,4,5,7,8}.mplayerhq.hu/%{source1path} \
254    635000
255
256%files
257%defattr(-,root,root)
258%{_datadir}/%{name}
259
260%changelog
261* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-41.rc4
262- new upstream release
263  - ready for Vine Linux 6
264  - revived support for Vine Linux 5
265- added Requires(post):
266  - libass-devel
267  - librtmp-devel >= 2.3
268  - speex-devel >= 1.1
269
270* Tue Feb 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-40.20100709
271- added BuildRequires:
272  - aalib-devel
273  - enca-devel
274  - lzo-devel
275  - speex-devel
276
277* Sun Jul 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-39.20100709
278- updated fixed %{name}-config.patch
279  - applied %{name}-config-20100709-vine.patch
280
281* Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-38.20100709
282- unpacked source archives
283
284* Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-37.20100709
285- updated source snapshot 20100709
286- renamed %%Source10 to mplayer-snapshot-vine.sh
287- added Requires(post): libva-devel, libvpx-devel >= 0.9.1
288- dropped vl4 support
289- updated %%description
290
291* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-36.20100621
292- updated source snapshot 20100621
293- added Requires(post): libXinerama-devel
294- dropped vl4 support
295
296* Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-33.20100401
297- updated source snapshot 20100401
298
299* Thu Mar 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-31.20100317
300- updated source snapshot 20100317
301- renamed %%{Source0} to mplayer-vl.spec
302
303* Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-30.20100216
304- updated source snapshot 20100216
305- dropped obsolete patches
306- added Requires(post): libvdpau-devel libXScrnSaver-devel
307
308* Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-28.20091031
309- update mplayer-config-20091215-vine.patch
310- update mplayer-20091215-x86_32-compile.patch
311
312* Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-27.20091031
313- source snapshot 20091031
314  - updated mplayer-20091031-x86_32-compile.patch
315
316* Sun Oct 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-26.20091003
317- source snapshot 20091003
318
319* Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-25.20090905
320- added some if conditions for "vl6"
321
322* Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-24.20090905
323- source snapshot 20090905
324- added settings for vl6
325
326* Thu Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-23.20090821
327- source snapshot 20090821
328- replaced BR: libungif-devel with BR: giflib-devel
329- mentioned VDPAU support in %%description
330
331* Thu Jul 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-22.20090722
332- source snapshot 20090722
333
334* Fri Jul 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-21.20090702
335- source snapshot 20090702
336- check version between original spec and self-build spec in %%prep
337
338* Fri Jun 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-20.20090611
339- source snapshot 20090611
340
341* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-19.20090522
342- added Requires: TrueType-vlgothic
343
344* Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-18.20090522
345- source snapshot 20090522
346  - build with x264 >= 0.0.0-9.20090522
347  - updated mplayer-20090502-nodvdcss.patch
348- avoided to execute self-build-rpm.sh on RPM transaction
349  - moved %%post actions to %%posttrans
350
351* Thu May 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-17.20090502
352- added PreReq: self-build-mplayer-codecs
353
354* Tue May 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-16.20090502
355- added BuildArch: noarch
356- source snapshot 20090502
357- updated mplayer-20090503-x86_32-compile.patch
358- updated mplayer-20090502-nodvdcss.patch
359
360* Thu Apr 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-15.20090327
361- included source archives:
362  - mplayer-export-20090327.tar.bz2
363  - Blue-1.7.tar.bz2
364- applied mplayer-config-vine.patch
365
366* Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-14.20090327
367- source snapshot 20090327
368- updated mplayer-20090327-x86_32-compile.patch
369- updated mplayer-20090325-nodvdcss.patch
370- dropped gmplayer-about-vine.patch
371
372* Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-10.20090206
373- source snapshot 20090206
374- dropped mplayer-man-zh_CN.patch
375- updated mplayer-20090206-nodvdcss.patch
376- changed to PreReq:  self-build-faad2 from faad2-devel
377- added PreReq:  self-build-libmad
378
379* Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-9.20090131
380- source snapshot 20090131
381- fixed %%files section
382
383* Thu Jan 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-8.20090122
384- fixed %%post: added rm -f "$pwd"/%{pkgname}-export-%{svndate}.tar.bz2
385
386* Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-7.20090122
387- source snapshot
388- update mplayer-nodvdcss.patch: mplayer-20090122-nodvdcss.patch
389- added PreReq:
390  - faad2-devel
391  - libmpcdec-devel
392  - twolame-devel
393  - yasm
394  - self-build-libdvdcss
395  - self-build-libdvdnav
396  - self-build-faac
397  - self-build-lame
398  - self-build-libdca
399  - self-build-x264 >= 0.0.0-4.20090110
400  - self-build-xvidcore >= 0.9.2
401- move %%define source0Exists() from %%post section to header
402- fixed %%post section: clean up source archive
403
404* Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-6.20090109
405- source snapshot
406- added --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc
407  --disable-faad-internal in configure options
408- dropped gmplayer-add-flv-extension.patch
409
410* Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-5.20081001
411- source snapshot
412- fixed License
413- added some patches from RPM Fusion
414- updated gmplayer-about-vine.patch for 20081001 snapshot
415- added BuildRequires:  libdvdread
416- added BuildRequires:  self-build-libdvdcss self-build-libdvdnav
417- added --disable-dvdread-internal --enable-dvdread --enable-dvdnav
418  in configure options
419#- applied mplayer-avoid-Warning_MVs_not_available.patch for VineSeed
420- added PreReq: subversion
421
422* Mon Nov 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-4.rc2
423- fixed License
424- added some devel packages to support OpenGL
425
426* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3.rc2
427- spec in utf8
428- fix sybolic link of subfont for vl5
429
430* Wed May 07 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-2.rc2vl4
431- add "Source105: CVE-2008-1558.patch".
432
433* Fri May 02 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-1.rc2vl4
434- build with new versioning policy.
435- add "Source200: gmplayer-about-vine.patch".
436- add "Source201: gmplayer-add-flv-extension.patch".
437- fix <BTS:VineLinux:603>.
438  - add ">= 0.7-1vl4" to "PreReq: self-build-setup".
439  - add mirror URLs to self-build-rpm.sh.
440
441* Sun Feb 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-0vl0.3rc2
442- add four official security patches (CVE-2008-0485, CVE-2008-0486,
443  CVE-2008-0629, CVE-2008-0630)
444- add mplayer-1.0rc2-20080211-stream_cddb.patch
445
446* Tue Feb 12 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.2rc2
447- change source download URL. <BTS:VineLinux:603>
448
449* Sun Jan 27 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.1rc2
450- fix CONFDIR for make install in mplayer.spec. <BTS:wishes:33>
451
452* Fri Jan 18 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.0rc2
453- initial build for Vine Linux.
Note: See TracBrowser for help on using the repository browser.