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

Revision 2621, 15.5 KB checked in by munepi, 13 years ago (diff)

updated self-build-mplayer: added some BuildRequires?

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