Mercurial > mplayer.hg
annotate rpm/mplayer.spec @ 35584:fb92c6de7f70
Reduce register usage in an asm block.
Reduce to 4 registers in an asm block of render_frame_yuv420p_sse4
with simplification of code. After the modification, this function
can still be ~3.5x faster than render_frame_yuv420p.
author | upsuper |
---|---|
date | Fri, 14 Dec 2012 02:16:30 +0000 |
parents | 6c6fb701fa8e |
children |
rev | line source |
---|---|
24694 | 1 %define date %(date --iso) |
2 %define svnbuild %(date +%Y%m%d) | |
3 %define codecsdir %{_libdir}/codecs | |
4 | |
5 Name: mplayer | |
6 Version: 1.0 | |
7 Release: 0.%{svnbuild}svn%{?dist} | |
8 Summary: Movie player playing most video formats and DVDs | |
9 | |
10 Group: Applications/Multimedia | |
11 License: GPL | |
12 URL: http://www.mplayerhq.hu/ | |
13 Source0: http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 | |
14 Source1: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2 | |
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
16 | |
17 BuildRequires: SDL-devel | |
18 BuildRequires: aalib-devel | |
19 BuildRequires: alsa-lib-devel | |
20 BuildRequires: cdparanoia-devel | |
21 BuildRequires: desktop-file-utils | |
22 BuildRequires: em8300-devel | |
23 BuildRequires: enca-devel | |
24 BuildRequires: faac-devel | |
25 BuildRequires: faad2-devel | |
26 BuildRequires: fontconfig-devel | |
27 BuildRequires: freetype-devel >= 2.0.9 | |
28 BuildRequires: fribidi-devel | |
29 BuildRequires: giflib-devel | |
30 BuildRequires: gtk2-devel | |
31 BuildRequires: ladspa-devel | |
32 BuildRequires: lame-devel | |
33 BuildRequires: libGL-devel | |
34 BuildRequires: libXinerama-devel | |
35 BuildRequires: libXv-devel | |
36 BuildRequires: libXvMC-devel | |
37 BuildRequires: libXxf86dga-devel | |
38 BuildRequires: libXxf86vm-devel | |
39 BuildRequires: libcaca-devel | |
40 BuildRequires: libdca-devel | |
41 BuildRequires: libdv-devel | |
42 BuildRequires: libdvdnav-devel | |
43 BuildRequires: libjpeg-devel | |
44 BuildRequires: libmpcdec-devel | |
45 BuildRequires: libtheora-devel | |
46 BuildRequires: libvorbis-devel | |
47 BuildRequires: lirc-devel | |
48 BuildRequires: live-devel | |
49 BuildRequires: lzo-devel >= 2 | |
50 BuildRequires: speex-devel >= 1.1 | |
51 BuildRequires: twolame-devel | |
52 BuildRequires: x264-devel | |
53 BuildRequires: xvidcore-devel >= 0.9.2 | |
54 %{?_with_arts:BuildRequires: arts-devel} | |
55 %{?_with_amr:BuildRequires: amrnb-devel amrwb-devel} | |
56 %{?_with_directfb:BuildRequires: directfb-devel} | |
57 %{?_with_esound:BuildRequires: esound-devel} | |
58 %{?_with_jack:BuildRequires: jack-audio-connection-kit-devel} | |
59 %{?_with_libmad:BuildRequires: libmad-devel} | |
60 %{?_with_openal:BuildRequires: openal-devel} | |
61 %{?_with_samba:BuildRequires: samba-common} | |
62 %{?_with_svgalib:BuildRequires: svgalib-devel} | |
63 %{?_with_xmms:BuildRequires: xmms-devel} | |
64 # for XML docs, SVN only | |
65 BuildRequires: docbook-dtds | |
66 BuildRequires: docbook-style-xsl | |
67 BuildRequires: libxml2 | |
68 BuildRequires: libxslt | |
69 | |
70 %description | |
71 MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM, | |
72 VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM, | |
73 RoQ, and PVA files. You can also use it to watch VCDs, SVCDs, DVDs, | |
74 3ivx, RealMedia, and DivX movies. | |
75 It supports a wide range of output drivers including X11, XVideo, DGA, | |
76 OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice | |
77 antialiased shaded subtitles and OSD. | |
78 Non-default rpmbuild options: | |
79 --with samba: Enable Samba (smb://) support | |
80 --with xmms: Enable XMMS input plugin support | |
81 --with amr: Enable AMR support | |
82 --with libmad: Enable libmad support | |
83 --with openal: Enable OpenAL support | |
84 --with jack: Enable JACK support | |
85 --with arts: Enable aRts support | |
86 --with esound: Enable EsounD support | |
87 --with directfb:Enable DirectFB support | |
88 --with svgalib: Enable SVGAlib support | |
89 | |
90 %package gui | |
91 Summary: GUI for MPlayer | |
92 Group: Applications/Multimedia | |
93 Requires: mplayer = %{version}-%{release} | |
94 | |
95 %description gui | |
96 This package contains a GUI for MPlayer and a default skin for it. | |
97 | |
98 %package -n mencoder | |
99 Summary: MPlayer movie encoder | |
100 Group: Applications/Multimedia | |
101 Requires: mplayer = %{version}-%{release} | |
102 | |
103 %description -n mencoder | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27198
diff
changeset
|
104 This package contains the MPlayer movie encoder. |
24694 | 105 |
106 %package doc | |
107 Summary: MPlayer documentation in various languages | |
108 Group: Documentation | |
109 | |
110 %description doc | |
111 MPlayer documentation in various languages. | |
112 | |
113 | |
114 %prep | |
115 %setup -q -n mplayer-export-%{date} | |
116 | |
117 doconv() { | |
118 iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \ | |
119 mv DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 | |
120 } | |
121 for lang in de es fr it ; do doconv iso-8859-1 utf-8 $lang ; done | |
122 for lang in hu pl ; do doconv iso-8859-2 utf-8 $lang ; done | |
123 for lang in ru ; do doconv koi8-r utf-8 $lang ; done | |
124 | |
125 mv DOCS/man/zh DOCS/man/zh_CN | |
126 | |
127 %build | |
128 ./configure \ | |
129 --prefix=%{_prefix} \ | |
130 --bindir=%{_bindir} \ | |
131 --datadir=%{_datadir}/mplayer \ | |
132 --mandir=%{_mandir} \ | |
133 --confdir=%{_sysconfdir}/mplayer \ | |
134 --libdir=%{_libdir} \ | |
135 --codecsdir=%{codecsdir} \ | |
136 \ | |
137 --disable-encoder=FAAC \ | |
138 --disable-encoder=MP3LAME \ | |
139 --disable-encoder=X264 \ | |
140 \ | |
141 --enable-gui \ | |
142 --disable-termcap \ | |
143 --disable-bitmap-font \ | |
144 --enable-lirc \ | |
145 --enable-joystick \ | |
146 %{!?_with_samba:--disable-smb} \ | |
147 --disable-dvdread-internal \ | |
148 --disable-libdvdcss-internal \ | |
149 --enable-menu \ | |
150 \ | |
151 --disable-tremor-internal \ | |
152 %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ | |
153 %{!?_with_libmad:--disable-mad} \ | |
154 %{?_with_xmms:--enable-xmms} \ | |
155 \ | |
156 --disable-svga \ | |
157 --enable-xvmc \ | |
158 --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ | |
159 %{!?_with_svgalib:--disable-svga} \ | |
160 \ | |
161 %{!?_with_arts:--disable-arts} \ | |
162 %{!?_with_esound:--disable-esd} \ | |
163 %{!?_with_jack:--disable-jack} \ | |
164 %{!?_with_openal:--disable-openal} \ | |
165 \ | |
166 --language=all \ | |
167 \ | |
168 %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ | |
169 --with-xvmclib=XvMCW | |
170 | |
171 %{__make} | |
172 | |
173 mv -f mplayer gmplayer | |
174 %{__make} distclean | |
175 | |
176 ./configure \ | |
177 --prefix=%{_prefix} \ | |
178 --bindir=%{_bindir} \ | |
179 --datadir=%{_datadir}/mplayer \ | |
180 --mandir=%{_mandir} \ | |
181 --confdir=%{_sysconfdir}/mplayer \ | |
182 --libdir=%{_libdir} \ | |
183 --codecsdir=%{codecsdir} \ | |
184 \ | |
185 --disable-encoder=FAAC \ | |
186 --disable-encoder=MP3LAME \ | |
187 --disable-encoder=X264 \ | |
188 \ | |
189 --disable-termcap \ | |
190 --disable-bitmap-font \ | |
191 --enable-lirc \ | |
192 --enable-joystick \ | |
193 %{!?_with_samba:--disable-smb} \ | |
194 --disable-dvdread-internal \ | |
195 --disable-libdvdcss-internal \ | |
196 --enable-menu \ | |
197 \ | |
198 --disable-tremor-internal \ | |
199 %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ | |
200 %{!?_with_libmad:--disable-mad} \ | |
201 %{?_with_xmms:--enable-xmms} \ | |
202 \ | |
203 --disable-svga \ | |
204 --enable-xvmc \ | |
205 --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ | |
206 %{!?_with_svgalib:--disable-svga} \ | |
207 \ | |
208 %{!?_with_arts:--disable-arts} \ | |
209 %{!?_with_esound:--disable-esd} \ | |
210 %{!?_with_jack:--disable-jack} \ | |
211 %{!?_with_openal:--disable-openal} \ | |
212 \ | |
213 --language=all \ | |
214 \ | |
215 %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ | |
216 --with-xvmclib=XvMCW | |
217 | |
218 %{__make} | |
219 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27198
diff
changeset
|
220 # build HTML documentation from XML files |
24694 | 221 pushd DOCS/xml |
222 %{__make} html-chunked | |
223 popd | |
224 | |
225 %install | |
226 rm -rf $RPM_BUILD_ROOT doc | |
227 | |
228 make install DESTDIR=$RPM_BUILD_ROOT STRIPBINARIES=no | |
27198
305dc504c407
Give all shell scripts a .sh suffix for consistency.
diego
parents:
24694
diff
changeset
|
229 install -pm 755 TOOLS/midentify.sh $RPM_BUILD_ROOT%{_bindir}/ |
24694 | 230 |
231 # Clean up documentation | |
232 mkdir doc | |
233 cp -pR DOCS/* doc/ | |
234 rm -r doc/man doc/xml doc/README | |
235 mv doc/HTML/* doc/ | |
236 rm -rf doc/HTML | |
237 | |
238 # Default config files | |
239 install -Dpm 644 etc/example.conf \ | |
240 $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
241 # use Nimbus Sans L font for OSD (via fontconfig) | |
242 echo "fontconfig=yes" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
243 echo "font=\"Sans\"" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
244 | |
245 install -pm 644 etc/{input,menu}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/ | |
246 | |
247 # GUI mplayer | |
248 install -pm 755 g%{name} $RPM_BUILD_ROOT%{_bindir}/ | |
249 | |
250 # Default skin | |
251 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins | |
252 tar xjC $RPM_BUILD_ROOT%{_datadir}/mplayer/skins --exclude=.svn -f %{SOURCE1} | |
253 ln -s Blue $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default | |
254 | |
255 # Icons | |
34480 | 256 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps |
257 install -pm 644 etc/mplayer16x16.png \ | |
258 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/mplayer.png | |
259 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps | |
260 install -pm 644 etc/mplayer22x22.png \ | |
261 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/mplayer.png | |
262 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps | |
263 install -pm 644 etc/mplayer24x24.png \ | |
264 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/mplayer.png | |
265 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps | |
266 install -pm 644 etc/mplayer32x32.png \ | |
267 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/mplayer.png | |
33484
4f940d7917f0
Provide a desktop icon of reasonable size (48x48) and quality.
ib
parents:
33234
diff
changeset
|
268 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps |
34480 | 269 install -pm 644 etc/mplayer48x48.png \ |
270 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/mplayer.png | |
271 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps | |
272 install -pm 644 etc/mplayer256x256.png \ | |
273 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/mplayer.png | |
24694 | 274 |
275 # Desktop file | |
276 desktop-file-install \ | |
277 --dir $RPM_BUILD_ROOT%{_datadir}/applications \ | |
278 etc/%{name}.desktop | |
279 | |
280 # Codec dir | |
281 install -dm 755 $RPM_BUILD_ROOT%{codecsdir} | |
282 | |
283 | |
284 %post gui | |
285 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : | |
286 update-desktop-database &>/dev/null || : | |
287 | |
288 | |
289 %postun gui | |
290 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : | |
291 update-desktop-database &>/dev/null || : | |
292 | |
293 | |
294 %clean | |
295 rm -rf $RPM_BUILD_ROOT | |
296 | |
297 | |
298 %files | |
299 %defattr(-, root, root, -) | |
300 %doc AUTHORS Changelog LICENSE README | |
301 %dir %{_sysconfdir}/mplayer | |
302 %config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf | |
303 %config(noreplace) %{_sysconfdir}/mplayer/input.conf | |
304 %config(noreplace) %{_sysconfdir}/mplayer/menu.conf | |
27198
305dc504c407
Give all shell scripts a .sh suffix for consistency.
diego
parents:
24694
diff
changeset
|
305 %{_bindir}/midentify.sh |
24694 | 306 %{_bindir}/mplayer |
307 %dir %{codecsdir}/ | |
308 %dir %{_datadir}/mplayer/ | |
309 %{_mandir}/man1/mplayer.1* | |
310 %lang(cs) %{_mandir}/cs/man1/mplayer.1* | |
311 %lang(de) %{_mandir}/de/man1/mplayer.1* | |
312 %lang(es) %{_mandir}/es/man1/mplayer.1* | |
313 %lang(fr) %{_mandir}/fr/man1/mplayer.1* | |
314 %lang(hu) %{_mandir}/hu/man1/mplayer.1* | |
315 %lang(it) %{_mandir}/it/man1/mplayer.1* | |
316 %lang(pl) %{_mandir}/pl/man1/mplayer.1* | |
317 %lang(ru) %{_mandir}/ru/man1/mplayer.1* | |
318 %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* | |
319 | |
320 %files gui | |
321 %defattr(-, root, root, -) | |
322 %{_bindir}/gmplayer | |
323 %{_datadir}/applications/*mplayer.desktop | |
34480 | 324 %{_datadir}/icons/hicolor/16x16/apps/mplayer.png |
325 %{_datadir}/icons/hicolor/22x22/apps/mplayer.png | |
326 %{_datadir}/icons/hicolor/24x24/apps/mplayer.png | |
327 %{_datadir}/icons/hicolor/32x32/apps/mplayer.png | |
33484
4f940d7917f0
Provide a desktop icon of reasonable size (48x48) and quality.
ib
parents:
33234
diff
changeset
|
328 %{_datadir}/icons/hicolor/48x48/apps/mplayer.png |
34480 | 329 %{_datadir}/icons/hicolor/256x256/apps/mplayer.png |
24694 | 330 %{_datadir}/mplayer/skins/ |
331 | |
332 %files -n mencoder | |
333 %defattr(-, root, root, -) | |
334 %{_bindir}/mencoder | |
335 %{_mandir}/man1/mencoder.1* | |
336 %lang(cs) %{_mandir}/cs/man1/mencoder.1* | |
337 %lang(de) %{_mandir}/de/man1/mencoder.1* | |
338 %lang(es) %{_mandir}/es/man1/mencoder.1* | |
339 %lang(fr) %{_mandir}/fr/man1/mencoder.1* | |
340 %lang(hu) %{_mandir}/hu/man1/mencoder.1* | |
341 %lang(it) %{_mandir}/it/man1/mencoder.1* | |
342 %lang(pl) %{_mandir}/pl/man1/mencoder.1* | |
343 %lang(ru) %{_mandir}/ru/man1/mencoder.1* | |
344 %lang(zh_CN) %{_mandir}/zh_CN/man1/mencoder.1* | |
345 | |
346 %files doc | |
347 %defattr(-, root, root, -) | |
348 %doc doc/en/ doc/tech/ | |
349 %lang(cs) %doc doc/cs/ | |
350 %lang(de) %doc doc/de/ | |
351 %lang(es) %doc doc/es/ | |
352 %lang(fr) %doc doc/fr/ | |
353 %lang(hu) %doc doc/hu/ | |
354 %lang(pl) %doc doc/pl/ | |
355 %lang(ru) %doc doc/ru/ | |
356 %lang(zh_CN) %doc doc/zh_CN/ | |
357 | |
358 | |
359 %changelog | |
360 * Sat Oct 06 2007 Dominik Mierzejewski <rpm at greysector.net> | |
361 - adapted livna specfile for inclusion in SVN |