annotate rpm/mplayer.spec @ 25881:c6f535c5f65b

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