]>
Commit | Line | Data |
---|---|---|
37050656 | 1 | # |
94cb018b | 2 | # Conditional build: |
62ba71a7 | 3 | # - CPU optimization: |
63bba7db | 4 | %bcond_without altivec # PPC altivec support |
62ba71a7 JB |
5 | %bcond_without ssse3 # SSSE3 optimizations (needs binutils >= 2.16.92) |
6 | %bcond_without runtime # disable runtime cpu detection, just detect CPU | |
7 | # in compile time (advertised by mplayer authors as working faster); in this case | |
8 | # mplayer may not work on machine other then where it was compiled | |
62ba71a7 | 9 | %bcond_without hidden_visibility # no gcc hidden visibility |
d53c9a42 | 10 | %bcond_without verbose # disable verbose build |
62ba71a7 JB |
11 | # - general features: |
12 | %bcond_without bluray # Blu-ray support | |
63bba7db JB |
13 | %bcond_without cdio # libcdio support |
14 | %bcond_without cdparanoia # cdparanoia support (when libcdio not enabled) | |
62ba71a7 | 15 | %bcond_without doc # don't build docs (slow) |
63bba7db JB |
16 | %bcond_without dvdnav # dvdnav support |
17 | %bcond_without system_dvdcss # system libdvdcss library (instead of internal copy) | |
18 | %bcond_without system_dvdread # system libdvdread library (instead of internal copy) | |
3c3fdfcc | 19 | %bcond_without enca # disable using ENCA charset oracle library |
8d7378f8 | 20 | %bcond_without gui # without GTK+ GUI |
63bba7db | 21 | %bcond_without joystick # joystick support |
62ba71a7 JB |
22 | %bcond_without lirc # lirc support |
23 | %bcond_without live # LIVE555 Streaming Media support | |
24 | %bcond_without mencoder # mencoder (a/v encoder) compilation | |
10a6d1a6 | 25 | %bcond_without nemesi # NeMeSi Streaming Media support |
62ba71a7 JB |
26 | %bcond_without osd # osd menu support |
27 | %bcond_without rtmp # RTMPDump Streaming Media support | |
28 | %bcond_with shared # experimental libmplayer.so support | |
29 | %bcond_without smb # Samba (SMB) input support | |
10a6d1a6 | 30 | %bcond_without vstream # TiVo vstream client support |
62ba71a7 JB |
31 | # - codecs: |
32 | %bcond_without amr # Adaptive Multi Rate (AMR) speech codec support | |
10a6d1a6 | 33 | %bcond_without bs2b # BS2B audio filter support |
62ba71a7 JB |
34 | %bcond_without crystalhd # CrystalHD support |
35 | %bcond_without faad # FAAD2 (AAC) support | |
36 | %bcond_without gif # GIF support | |
63bba7db JB |
37 | %bcond_without ladspa # LADSPA plugin support |
38 | %bcond_without libdts # libdts support | |
39 | %bcond_without libdv # libdv en/decoding support | |
63bba7db JB |
40 | %bcond_without lzo # LZO support (requires lzo 2.x) |
41 | %bcond_without mad # mad (audio MPEG) support | |
42 | %bcond_without mpg123 # libmpg123 MP3 decoding support | |
44d571a0 | 43 | %bcond_with musepack # libmpcdec support (deprecated in favour of libavcodec) |
63bba7db | 44 | %bcond_without openjpeg # OpenJPEG (JPEG2000) input/output support |
63bba7db JB |
45 | %bcond_without quicktime # binary quicktime dll support |
46 | %bcond_without real # Real* 8/9 codecs support | |
63bba7db | 47 | %bcond_without vorbis # Ogg Vorbis audio support (both tremor and libvorbis) |
44d571a0 | 48 | %bcond_with tremor # use tremor instead of libvorbis |
62ba71a7 JB |
49 | %bcond_without theora # Ogg Theora video support |
50 | %bcond_without win32 # Win32 codecs support | |
51 | %bcond_without x264 # x264 support | |
52 | %bcond_with xmms # XMMS inputplugin support | |
63bba7db | 53 | %bcond_without xvid # XviD codec |
62ba71a7 | 54 | %bcond_with system_libmpeg2 # system libmpeg2 library (instead of internal copy with some quantizer modifications) |
759ef2d3 | 55 | %bcond_with system_ffmpeg # use ffmpeg-devel, rather bundled sources (likely needs ffmpeg from same svn revision than mplayer) |
62ba71a7 JB |
56 | # - video output: |
57 | %bcond_without aalib # aalib video output | |
58 | %bcond_without caca # libcaca video output | |
59 | %bcond_with directfb # DirectFB video output | |
10a6d1a6 JB |
60 | %bcond_with dxr2 # DXR2 (hardware MPEG decoder) video output |
61 | %bcond_with dxr3 # DXR3/H+ (hardware MPEG decoder) video output | |
62ba71a7 JB |
62 | %bcond_with ggi # GGI video output |
63 | %bcond_without sdl # SDL video output | |
64 | %bcond_with svga # svgalib video output | |
65 | %bcond_without vdpau # VDPAU acceleration | |
66 | %bcond_without vidix # VIDIX video drivers | |
63bba7db | 67 | %bcond_with zr # ZR360[56]7/ZR36060 video output (needs deprecated V4L1 linux headers) |
62ba71a7 JB |
68 | %bcond_with gnomess # controling gnome screensaver [patch not updated] |
69 | # - audio output: | |
70 | %bcond_without alsa # ALSA audio output | |
71 | %bcond_with arts # aRts audio output | |
72 | %bcond_with esd # EsounD sound support | |
73 | %bcond_without jack # JACKD support | |
74 | %bcond_with nas # NAS audio output | |
75 | %bcond_without pulseaudio # pulseaudio output | |
76 | %bcond_without select # audio select() support (required e.g. for ALSA or Vortex2 driver) | |
2dfabf36 | 77 | |
9accd5e5 | 78 | %if %{with alsa} |
79 | %undefine with_select | |
80 | %endif | |
d1f72115 | 81 | %if %{without vorbis} |
44d571a0 | 82 | %undefine with_tremor |
d1f72115 | 83 | %endif |
84 | ||
94cb018b JB |
85 | %ifnarch %{ix86} |
86 | %undefine with_win32 | |
7a82c266 | 87 | %undefine with_quicktime |
1087e996 | 88 | %undefine with_vidix |
94cb018b | 89 | %endif |
38c74592 | 90 | %ifnarch %{ix86} %{x8664} ppc ppc64 |
906bf13b JB |
91 | %undefine with_runtime |
92 | %endif | |
ca278bdf ER |
93 | %ifnarch %{ix86} %{x8664} |
94 | %undefine with_vdpau | |
95 | %endif | |
3d17ae18 ER |
96 | %ifnarch ppc |
97 | %undefine with_altivec | |
98 | %endif | |
810f3f3d ER |
99 | %ifnarch i686 pentium4 athlon %{x8664} |
100 | %undefine with_crystalhd | |
101 | %endif | |
3d17ae18 | 102 | |
40ce9ce9 JB |
103 | %if %{_lib} != "lib" |
104 | %define binsuf %(lib=%{_lib} ; echo ${lib#lib}) | |
1a8df7bd | 105 | %else |
40ce9ce9 | 106 | %ifarch %{ix86} ppc sparc sparcv9 s390 |
e2b12b5a | 107 | %define binsuf 32 |
40ce9ce9 JB |
108 | %else |
109 | %define binsuf %{nil} | |
110 | %endif | |
1a8df7bd | 111 | %endif |
112 | ||
0cd1ec52 | 113 | # date from directory inside of tarball (like mplayer-export-2014-04-29) |
b13d3bd9 | 114 | %define snap 2018-05-22 |
0cd1ec52 | 115 | %define ssnap %(echo %{snap} | tr -d -) |
6fede2f3 | 116 | %define rel 1 |
906bf13b | 117 | Summary: MPlayer - THE Movie Player for UN*X |
eeb91a66 ER |
118 | Summary(de.UTF-8): MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player |
119 | Summary(es.UTF-8): Otro reproductor de películas | |
120 | Summary(ko.UTF-8): 리눅스용 미디어플레이어 | |
121 | Summary(pl.UTF-8): Odtwarzacz filmów dla systemów uniksowych | |
122 | Summary(pt_BR.UTF-8): Reprodutor de filmes | |
2adea73e | 123 | Name: mplayer |
03487a7d | 124 | Version: 1.3 |
c748315c | 125 | Release: 1.%{ssnap}.%{rel} |
1f85fd72 ER |
126 | # DO NOT increase epoch unless it's really neccessary! |
127 | # especially such changes like pre7->pre7try2, increase Release instead! | |
128 | # PS: $ rpmvercmp pre7try2 pre7 | |
129 | # pre7try2 > pre7 | |
59476b48 | 130 | Epoch: 3 |
bc426a7f | 131 | License: GPL |
906bf13b | 132 | Group: Applications/Multimedia |
0cd1ec52 AM |
133 | # Source0: http://mplayerhq.hu/MPlayer/releases/MPlayer-%{version}.tar.xz |
134 | Source0: ftp://ftp.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 | |
b13d3bd9 | 135 | # Source0-md5: d7447a6838ff3055d5ccb93534b88609 |
0cd1ec52 | 136 | Source1: http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 |
b13d3bd9 | 137 | # Source1-md5: 82088aed7d78d680fe866dfa16d6c8c0 |
031c3c7c | 138 | Source3: ftp://ftp1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
0a38bda8 | 139 | # Source3-md5: 7b47904a925cf58ea546ca15f3df160c |
e601cd91 | 140 | Source5: g%{name}.desktop |
623ea2d1 | 141 | Source6: ftp://ftp2.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
0a38bda8 | 142 | # Source6-md5: 1ecd31d17b51f16332b1fcc7da36b312 |
11b89ef7 | 143 | Source7: %{name}.png |
24481cd2 | 144 | Source8: %{name}.desktop |
79907b07 | 145 | |
146 | # build (configure / Makefile) related: | |
147 | Patch10: %{name}-ldflags.patch | |
148 | Patch11: %{name}-altivec.patch | |
149 | Patch12: %{name}-check-byteswap.patch | |
c2bf8f19 | 150 | Patch13: %{name}-visibility-hidden-fix.patch |
2bb2f3d6 | 151 | Patch14: cflags.patch |
1ee1ef52 | 152 | Patch15: %{name}-live555-async.patch |
e156db0d | 153 | |
63bba7db | 154 | Patch17: %{name}-gsm.patch |
7eb1aa3e | 155 | |
63bba7db | 156 | Patch19: %{name}-shared.patch |
990687b2 | 157 | Patch20: %{name}-vstream.patch |
79907b07 | 158 | |
159 | # codecs, outputs, demuxers: | |
990687b2 JB |
160 | Patch21: %{name}-auto-expand.patch |
161 | Patch22: %{name}-release_directfb.patch | |
79907b07 | 162 | |
163 | # goodies: | |
164 | Patch30: %{name}-cp1250-fontdesc.patch | |
2833f81f | 165 | Patch31: %{name}-350.patch |
d1f72115 | 166 | # update, hard to fix right now because of gnome bug 579430: |
167 | # https://bugzilla.gnome.org/show_bug.cgi?id=579430 | |
2833f81f | 168 | #Patch32: %{name}-gnome-screensaver.patch |
79907b07 | 169 | |
b252aa8a | 170 | Patch101: %{name}-link.patch |
79907b07 | 171 | |
c5b97685 | 172 | URL: http://www.mplayerhq.hu/ |
44d571a0 JB |
173 | %{?with_directfb:BuildRequires: DirectFB-devel >= 0.9.22} |
174 | BuildRequires: EGL-devel | |
aeb67db6 | 175 | BuildRequires: OpenAL-devel |
44d571a0 | 176 | BuildRequires: OpenGL-GLX-devel |
11421384 | 177 | %{?with_sdl:BuildRequires: SDL-devel >= 1.1.7} |
44d571a0 JB |
178 | # checked, but seems actually not used |
179 | #%{?with_sdl:BuildRequires: SDL_image-devel} | |
63bba7db | 180 | BuildRequires: a52dec-libs-devel |
dd6c659c JB |
181 | %{?with_aalib:BuildRequires: aalib-devel} |
182 | %{?with_alsa:BuildRequires: alsa-lib-devel} | |
183 | %{?with_arts:BuildRequires: artsc-devel} | |
44d571a0 | 184 | BuildRequires: binutils >= 2.10.1 |
841cb995 | 185 | %{?with_ssse3:BuildRequires: binutils >= 3:2.16.92} |
0431b837 | 186 | BuildRequires: bzip2-devel |
364125e7 | 187 | #%{?with_cdparanoia:BuildRequires: cdparanoia-III-devel} |
df52db46 | 188 | %{?with_gnomess:BuildRequires: dbus-glib-devel} |
c521a17c | 189 | BuildRequires: dirac-devel |
d6da6cb0 | 190 | %{?with_doc:BuildRequires: docbook-dtd45-xml} |
5dcdda0f | 191 | %{?with_doc:BuildRequires: docbook-style-xsl} |
10a6d1a6 | 192 | %{?with_dxr2:BuildRequires: dxr2-driver-devel} |
dd6c659c | 193 | %{?with_dxr3:BuildRequires: em8300-devel} |
3c3fdfcc JB |
194 | %{?with_enca:BuildRequires: enca-devel} |
195 | %{?with_esd:BuildRequires: esound-devel} | |
30e3739f | 196 | BuildRequires: faac-devel |
3c3fdfcc | 197 | %{?with_faad:BuildRequires: faad2-devel >= 2.0} |
759ef2d3 | 198 | %{?with_system_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20081024.3} |
63bba7db | 199 | BuildRequires: fontconfig-devel >= 1:2.4.2 |
6bd88460 | 200 | BuildRequires: freetype-devel >= 1:2.2.1 |
30e3739f | 201 | BuildRequires: fribidi-devel |
3d17ae18 | 202 | %{?with_altivec:BuildRequires: gcc >= 5:4.1} |
3c3fdfcc | 203 | %{?with_gif:BuildRequires: giflib-devel} |
44d571a0 JB |
204 | %{?with_gui:BuildRequires: glib2-devel >= 1:2.6.0} |
205 | BuildRequires: gnutls-devel | |
206 | %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0} | |
d336e259 | 207 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
63bba7db | 208 | %{?with_ladspa:BuildRequires: ladspa-devel} |
a8a0c1d1 | 209 | BuildRequires: lame-libs-devel |
6bd88460 | 210 | BuildRequires: libass-devel >= 0.9.10 |
c3a1256a | 211 | %{?with_bluray:BuildRequires: libbluray-devel} |
10a6d1a6 | 212 | %{?with_bs2b:BuildRequires: libbs2b-devel >= 3.0.0} |
dd6c659c | 213 | %{?with_caca:BuildRequires: libcaca-devel} |
63bba7db JB |
214 | %{?with_cdio:BuildRequires: libcdio-paranoia-devel} |
215 | %{?with_crystalhd:BuildRequires: libcrystalhd-devel} | |
49aed190 | 216 | %{?with_libdts:BuildRequires: libdts-devel} |
c521a17c | 217 | %{?with_libdv:BuildRequires: libdv-devel > 0.9.5} |
364125e7 | 218 | #%{?with_system_dvdcss:BuildRequires: libdvdcss-devel} |
759ef2d3 | 219 | %{?with_dvdnav:BuildRequires: libdvdnav-devel >= 4.1.3} |
63bba7db | 220 | %{?with_system_dvdread:BuildRequires: libdvdread-devel >= 4.1} |
dd6c659c | 221 | %{?with_ggi:BuildRequires: libggi-devel} |
63bba7db JB |
222 | %{?with_ggi:BuildRequires: libggiwmh-devel} |
223 | BuildRequires: libgsm-devel | |
af480c75 | 224 | BuildRequires: libjpeg-devel |
dd6c659c | 225 | %{?with_mad:BuildRequires: libmad-devel} |
c521a17c | 226 | BuildRequires: libmng-devel |
63bba7db JB |
227 | %{?with_musepack:BuildRequires: libmpcdec-devel >= 1.2.1} |
228 | %{?with_system_libmpeg2:BuildRequires: libmpeg2-devel} | |
229 | %{?with_mpg123:BuildRequires: libmpg123-devel >= 1.14} | |
10a6d1a6 | 230 | %{?with_nemesi:BuildRequires: libnemesi-devel >= 0.6.3} |
62ba71a7 | 231 | BuildRequires: libnut-devel |
af480c75 | 232 | BuildRequires: libpng-devel |
63bba7db | 233 | %{?with_rtmp:BuildRequires: librtmp-devel} |
a4298e0c | 234 | %{?with_smb:BuildRequires: libsmbclient-devel} |
de0c2d91 | 235 | %{?with_theora:BuildRequires: libtheora-devel} |
5dcdda0f | 236 | %{?with_vdpau:BuildRequires: libvdpau-devel} |
44d571a0 JB |
237 | %if %{with vorbis} && %{without tremor} |
238 | BuildRequires: libvorbis-devel | |
239 | %endif | |
0431b837 | 240 | BuildRequires: libvpx-devel |
44d571a0 | 241 | # build >= 118 |
bbab8eb7 | 242 | %{?with_x264:BuildRequires: libx264-devel >= 0.1.3} |
ceb01d0e | 243 | BuildRequires: libxslt-progs |
44d571a0 JB |
244 | # with v4l2 headers |
245 | BuildRequires: linux-libc-headers >= 7:2.6.22 | |
dd6c659c | 246 | %{?with_lirc:BuildRequires: lirc-devel} |
1ee1ef52 | 247 | %{?with_live:BuildRequires: live-devel >= 2:2011.01.10} |
841cb995 | 248 | %{?with_lzo:BuildRequires: lzo-devel >= 2.0} |
dd6c659c | 249 | %{?with_nas:BuildRequires: nas-devel} |
b458005d | 250 | BuildRequires: ncurses-devel |
b69a6f83 | 251 | %{?with_amr:BuildRequires: opencore-amr-devel} |
42649b96 | 252 | %{?with_openjpeg:BuildRequires: openjpeg2-devel} |
44d571a0 | 253 | BuildRequires: opus-devel |
e9d22b19 | 254 | BuildRequires: pkgconfig |
86bc294f | 255 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9} |
5dcdda0f | 256 | BuildRequires: rpm >= 4.4.9-56 |
9accd5e5 | 257 | BuildRequires: rpmbuild(macros) >= 1.527 |
c521a17c | 258 | BuildRequires: schroedinger-devel |
aeb67db6 | 259 | BuildRequires: speex-devel >= 1.1 |
dd6c659c | 260 | %{?with_svga:BuildRequires: svgalib-devel} |
3af20979 | 261 | BuildRequires: tar >= 1:1.22 |
44d571a0 | 262 | %{?with_tremor:BuildRequires: tremor-devel} |
c521a17c | 263 | BuildRequires: twolame-devel |
3af20979 | 264 | %{?with_vidix:BuildRequires: vidix-devel} |
10a6d1a6 | 265 | %{?with_vstream:BuildRequires: vstream-client-devel} |
44d571a0 | 266 | BuildRequires: webrtc-libilbc-devel |
c521a17c | 267 | %{?with_xmms:BuildRequires: xmms-devel} |
627a7a97 | 268 | BuildRequires: xorg-lib-libX11-devel |
c521a17c | 269 | BuildRequires: xorg-lib-libXScrnSaver-devel |
627a7a97 ER |
270 | BuildRequires: xorg-lib-libXext-devel |
271 | BuildRequires: xorg-lib-libXinerama-devel | |
272 | BuildRequires: xorg-lib-libXv-devel | |
273 | BuildRequires: xorg-lib-libXvMC-devel | |
274 | BuildRequires: xorg-lib-libXxf86dga-devel | |
275 | BuildRequires: xorg-lib-libXxf86vm-devel | |
b57c3c6c ER |
276 | %{?with_xvid:BuildRequires: xvid-devel >= 1:0.9.0} |
277 | BuildRequires: xz | |
278 | %ifarch %{ix86} %{x8664} | |
279 | BuildRequires: yasm | |
280 | %endif | |
281 | BuildRequires: zlib-devel | |
4d75c49f | 282 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
b458005d | 283 | Requires: OpenGL |
0f2a502d | 284 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2adea73e | 285 | |
a8e3a9a7 | 286 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
bb27cfbd | 287 | %define specflags_ia32 -fomit-frame-pointer |
198487b4 | 288 | %if %{with altivec} |
adfd0023 | 289 | %define specflags_ppc -maltivec |
20a66bdb | 290 | %endif |
2adea73e AM |
291 | |
292 | %description | |
c902f7c6 | 293 | Movie player. Supported input formats: VCD (VideoCD), MPEG1/2, RIFF |
294 | AVI, ASF 1.0, Quicktime. Supported audio codecs: PCM (uncompressed), | |
6db4b1ea | 295 | MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM. Supported video codecs: |
296 | MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX. Supported output | |
c902f7c6 | 297 | devices: Matrox G200/G400 hardware, Matrox G200/G400 overlay, X11 |
298 | optionally with SHM extension, X11 using overlays with the Xvideo | |
299 | extension, OpenGL renderer, Matrox G400 YUV support on framebuffer | |
300 | Voodoo2/3 hardware, SDL v1.1.7 driver etc. | |
2adea73e | 301 | |
8b146837 | 302 | If you want to use win32 codecs install w32codec package. |
4228a246 | 303 | |
e011d408 | 304 | %description -l de.UTF-8 |
deba608c | 305 | MPlayer ist ein unter der freien GPL-Lizenz stehender Media-Player. |
306 | Kennzeichnend ist die herausragende Format- und | |
e011d408 | 307 | Plattform-Kompatibilität. |
deba608c | 308 | |
e011d408 JR |
309 | Es unterstützt eine Vielzahl von Video und Audio-Codecs, darunter auch |
310 | plattformexklusive, wodurch etwa Windows Media auch außerhalb von | |
311 | Windows wiedergegeben werden kann. Darüber hinaus unterstützt er DVB. | |
312 | Eine besondere Fehlertoleranz ermöglicht es dem mehrfach | |
deba608c | 313 | ausgezeichneten Player, auch defekte Dateien abzuspielen. Eine weitere |
e011d408 JR |
314 | Stärke ist dabei der Wegfall jeglicher Installation, so dass bereits |
315 | installierte Codecs nicht mit MPlayer kollidieren können. | |
deba608c | 316 | |
e011d408 | 317 | %description -l es.UTF-8 |
c902f7c6 | 318 | Reproductor video. Formatos de entrada soportados: VCD (VideoCD), |
319 | MPEG1/2, RIFF AVI, ASF 1.0, Quicktime. Codecs de audio soportados: PCM | |
320 | (uncompressed), MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM. Codecs | |
321 | de video soportados: MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX. | |
322 | Dispositivos de salida soportados: Matrox G200/G400 hardware, Matrox | |
e011d408 JR |
323 | G200/G400 overlay, X11 optionalmente con la extensión SHM, X11 usando |
324 | overlays con la extensión Xvideo, plasmador OpenGL, soporte de Matrox | |
c902f7c6 | 325 | G400 YUV en hardware de framebuffer de Voodoo2/3, controlador SDL |
326 | v1.1.7 etc. | |
33c4efab | 327 | |
8b146837 | 328 | Si quiere usar codecs Win32, instale el paquete w32codec. |
33c4efab | 329 | |
e011d408 JR |
330 | %description -l ko.UTF-8 |
331 | MPlayer는 리눅스용 무비플레이어입니다. 대부분의 mpeg, avi 그리고 asf | |
332 | 파일을 재생합니다. VCD, DVD, 심 지어 DivX까지 볼 수 있습니다. | |
333 | MPlayer의 또 다른 큰 특징은 출력 드라이버가 다양하다는 것입니다. X11, | |
334 | Xv, DGA, OpenGL, SVGAlib, fbdev와 작동하며, SDL이나 | |
335 | (Matrox/3dfx/Sis등의) 특정 카드에 종속된 로우레 벨 드라이버들도 사용할 | |
336 | 수 있습니다. 대부분의 출력 드라이버들은 소프트웨어 혹은 하드웨어적인 | |
337 | 크기조절 (scaling)을 지원하므로, 전체화면으로 영상을 감상할 수 | |
338 | 있습니다. 뿐만아니라, 한국어, 영어, 헝가리어, 체코어, 러시아어등의 | |
339 | 부드러운(antialiased) 자막폰트도 사용할 수 있습니다. | |
af480c75 | 340 | |
e011d408 JR |
341 | %description -l pl.UTF-8 |
342 | Odtwarzacz wideo. Wspierane formaty wejściowe: VCD (VideoCD), MPEG1/2, | |
c902f7c6 | 343 | RIFF AVI, ASF 1.0, Quicktime. Wspierane kodeki audio: PCM |
344 | (nieskompresowane), MPEG layer 2/3, AC3, aLaw, MS-GSM, Win32 ACM. | |
345 | Wspierane kodeki wideo: MPEG 1 and MPEG 2, Win32 ICM (VfW), OpenDivX. | |
e011d408 | 346 | Wspierane urządzenia wyjściowe: Matrox G200/G400, X11 opcjonalnie z |
c902f7c6 | 347 | rozszerzeniem SHM, X11 z rozszerzeniem Xvideo, renderer OpenGL, Matrox |
e011d408 | 348 | G400 używając framebuffera, Voodoo2/3, SDL v1.1.7 itp. |
2adea73e | 349 | |
e011d408 | 350 | Jeśli chcesz używać kodeków win32, zainstaluj pakiet w32codec. |
4228a246 | 351 | |
e011d408 JR |
352 | %description -l pt_BR.UTF-8 |
353 | MPlayer é um reprodutor de filmes que suporta vários codecs de vídeo e | |
354 | áudio. Diferentes mecanismos de reprodução podem também ser | |
2abc285c | 355 | escolhidos, incluindo SDL, SVGALib, frame buffer, aalib, X11 e outros. |
356 | ||
11421384 ER |
357 | %package -n gmplayer |
358 | Summary: MPlayer with GTK+ GUI interface | |
eeb91a66 | 359 | Summary(pl.UTF-8): MPlayer z graficznym interfejsem GTK+ |
11421384 | 360 | Group: X11/Applications/Multimedia |
11421384 | 361 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
deba608c | 362 | Requires: %{name}-skin |
11421384 ER |
363 | |
364 | %description -n gmplayer | |
365 | MPlayer with GUI GTK+ interface. | |
366 | ||
e011d408 | 367 | %description -n gmplayer -l pl.UTF-8 |
906bf13b JB |
368 | MPlayer z graficznym interfejsem GTK+. |
369 | ||
11421384 | 370 | %package common |
906bf13b | 371 | Summary: Configuration files and documentation for MPlayer |
eeb91a66 | 372 | Summary(pl.UTF-8): Pliki konfiguracyjne i dokumentacja dla MPlayera |
11421384 | 373 | Group: Applications/Multimedia |
c521a17c | 374 | Suggests: unrar |
1087e996 | 375 | Obsoletes: mplayer-vidix |
11421384 ER |
376 | |
377 | %description common | |
906bf13b JB |
378 | Configuration files, man page and HTML documentation for MPlayer. |
379 | ||
e011d408 | 380 | %description common -l pl.UTF-8 |
906bf13b | 381 | Pliki konfiguracyjne, strona manuala i dokumentacja HTML dla MPlayera. |
11421384 | 382 | |
dc3c7d77 | 383 | %package doc |
63bba7db JB |
384 | Summary: HTML documentation for MPlayer |
385 | Summary(pl.UTF-8): Dokumentacja do MPlayera w formacie HTML | |
dc3c7d77 ER |
386 | Group: Documentation |
387 | ||
388 | %description doc | |
63bba7db JB |
389 | HTML Documentation for MPlayer. |
390 | ||
391 | %description doc -l pl.UTF-8 | |
392 | Dokumentacja do MPlayera w formacie HTML. | |
dc3c7d77 | 393 | |
11421384 | 394 | %package -n mencoder |
906bf13b | 395 | Summary: MEncoder - a movie encoder for Linux |
eeb91a66 | 396 | Summary(pl.UTF-8): MEncoder - koder filmów dla Linuksa |
11421384 ER |
397 | Group: Applications/Multimedia |
398 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
399 | ||
400 | %description -n mencoder | |
906bf13b JB |
401 | MEncoder is a movie encoder for Linux and is a part of the MPlayer |
402 | package. | |
403 | ||
e011d408 JR |
404 | %description -n mencoder -l pl.UTF-8 |
405 | MEncoder to koder filmów dla Linuksa będący częścią pakietu MPlayer. | |
11421384 | 406 | |
2adea73e | 407 | %prep |
3fbc4305 | 408 | %setup -q -n %{name}-export-%{snap} -a1 -a3 -a6 |
833dbe20 | 409 | cp -f etc/codecs.conf etc/codecs.win32.conf |
79907b07 | 410 | |
411 | # build (configure / Makefile) related: | |
412 | %patch10 -p1 | |
413 | %patch11 -p1 | |
414 | %patch12 -p1 | |
c2bf8f19 | 415 | %patch13 -p1 |
2bb2f3d6 | 416 | %patch14 -p1 |
e2b12b5a | 417 | %patch15 -p1 |
e156db0d | 418 | |
63bba7db | 419 | %patch17 -p1 |
7eb1aa3e | 420 | |
63bba7db | 421 | %{?with_shared:%patch19 -p1} |
990687b2 | 422 | %patch20 -p1 |
79907b07 | 423 | |
424 | # codecs, outputs, demuxers: | |
79907b07 | 425 | %patch21 -p1 |
990687b2 | 426 | %patch22 -p1 |
79907b07 | 427 | |
428 | # goodies: | |
429 | %patch30 -p0 | |
2833f81f | 430 | %patch31 -p1 |
431 | #%{with_gnomess:%patch32 -p1} | |
59ba0205 | 432 | |
b252aa8a PS |
433 | %patch101 -p1 |
434 | ||
53f97285 | 435 | cat etc/example.conf > etc/mplayer.conf |
c521a17c | 436 | cat <<'CONFIGADD' >> etc/mplayer.conf |
437 | ||
d1f72115 | 438 | ###################### |
8b2ed1fb | 439 | # PLD Linux Defaults # |
d1f72115 | 440 | ###################### |
2833f81f | 441 | [default] |
442 | ||
443 | # alternate solution for CP1250-encoded subtitles | |
444 | fontconfig = yes | |
445 | subcp = cp1250 | |
446 | ||
447 | # ...or if you prefer native bitmap fonts shipped with mplayer | |
448 | #fontconfig = no | |
449 | #subcp = iso-8859-1 | |
450 | ||
451 | # Standard location | |
452 | unrarexec = "%{_bindir}/unrar" | |
453 | ||
993f72f1 ER |
454 | # Joystick input is disabled because of issues on some laptops (thinkpad, macbook pro). |
455 | joystick=no | |
456 | ||
c521a17c | 457 | CONFIGADD |
d1732085 | 458 | |
1f8d8779 ER |
459 | %if %{with system_ffmpeg} |
460 | # using external ffmpeg, but mplayer adds these to includepath | |
0cd1ec52 | 461 | %{__rm} -rf ffmpeg |
1f8d8779 ER |
462 | %endif |
463 | ||
2adea73e | 464 | %build |
5dcdda0f | 465 | CFLAGS="%{rpmcflags} %{?with_hidden_visibility:-fvisibility=hidden} %{?with_shared:-fvisibility=default -fPIC}" |
3c96218e | 466 | CFLAGS="$CFLAGS -I%{_includedir}/xvid%{?with_directfb::%{_includedir}/directfb} -DHAVE_GSM_H=1" |
53f97285 | 467 | |
63bba7db JB |
468 | # NOTE: |
469 | # - lircc refers to obsolete liblircc library (used in LIRCCD < 0.9) | |
470 | # - toolame is obsolete predecessor of twolame | |
44d571a0 | 471 | # - libcdio-paranoia is preferred over cdparanoia-III libs |
11421384 | 472 | build() { |
c521a17c | 473 | set -x |
53f97285 | 474 | |
11421384 ER |
475 | ./configure \ |
476 | %{?debug:--enable-debug=3} \ | |
dd6c659c | 477 | --prefix=%{_prefix} \ |
63bba7db | 478 | --codecsdir=%{_libdir}/codecs \ |
dd6c659c | 479 | --confdir=%{_sysconfdir}/mplayer \ |
53f97285 | 480 | --cc="%{__cc}" \ |
481 | --extra-cflags="$CFLAGS" \ | |
79907b07 | 482 | --real-ldflags="%{rpmldflags}" \ |
483 | --extra-ldflags="%{?_x_libraries:-L%{_x_libraries}}" \ | |
63bba7db | 484 | --language=all \ |
1f8d8779 | 485 | %if %{with system_ffmpeg} |
0cd1ec52 | 486 | --disable-ffmpeg_a \ |
1f8d8779 | 487 | %endif |
57f87bc2 | 488 | %ifnarch %{ix86} %{x8664} |
dd6c659c | 489 | --disable-3dnow \ |
a14f4270 | 490 | --disable-3dnowext \ |
63bba7db JB |
491 | --disable-fastmemcpy \ |
492 | --disable-mmx \ | |
493 | --disable-mmxext \ | |
dd6c659c JB |
494 | --disable-sse \ |
495 | --disable-sse2 \ | |
dfeec30a | 496 | %endif |
9accd5e5 | 497 | %{__disable ssse3} \ |
1837afdf | 498 | %ifarch ppc |
9accd5e5 | 499 | %{__disable altivec} \ |
1837afdf | 500 | %endif |
9accd5e5 | 501 | %{__disable aalib aa} \ |
9accd5e5 | 502 | %{__enable_disable alsa} \ |
503 | %{__disable arts} \ | |
63bba7db | 504 | %{__disable bluray} \ |
9accd5e5 | 505 | %{__disable caca} \ |
506 | %{__disable cdparanoia} \ | |
63bba7db JB |
507 | --enable-dga1 \ |
508 | --enable-dga2 \ | |
509 | %{__enable_disable directfb} \ | |
510 | %{__enable_disable dvdnav} \ | |
511 | %{__disable system_dvdread dvdread-internal} \ | |
10a6d1a6 | 512 | %{__disable dxr2} \ |
63bba7db JB |
513 | %{__disable dxr3} \ |
514 | --enable-dynamic-plugins \ | |
9accd5e5 | 515 | %{__disable enca} \ |
516 | %{__disable esd} \ | |
9accd5e5 | 517 | %{__disable faad} \ |
63bba7db | 518 | --enable-fbdev \ |
9accd5e5 | 519 | %{__disable gif} \ |
63bba7db JB |
520 | --enable-gl \ |
521 | %{__disable ggi} \ | |
522 | %{__disable jack} \ | |
9accd5e5 | 523 | %{__enable joystick} \ |
63bba7db JB |
524 | %{__disable cdio libcdio} \ |
525 | %{__disable ladspa} \ | |
10a6d1a6 | 526 | %{__disable bs2b libbs2b} \ |
9accd5e5 | 527 | %{__disable libdts libdca} \ |
63bba7db JB |
528 | %{__disable libdv} \ |
529 | %{__disable system_dvdcss libdvdcss-internal} \ | |
530 | %{__disable lzo liblzo} \ | |
531 | %{__disable system_libmpeg2 libmpeg2-internal} \ | |
10a6d1a6 | 532 | %{__disable nemesi} \ |
63bba7db JB |
533 | %{__enable_disable amr libopencore_amrnb} %{__enable_disable amr libopencore_amrwb} \ |
534 | %{__disable openjpeg} \ | |
535 | %{__disable rtmp librtmp} \ | |
536 | %{__disable vorbis libvorbis} \ | |
9accd5e5 | 537 | %{__enable_disable lirc} \ |
63bba7db JB |
538 | --disable-lircc \ |
539 | %{__disable live} \ | |
9accd5e5 | 540 | %{__disable mad} \ |
63bba7db JB |
541 | %{__disable mencoder} \ |
542 | %{__enable osd menu} \ | |
543 | --enable-mga \ | |
544 | %{__disable mpg123} \ | |
545 | %{__enable musepack} \ | |
546 | %{__disable nas} \ | |
9accd5e5 | 547 | %{__disable pulseaudio pulse} \ |
548 | %{__disable quicktime qtx} \ | |
63bba7db JB |
549 | --enable-radio \ |
550 | --enable-radio-capture \ | |
9accd5e5 | 551 | %{__disable real} \ |
552 | %{__enable_disable runtime runtime-cpudetection} \ | |
63bba7db | 553 | %{__enable_disable sdl} \ |
9accd5e5 | 554 | %{__disable select} \ |
10a6d1a6 | 555 | --enable-s3fb \ |
9accd5e5 | 556 | %{__disable smb} \ |
63bba7db JB |
557 | %{__disable svga} \ |
558 | --enable-tdfxfb \ | |
10a6d1a6 | 559 | --enable-tdfxvid \ |
9accd5e5 | 560 | %{__disable theora} \ |
63bba7db | 561 | --disable-toolame \ |
44d571a0 | 562 | %{!?with_tremor:--disable-tremor} \ |
63bba7db | 563 | --enable-unrarexec \ |
9accd5e5 | 564 | %{__disable vdpau} \ |
63bba7db | 565 | %{__disable vidix} \ |
10a6d1a6 | 566 | %{__disable vstream} \ |
dd6c659c | 567 | --enable-vm \ |
10a6d1a6 JB |
568 | %ifarch ppc |
569 | --enable-wii \ | |
570 | %endif | |
63bba7db | 571 | %{__disable win32 win32dll} \ |
dd6c659c | 572 | --enable-x11 \ |
63bba7db | 573 | %{__disable x264} \ |
dd6c659c | 574 | --enable-xmga \ |
63bba7db | 575 | %{?with_xmms:--enable-xmms --with-xmmsplugindir=%{_libdir}/xmms/Input --with-xmmslibdir=%{_libdir}} \ |
dd6c659c | 576 | --enable-xv \ |
63bba7db JB |
577 | %{__disable xvid} \ |
578 | --enable-xvmc --with-xvmclib=XvMCW \ | |
7016f339 | 579 | %{__enable_disable zr} \ |
11421384 | 580 | "$@" |
eb52750a | 581 | |
d53c9a42 | 582 | %{__make} %{?with_verbose:V=1} |
11421384 | 583 | } |
2adea73e | 584 | |
11421384 ER |
585 | %if %{with gui} |
586 | # build GUI version | |
841cb995 | 587 | build --enable-gui --disable-mencoder |
d6da6cb0 | 588 | %{__mv} mplayer gmplayer |
aeb67db6 | 589 | %{__make} distclean |
11421384 ER |
590 | %endif |
591 | ||
592 | # now build regular version | |
593 | build --disable-gui | |
594 | ||
aab7d90d | 595 | %if %{with doc} |
ef1e3931 | 596 | %{__make} -j1 doc |
11421384 | 597 | %endif |
ceb01d0e | 598 | |
2adea73e AM |
599 | %install |
600 | rm -rf $RPM_BUILD_ROOT | |
e0e4b963 | 601 | install -d \ |
d23c171d | 602 | $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_sysconfdir}/mplayer} \ |
40ce9ce9 | 603 | $RPM_BUILD_ROOT%{_mandir}/{cs,de,es,fr,hu,it,pl,ru,sv,zh_CN,}/man1 \ |
9accd5e5 | 604 | $RPM_BUILD_ROOT%{_datadir}/%{name}/skins \ |
59ba0205 | 605 | $RPM_BUILD_ROOT%{_desktopdir} |
2adea73e | 606 | |
e0e4b963 | 607 | # default config files |
c455a752 | 608 | install etc/{codecs,mplayer%{?with_osd:,menu},input}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer |
e0e4b963 | 609 | |
610 | # executables | |
40ce9ce9 JB |
611 | for prog in mplayer %{?with_mencoder:mencoder} %{?with_gui:gmplayer} ; do |
612 | install $prog $RPM_BUILD_ROOT%{_bindir}/${prog}%{binsuf} | |
613 | %if "%{binsuf}" != "" | |
614 | ln -sf ${prog}%{binsuf} $RPM_BUILD_ROOT%{_bindir}/$prog | |
11421384 | 615 | %endif |
40ce9ce9 | 616 | done |
e0e4b963 | 617 | |
c2bf8f19 | 618 | %if %{with shared} |
619 | install -d $RPM_BUILD_ROOT%{_libdir} | |
620 | install libmplayer.so $RPM_BUILD_ROOT%{_libdir} | |
621 | %endif | |
622 | ||
e0e4b963 | 623 | # fonts |
9d62f689 | 624 | cp -r font-* $RPM_BUILD_ROOT%{_datadir}/mplayer |
6e933f9c | 625 | ln -sf font-arial-iso-8859-2/font-arial-24-iso-8859-2 $RPM_BUILD_ROOT%{_datadir}/mplayer/font |
e0e4b963 | 626 | |
11421384 | 627 | %if %{with gui} |
f0d8c47e | 628 | install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir} |
68dd28e8 | 629 | %endif |
9accd5e5 | 630 | touch $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/default |
24481cd2 | 631 | install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir} |
11b89ef7 | 632 | install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir} |
e0e4b963 | 633 | |
634 | # man pages | |
59ba0205 | 635 | install DOCS/man/cs/*.1 $RPM_BUILD_ROOT%{_mandir}/cs/man1 |
aee40e50 | 636 | install DOCS/man/de/*.1 $RPM_BUILD_ROOT%{_mandir}/de/man1 |
637 | install DOCS/man/en/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
638 | install DOCS/man/es/*.1 $RPM_BUILD_ROOT%{_mandir}/es/man1 | |
639 | install DOCS/man/fr/*.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1 | |
640 | install DOCS/man/hu/*.1 $RPM_BUILD_ROOT%{_mandir}/hu/man1 | |
8cda16b8 | 641 | install DOCS/man/it/*.1 $RPM_BUILD_ROOT%{_mandir}/it/man1 |
aee40e50 | 642 | install DOCS/man/pl/*.1 $RPM_BUILD_ROOT%{_mandir}/pl/man1 |
40ce9ce9 | 643 | install DOCS/man/ru/*.1 $RPM_BUILD_ROOT%{_mandir}/ru/man1 |
841cb995 | 644 | #install DOCS/man/sv/*.1 $RPM_BUILD_ROOT%{_mandir}/sv/man1 |
40ce9ce9 | 645 | install DOCS/man/zh_CN/*.1 $RPM_BUILD_ROOT%{_mandir}/zh_CN/man1 |
6db4b1ea | 646 | |
2adea73e AM |
647 | %clean |
648 | rm -rf $RPM_BUILD_ROOT | |
649 | ||
a69eaaef | 650 | %post -n gmplayer |
cd748ae6 | 651 | umask 022 |
cd748ae6 | 652 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: |
653 | ||
a69eaaef | 654 | %postun -n gmplayer |
cd748ae6 | 655 | umask 022 |
75b3147a | 656 | [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: |
2ea7d522 | 657 | |
2adea73e AM |
658 | %files |
659 | %defattr(644,root,root,755) | |
1a8df7bd | 660 | %attr(755,root,root) %{_bindir}/mplayer* |
11421384 ER |
661 | |
662 | %if %{with gui} | |
663 | %files -n gmplayer | |
664 | %defattr(644,root,root,755) | |
1a8df7bd | 665 | %attr(755,root,root) %{_bindir}/gmplayer* |
11421384 | 666 | %{_desktopdir}/gmplayer.desktop |
11421384 ER |
667 | %endif |
668 | ||
0fb5a7ee | 669 | %if %{with mencoder} |
11421384 ER |
670 | %files -n mencoder |
671 | %defattr(644,root,root,755) | |
aeb67db6 | 672 | %doc DOCS/tech/encoding-guide.txt DOCS/tech/encoding-tips.txt |
673 | %doc DOCS/tech/swscaler_filters.txt DOCS/tech/swscaler_methods.txt | |
674 | %doc DOCS/tech/colorspaces.txt | |
1a8df7bd | 675 | %attr(755,root,root) %{_bindir}/mencoder* |
0fb5a7ee | 676 | %endif |
11421384 | 677 | |
841cb995 | 678 | %if %{with doc} |
dc3c7d77 | 679 | %files doc |
df52db46 | 680 | %defattr(644,root,root,755) |
dc3c7d77 | 681 | %doc DOCS/tech |
841cb995 ER |
682 | # HTML and XML-generated docs |
683 | %doc DOCS/HTML/en | |
0ffd4cd0 | 684 | %lang(cs) %doc DOCS/HTML/cs |
aeb67db6 | 685 | %lang(de) %doc DOCS/HTML/de |
aee40e50 | 686 | %lang(es) %doc DOCS/HTML/es |
687 | %lang(fr) %doc DOCS/HTML/fr | |
8cda16b8 | 688 | %lang(hu) %doc DOCS/HTML/hu |
d6da6cb0 | 689 | %lang(it) %doc DOCS/HTML/it |
aee40e50 | 690 | %lang(pl) %doc DOCS/HTML/pl |
691 | %lang(ru) %doc DOCS/HTML/ru | |
d6da6cb0 | 692 | %lang(zh_CN) %doc DOCS/HTML/zh_CN |
841cb995 | 693 | %endif |
dc3c7d77 ER |
694 | |
695 | %files common | |
696 | %defattr(644,root,root,755) | |
841cb995 | 697 | %doc AUTHORS README |
dc3c7d77 ER |
698 | %{?with_shared:%attr(755,root,root) %{_libdir}/libmplayer.so} |
699 | %if %{with win32} | |
700 | %doc etc/codecs.win32.conf | |
701 | %endif | |
11421384 | 702 | |
906bf13b JB |
703 | %dir %{_sysconfdir}/%{name} |
704 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf | |
40ce9ce9 JB |
705 | %{_mandir}/man1/mplayer.1* |
706 | %lang(cs) %{_mandir}/cs/man1/mplayer.1* | |
707 | %lang(de) %{_mandir}/de/man1/mplayer.1* | |
708 | %lang(es) %{_mandir}/es/man1/mplayer.1* | |
709 | %lang(fr) %{_mandir}/fr/man1/mplayer.1* | |
710 | %lang(hu) %{_mandir}/hu/man1/mplayer.1* | |
711 | %lang(it) %{_mandir}/it/man1/mplayer.1* | |
712 | %lang(pl) %{_mandir}/pl/man1/mplayer.1* | |
713 | %lang(ru) %{_mandir}/ru/man1/mplayer.1* | |
714 | #%lang(sv) %{_mandir}/sv/man1/mplayer.1* | |
715 | %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* | |
24481cd2 | 716 | %{_desktopdir}/mplayer.desktop |
1087e996 | 717 | %{_pixmapsdir}/mplayer.png |
11421384 ER |
718 | %dir %{_datadir}/%{name} |
719 | %{_datadir}/%{name}/font* | |
59ce39fb ER |
720 | %dir %{_datadir}/%{name}/skins |
721 | %ghost %{_datadir}/%{name}/skins/default |