Mercurial > mplayer.hg
annotate rpm/mplayer.spec @ 33137:f884fb919ac5
Remove various pngRead() debug messages.
Instead, issue the return code in the debug message after calling pngRead()
and increase return code values to allow exact error assignments.
author | ib |
---|---|
date | Tue, 05 Apr 2011 13:44:02 +0000 |
parents | 85f0d7406e07 |
children | 2f5d6ec5c131 |
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 --enable-largefiles \ | |
143 --disable-termcap \ | |
144 --disable-bitmap-font \ | |
145 --enable-lirc \ | |
146 --enable-joystick \ | |
147 %{!?_with_samba:--disable-smb} \ | |
148 --disable-dvdread-internal \ | |
149 --disable-libdvdcss-internal \ | |
150 --enable-menu \ | |
151 \ | |
152 --disable-tremor-internal \ | |
153 %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ | |
154 %{!?_with_libmad:--disable-mad} \ | |
155 %{?_with_xmms:--enable-xmms} \ | |
156 \ | |
157 --disable-svga \ | |
158 --enable-xvmc \ | |
159 --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ | |
160 %{!?_with_svgalib:--disable-svga} \ | |
161 \ | |
162 %{!?_with_arts:--disable-arts} \ | |
163 %{!?_with_esound:--disable-esd} \ | |
164 %{!?_with_jack:--disable-jack} \ | |
165 %{!?_with_openal:--disable-openal} \ | |
166 \ | |
167 --language=all \ | |
168 \ | |
169 %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ | |
170 --with-xvmclib=XvMCW | |
171 | |
172 %{__make} | |
173 | |
174 mv -f mplayer gmplayer | |
175 %{__make} distclean | |
176 | |
177 ./configure \ | |
178 --prefix=%{_prefix} \ | |
179 --bindir=%{_bindir} \ | |
180 --datadir=%{_datadir}/mplayer \ | |
181 --mandir=%{_mandir} \ | |
182 --confdir=%{_sysconfdir}/mplayer \ | |
183 --libdir=%{_libdir} \ | |
184 --codecsdir=%{codecsdir} \ | |
185 \ | |
186 --disable-encoder=FAAC \ | |
187 --disable-encoder=MP3LAME \ | |
188 --disable-encoder=X264 \ | |
189 \ | |
190 --enable-largefiles \ | |
191 --disable-termcap \ | |
192 --disable-bitmap-font \ | |
193 --enable-lirc \ | |
194 --enable-joystick \ | |
195 %{!?_with_samba:--disable-smb} \ | |
196 --disable-dvdread-internal \ | |
197 --disable-libdvdcss-internal \ | |
198 --enable-menu \ | |
199 \ | |
200 --disable-tremor-internal \ | |
201 %{!?_with_amr:--disable-libamr_nb --disable-libamr_wb} \ | |
202 %{!?_with_libmad:--disable-mad} \ | |
203 %{?_with_xmms:--enable-xmms} \ | |
204 \ | |
205 --disable-svga \ | |
206 --enable-xvmc \ | |
207 --%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \ | |
208 %{!?_with_svgalib:--disable-svga} \ | |
209 \ | |
210 %{!?_with_arts:--disable-arts} \ | |
211 %{!?_with_esound:--disable-esd} \ | |
212 %{!?_with_jack:--disable-jack} \ | |
213 %{!?_with_openal:--disable-openal} \ | |
214 \ | |
215 --language=all \ | |
216 \ | |
217 %{?_with_xmms:--with-xmmslibdir=%{_libdir}} \ | |
218 --with-xvmclib=XvMCW | |
219 | |
220 %{__make} | |
221 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27198
diff
changeset
|
222 # build HTML documentation from XML files |
24694 | 223 pushd DOCS/xml |
224 %{__make} html-chunked | |
225 popd | |
226 | |
227 %install | |
228 rm -rf $RPM_BUILD_ROOT doc | |
229 | |
230 make install DESTDIR=$RPM_BUILD_ROOT STRIPBINARIES=no | |
27198
305dc504c407
Give all shell scripts a .sh suffix for consistency.
diego
parents:
24694
diff
changeset
|
231 install -pm 755 TOOLS/midentify.sh $RPM_BUILD_ROOT%{_bindir}/ |
24694 | 232 |
233 # Clean up documentation | |
234 mkdir doc | |
235 cp -pR DOCS/* doc/ | |
236 rm -r doc/man doc/xml doc/README | |
237 mv doc/HTML/* doc/ | |
238 rm -rf doc/HTML | |
239 | |
240 # Default config files | |
241 install -Dpm 644 etc/example.conf \ | |
242 $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
243 # use Nimbus Sans L font for OSD (via fontconfig) | |
244 echo "fontconfig=yes" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
245 echo "font=\"Sans\"" >>$RPM_BUILD_ROOT%{_sysconfdir}/mplayer/mplayer.conf | |
246 | |
247 install -pm 644 etc/{input,menu}.conf $RPM_BUILD_ROOT%{_sysconfdir}/mplayer/ | |
248 | |
249 # GUI mplayer | |
250 install -pm 755 g%{name} $RPM_BUILD_ROOT%{_bindir}/ | |
251 | |
252 # Default skin | |
253 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/mplayer/skins | |
254 tar xjC $RPM_BUILD_ROOT%{_datadir}/mplayer/skins --exclude=.svn -f %{SOURCE1} | |
255 ln -s Blue $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default | |
256 | |
257 # Icons | |
258 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps | |
259 install -pm 644 etc/mplayer.xpm \ | |
260 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps | |
261 | |
262 # Desktop file | |
263 desktop-file-install \ | |
264 --dir $RPM_BUILD_ROOT%{_datadir}/applications \ | |
265 etc/%{name}.desktop | |
266 | |
267 # Codec dir | |
268 install -dm 755 $RPM_BUILD_ROOT%{codecsdir} | |
269 | |
270 | |
271 %post gui | |
272 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : | |
273 update-desktop-database &>/dev/null || : | |
274 | |
275 | |
276 %postun gui | |
277 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &>/dev/null || : | |
278 update-desktop-database &>/dev/null || : | |
279 | |
280 | |
281 %clean | |
282 rm -rf $RPM_BUILD_ROOT | |
283 | |
284 | |
285 %files | |
286 %defattr(-, root, root, -) | |
287 %doc AUTHORS Changelog LICENSE README | |
288 %dir %{_sysconfdir}/mplayer | |
289 %config(noreplace) %{_sysconfdir}/mplayer/mplayer.conf | |
290 %config(noreplace) %{_sysconfdir}/mplayer/input.conf | |
291 %config(noreplace) %{_sysconfdir}/mplayer/menu.conf | |
27198
305dc504c407
Give all shell scripts a .sh suffix for consistency.
diego
parents:
24694
diff
changeset
|
292 %{_bindir}/midentify.sh |
24694 | 293 %{_bindir}/mplayer |
294 %dir %{codecsdir}/ | |
295 %dir %{_datadir}/mplayer/ | |
296 %{_mandir}/man1/mplayer.1* | |
297 %lang(cs) %{_mandir}/cs/man1/mplayer.1* | |
298 %lang(de) %{_mandir}/de/man1/mplayer.1* | |
299 %lang(es) %{_mandir}/es/man1/mplayer.1* | |
300 %lang(fr) %{_mandir}/fr/man1/mplayer.1* | |
301 %lang(hu) %{_mandir}/hu/man1/mplayer.1* | |
302 %lang(it) %{_mandir}/it/man1/mplayer.1* | |
303 %lang(pl) %{_mandir}/pl/man1/mplayer.1* | |
304 %lang(ru) %{_mandir}/ru/man1/mplayer.1* | |
305 %lang(zh_CN) %{_mandir}/zh_CN/man1/mplayer.1* | |
306 | |
307 %files gui | |
308 %defattr(-, root, root, -) | |
309 %{_bindir}/gmplayer | |
310 %{_datadir}/applications/*mplayer.desktop | |
311 %{_datadir}/icons/hicolor/32x32/apps/mplayer.xpm | |
312 %{_datadir}/mplayer/skins/ | |
313 | |
314 %files -n mencoder | |
315 %defattr(-, root, root, -) | |
316 %{_bindir}/mencoder | |
317 %{_mandir}/man1/mencoder.1* | |
318 %lang(cs) %{_mandir}/cs/man1/mencoder.1* | |
319 %lang(de) %{_mandir}/de/man1/mencoder.1* | |
320 %lang(es) %{_mandir}/es/man1/mencoder.1* | |
321 %lang(fr) %{_mandir}/fr/man1/mencoder.1* | |
322 %lang(hu) %{_mandir}/hu/man1/mencoder.1* | |
323 %lang(it) %{_mandir}/it/man1/mencoder.1* | |
324 %lang(pl) %{_mandir}/pl/man1/mencoder.1* | |
325 %lang(ru) %{_mandir}/ru/man1/mencoder.1* | |
326 %lang(zh_CN) %{_mandir}/zh_CN/man1/mencoder.1* | |
327 | |
328 %files doc | |
329 %defattr(-, root, root, -) | |
330 %doc doc/en/ doc/tech/ | |
331 %lang(cs) %doc doc/cs/ | |
332 %lang(de) %doc doc/de/ | |
333 %lang(es) %doc doc/es/ | |
334 %lang(fr) %doc doc/fr/ | |
335 %lang(hu) %doc doc/hu/ | |
336 %lang(pl) %doc doc/pl/ | |
337 %lang(ru) %doc doc/ru/ | |
338 %lang(zh_CN) %doc doc/zh_CN/ | |
339 | |
340 | |
341 %changelog | |
342 * Sat Oct 06 2007 Dominik Mierzejewski <rpm at greysector.net> | |
343 - adapted livna specfile for inclusion in SVN |