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