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 20100621 |
---|
7 | %define release 36.%{svndate}%{?_dist_release} |
---|
8 | |
---|
9 | |
---|
10 | Summary: Package to automatically build %{pkgname} rpm package |
---|
11 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
12 | Name: %{name} |
---|
13 | Version: %{version} |
---|
14 | Release: %{release} |
---|
15 | Source0: %{pkgname}-vl.spec |
---|
16 | Source1: %{pkgname}-snapshot.sh |
---|
17 | |
---|
18 | Source11: %{pkgname}-export-%{svndate}.tar.bz2 |
---|
19 | Source12: Blue-1.7.tar.bz2 |
---|
20 | |
---|
21 | Source102: %{pkgname}-config.patch |
---|
22 | Source108: %{pkgname}-manlinks.patch |
---|
23 | Source110: %{pkgname}-qcelp.patch |
---|
24 | Source114: %{pkgname}-nodvdcss.patch |
---|
25 | |
---|
26 | License: GPLv2+ |
---|
27 | Group: Restricted Software |
---|
28 | |
---|
29 | Requires(post): self-build-setup >= 0.9.9 |
---|
30 | #Requires(post): subversion |
---|
31 | |
---|
32 | # (build)requies of target package. |
---|
33 | Requires(post): gtk2-devel |
---|
34 | Requires(post): freetype2-devel |
---|
35 | Requires(post): SDL-devel |
---|
36 | Requires(post): alsa-lib-devel |
---|
37 | Requires(post): esound-devel |
---|
38 | Requires(post): cdparanoia-devel |
---|
39 | Requires(post): libvorbis-devel |
---|
40 | Requires(post): libjpeg-devel |
---|
41 | Requires(post): libpng-devel |
---|
42 | Requires(post): giflib-devel |
---|
43 | Requires(post): zlib-devel |
---|
44 | Requires(post): libdvdread |
---|
45 | Requires(post): libmpcdec-devel |
---|
46 | Requires(post): twolame-devel |
---|
47 | Requires(post): yasm |
---|
48 | Requires(post): libvdpau-devel |
---|
49 | Requires(post): libXinerama-devel |
---|
50 | Requires(post): libXScrnSaver-devel |
---|
51 | Requires(post): self-build-mplayer-codecs |
---|
52 | Requires(post): self-build-libdvdcss |
---|
53 | Requires(post): self-build-libdvdnav |
---|
54 | Requires(post): self-build-faac |
---|
55 | Requires(post): self-build-faad2 >= 2.6 |
---|
56 | Requires(post): self-build-lame |
---|
57 | Requires(post): self-build-libdca |
---|
58 | Requires(post): self-build-libmad |
---|
59 | Requires(post): self-build-x264 >= 0.0.0-9.20090522 |
---|
60 | Requires(post): self-build-xvidcore >= 0.9.2 |
---|
61 | Requires: TrueType-vlgothic |
---|
62 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6" |
---|
63 | Requires: mesa-libGL |
---|
64 | Requires(post): xorg-x11-devel |
---|
65 | Requires(post): mesa-libGL-devel |
---|
66 | %endif |
---|
67 | %if %{?_dist_release} == "vl4" |
---|
68 | Requires: XOrg-gl |
---|
69 | Requires(post): XOrg-devel |
---|
70 | Requires(post): XOrg-gl-devel |
---|
71 | %endif |
---|
72 | |
---|
73 | BuildArch: noarch |
---|
74 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
75 | |
---|
76 | Packager: munepi |
---|
77 | |
---|
78 | %description |
---|
79 | MPlayer is the movie player. |
---|
80 | |
---|
81 | If you install this package, it automaticaly downloads source |
---|
82 | code ,compile it, and create rpm packages of %{pkgname}-%{version}%{extver}. |
---|
83 | And the created rpm packages are automatically installed |
---|
84 | if installation is executed by apt-get command or synaptic |
---|
85 | package manager. |
---|
86 | |
---|
87 | Additional function is automatically included if following |
---|
88 | packages are installed in advance. |
---|
89 | |
---|
90 | #lirc: remote control support |
---|
91 | #lame-devel: mp3 encoding |
---|
92 | samba-libsmbclient-devel: SMB file system support |
---|
93 | |
---|
94 | #xorg-x11-drv-nvidia: VDPAU support |
---|
95 | |
---|
96 | [Note] |
---|
97 | This package requires many other packages to compile |
---|
98 | targetsoftware. So it consume more disk space than usual. |
---|
99 | Also installation takes logner time because of compilation. |
---|
100 | (This will take a few minutes to quarter or half of an hour, |
---|
101 | depends on building environment) |
---|
102 | |
---|
103 | [About self-build package] |
---|
104 | For some kind of software, distributing of binary package |
---|
105 | may viorate the patent or law. Therefore we chose self-build |
---|
106 | packge, create binary package on your machine, for such kind |
---|
107 | of softwares instead of distributing binary package. |
---|
108 | |
---|
109 | Please obey the national law when you use the created binary |
---|
110 | packages. And if you want to use the softwares using patented |
---|
111 | thechnology, it may be required to get a permission, make an |
---|
112 | agreement or purchas a license. Please consider it with your |
---|
113 | purpose or way of use and take appropriate action. |
---|
114 | |
---|
115 | %description -l ja |
---|
116 | MPlayer は動画プレイヤーです。 |
---|
117 | |
---|
118 | このパッケージをインストールすると、自動的にソースコードを |
---|
119 | ダウンロードしてコンパイルし、%{pkgname}-%{version}%{extver} |
---|
120 | の rpm パッケージを作成します。 |
---|
121 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
122 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
123 | 行います。 |
---|
124 | |
---|
125 | このパッケージより前に以下の関連パッケージをインストールして |
---|
126 | おくと、%{pkgname} が対応できる機能が自動的に追加されます。 |
---|
127 | |
---|
128 | #lirc: リモコンのサポート |
---|
129 | #lame-devel: mp3 へのエンコード |
---|
130 | samba-libsmbclient-devel: SMB ファイルシステムのサポート |
---|
131 | xorg-x11-drv-nvidia: VDPAU support |
---|
132 | |
---|
133 | [注意] |
---|
134 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
135 | ディスクの領域を多く消費します。 |
---|
136 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
137 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
138 | |
---|
139 | [self-build パッケージについて] |
---|
140 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
141 | 違反する可能性があるものがあります。その為、このような問題が |
---|
142 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
143 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
144 | ジという方法を採っています。 |
---|
145 | |
---|
146 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
147 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
148 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
149 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
150 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
151 | |
---|
152 | |
---|
153 | %prep |
---|
154 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
155 | |
---|
156 | %install |
---|
157 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
158 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
159 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
160 | %{__install} -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
161 | %{__install} -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
162 | %{__install} -m 644 %{SOURCE102} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
163 | %{__install} -m 644 %{SOURCE108} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
164 | %{__install} -m 644 %{SOURCE110} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
165 | %{__install} -m 644 %{SOURCE114} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
166 | |
---|
167 | |
---|
168 | %clean |
---|
169 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
170 | |
---|
171 | %posttrans |
---|
172 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 603000 |
---|
173 | |
---|
174 | |
---|
175 | %files |
---|
176 | %defattr(-,root,root) |
---|
177 | %{_datadir}/%{name} |
---|
178 | |
---|
179 | %changelog |
---|
180 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-36.20100621 |
---|
181 | - updated source snapshot 20100621 |
---|
182 | - added Requires(post): libXinerama-devel |
---|
183 | - dropped vl4 support |
---|
184 | |
---|
185 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-33.20100401 |
---|
186 | - updated source snapshot 20100401 |
---|
187 | |
---|
188 | * Thu Mar 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-31.20100317 |
---|
189 | - updated source snapshot 20100317 |
---|
190 | - renamed %%{Source0} to mplayer-vl.spec |
---|
191 | |
---|
192 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-30.20100216 |
---|
193 | - updated source snapshot 20100216 |
---|
194 | - dropped obsolete patches |
---|
195 | - added Requires(post): libvdpau-devel libXScrnSaver-devel |
---|
196 | |
---|
197 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-28.20091031 |
---|
198 | - update mplayer-config-20091215-vine.patch |
---|
199 | - update mplayer-20091215-x86_32-compile.patch |
---|
200 | |
---|
201 | * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-27.20091031 |
---|
202 | - source snapshot 20091031 |
---|
203 | - updated mplayer-20091031-x86_32-compile.patch |
---|
204 | |
---|
205 | * Sun Oct 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-26.20091003 |
---|
206 | - source snapshot 20091003 |
---|
207 | |
---|
208 | * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-25.20090905 |
---|
209 | - added some if conditions for "vl6" |
---|
210 | |
---|
211 | * Sun Sep 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-24.20090905 |
---|
212 | - source snapshot 20090905 |
---|
213 | - added settings for vl6 |
---|
214 | |
---|
215 | * Thu Aug 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-23.20090821 |
---|
216 | - source snapshot 20090821 |
---|
217 | - replaced BR: libungif-devel with BR: giflib-devel |
---|
218 | - mentioned VDPAU support in %%description |
---|
219 | |
---|
220 | * Thu Jul 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-22.20090722 |
---|
221 | - source snapshot 20090722 |
---|
222 | |
---|
223 | * Fri Jul 03 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-21.20090702 |
---|
224 | - source snapshot 20090702 |
---|
225 | - check version between original spec and self-build spec in %%prep |
---|
226 | |
---|
227 | * Fri Jun 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-20.20090611 |
---|
228 | - source snapshot 20090611 |
---|
229 | |
---|
230 | * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-19.20090522 |
---|
231 | - added Requires: TrueType-vlgothic |
---|
232 | |
---|
233 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-18.20090522 |
---|
234 | - source snapshot 20090522 |
---|
235 | - build with x264 >= 0.0.0-9.20090522 |
---|
236 | - updated mplayer-20090502-nodvdcss.patch |
---|
237 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
238 | - moved %%post actions to %%posttrans |
---|
239 | |
---|
240 | * Thu May 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-17.20090502 |
---|
241 | - added PreReq: self-build-mplayer-codecs |
---|
242 | |
---|
243 | * Tue May 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-16.20090502 |
---|
244 | - added BuildArch: noarch |
---|
245 | - source snapshot 20090502 |
---|
246 | - updated mplayer-20090503-x86_32-compile.patch |
---|
247 | - updated mplayer-20090502-nodvdcss.patch |
---|
248 | |
---|
249 | * Thu Apr 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-15.20090327 |
---|
250 | - included source archives: |
---|
251 | - mplayer-export-20090327.tar.bz2 |
---|
252 | - Blue-1.7.tar.bz2 |
---|
253 | - applied mplayer-config-vine.patch |
---|
254 | |
---|
255 | * Sat Mar 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-14.20090327 |
---|
256 | - source snapshot 20090327 |
---|
257 | - updated mplayer-20090327-x86_32-compile.patch |
---|
258 | - updated mplayer-20090325-nodvdcss.patch |
---|
259 | - dropped gmplayer-about-vine.patch |
---|
260 | |
---|
261 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-10.20090206 |
---|
262 | - source snapshot 20090206 |
---|
263 | - dropped mplayer-man-zh_CN.patch |
---|
264 | - updated mplayer-20090206-nodvdcss.patch |
---|
265 | - changed to PreReq: self-build-faad2 from faad2-devel |
---|
266 | - added PreReq: self-build-libmad |
---|
267 | |
---|
268 | * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-9.20090131 |
---|
269 | - source snapshot 20090131 |
---|
270 | - fixed %%files section |
---|
271 | |
---|
272 | * Thu Jan 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-8.20090122 |
---|
273 | - fixed %%post: added rm -f "$pwd"/%{pkgname}-export-%{svndate}.tar.bz2 |
---|
274 | |
---|
275 | * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-7.20090122 |
---|
276 | - source snapshot |
---|
277 | - update mplayer-nodvdcss.patch: mplayer-20090122-nodvdcss.patch |
---|
278 | - added PreReq: |
---|
279 | - faad2-devel |
---|
280 | - libmpcdec-devel |
---|
281 | - twolame-devel |
---|
282 | - yasm |
---|
283 | - self-build-libdvdcss |
---|
284 | - self-build-libdvdnav |
---|
285 | - self-build-faac |
---|
286 | - self-build-lame |
---|
287 | - self-build-libdca |
---|
288 | - self-build-x264 >= 0.0.0-4.20090110 |
---|
289 | - self-build-xvidcore >= 0.9.2 |
---|
290 | - move %%define source0Exists() from %%post section to header |
---|
291 | - fixed %%post section: clean up source archive |
---|
292 | |
---|
293 | * Sat Jan 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-6.20090109 |
---|
294 | - source snapshot |
---|
295 | - added --disable-faac-lavc --disable-mp3lame-lavc --disable-x264-lavc |
---|
296 | --disable-faad-internal in configure options |
---|
297 | - dropped gmplayer-add-flv-extension.patch |
---|
298 | |
---|
299 | * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-5.20081001 |
---|
300 | - source snapshot |
---|
301 | - fixed License |
---|
302 | - added some patches from RPM Fusion |
---|
303 | - updated gmplayer-about-vine.patch for 20081001 snapshot |
---|
304 | - added BuildRequires: libdvdread |
---|
305 | - added BuildRequires: self-build-libdvdcss self-build-libdvdnav |
---|
306 | - added --disable-dvdread-internal --enable-dvdread --enable-dvdnav |
---|
307 | in configure options |
---|
308 | #- applied mplayer-avoid-Warning_MVs_not_available.patch for VineSeed |
---|
309 | - added PreReq: subversion |
---|
310 | |
---|
311 | * Mon Nov 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-4.rc2 |
---|
312 | - fixed License |
---|
313 | - added some devel packages to support OpenGL |
---|
314 | |
---|
315 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-3.rc2 |
---|
316 | - spec in utf8 |
---|
317 | - fix sybolic link of subfont for vl5 |
---|
318 | |
---|
319 | * Wed May 07 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-2.rc2vl4 |
---|
320 | - add "Source105: CVE-2008-1558.patch". |
---|
321 | |
---|
322 | * Fri May 02 2008 Atsushi SHICHI <ats777@gmail.com> 1.0-1.rc2vl4 |
---|
323 | - build with new versioning policy. |
---|
324 | - add "Source200: gmplayer-about-vine.patch". |
---|
325 | - add "Source201: gmplayer-add-flv-extension.patch". |
---|
326 | - fix <BTS:VineLinux:603>. |
---|
327 | - add ">= 0.7-1vl4" to "PreReq: self-build-setup". |
---|
328 | - add mirror URLs to self-build-rpm.sh. |
---|
329 | |
---|
330 | * Sun Feb 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0-0vl0.3rc2 |
---|
331 | - add four official security patches (CVE-2008-0485, CVE-2008-0486, |
---|
332 | CVE-2008-0629, CVE-2008-0630) |
---|
333 | - add mplayer-1.0rc2-20080211-stream_cddb.patch |
---|
334 | |
---|
335 | * Tue Feb 12 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.2rc2 |
---|
336 | - change source download URL. <BTS:VineLinux:603> |
---|
337 | |
---|
338 | * Sun Jan 27 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.1rc2 |
---|
339 | - fix CONFDIR for make install in mplayer.spec. <BTS:wishes:33> |
---|
340 | |
---|
341 | * Fri Jan 18 2008 Kazutaka HARADA <Kazutaka HARADA> 1.0-0vl0.0rc2 |
---|
342 | - initial build for Vine Linux. |
---|