source: projects/specs/branches/6/nonfree/self-build-mplayer/self-build-mplayer-vl.spec @ 6500

Revision 6500, 16.7 KB checked in by munepi, 12 years ago (diff)

dropped BuildRequires?: self-build-libdvdcss

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