]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
ffd3b6e4 | 3 | Version: 0.6.2 |
a68f52ba | 4 | Release: 1 |
b297e630 JP |
5 | License: GPL v2+ |
6 | Group: Applications/Multimedia | |
292eac8e | 7 | Source0: http://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz |
ffd3b6e4 | 8 | # Source0-md5: d0e25a26b6143b5e7d4ba354dd52f1b3 |
4084bdb9 | 9 | Source1: %{name}.conf |
d297c06d | 10 | Patch0: %{name}-zshcompdir.patch |
f02c0322 | 11 | Patch1: %{name}-lua.patch |
a68f52ba | 12 | Patch2: %{name}-xmonad_fullscreen.patch |
b297e630 JP |
13 | URL: http://mpv.io/ |
14 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0 | |
15 | BuildRequires: OpenAL-devel >= 1.13 | |
16 | BuildRequires: OpenGL-devel | |
17 | BuildRequires: SDL-devel | |
18 | BuildRequires: alsa-lib-devel | |
19 | BuildRequires: enca-devel | |
d297c06d | 20 | BuildRequires: ffmpeg-devel >= 2.1.4 |
b297e630 JP |
21 | BuildRequires: jack-audio-connection-kit-devel |
22 | BuildRequires: ladspa-devel | |
d297c06d | 23 | BuildRequires: lcms2-devel >= 2.6 |
b297e630 | 24 | BuildRequires: libass-devel |
308de4d0 JP |
25 | %ifarch i386 i486 |
26 | BuildRequires: libatomic-devel | |
27 | %endif | |
292eac8e JP |
28 | BuildRequires: libbluray-devel >= 0.2.1 |
29 | BuildRequires: libbs2b-devel | |
b297e630 JP |
30 | BuildRequires: libcaca-devel >= 0.99 |
31 | BuildRequires: libcdio-paranoia-devel | |
32 | BuildRequires: libdvdnav-devel >= 4.2.0 | |
33 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 JP |
34 | BuildRequires: libguess-devel |
35 | BuildRequires: libjpeg-devel | |
530c787a | 36 | BuildRequires: libmpg123-devel >= 1.14.0 |
b297e630 JP |
37 | BuildRequires: libquvi-devel < 0.9.0 |
38 | BuildRequires: libsmbclient-devel | |
39 | BuildRequires: libv4l-devel | |
40 | BuildRequires: libva-devel >= 1.2.0 | |
41 | BuildRequires: libva-glx-devel >= 1.2.0 | |
42 | BuildRequires: libvdpau-devel >= 0.2 | |
43 | BuildRequires: lirc-devel | |
f02c0322 | 44 | BuildRequires: lua51-devel |
b297e630 JP |
45 | BuildRequires: ncurses-devel |
46 | BuildRequires: pkgconfig | |
47 | BuildRequires: portaudio-devel >= 19 | |
48 | BuildRequires: pulseaudio-devel >= 0.9 | |
4d3f4bbb | 49 | BuildRequires: rpmbuild(macros) >= 1.336 |
3843a7a8 JP |
50 | # version dep to handle packaging issue in PLD |
51 | BuildRequires: waf >= 1.7.14 | |
8b886367 | 52 | BuildRequires: wayland-devel >= 1.3.0 |
b297e630 JP |
53 | BuildRequires: xorg-lib-libX11-devel |
54 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
55 | BuildRequires: xorg-lib-libXdamage-devel | |
56 | BuildRequires: xorg-lib-libXext-devel | |
57 | BuildRequires: xorg-lib-libXinerama-devel | |
58 | BuildRequires: xorg-lib-libXv-devel | |
59 | BuildRequires: xorg-lib-libXxf86vm-devel | |
60 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
61 | BuildRequires: xorg-proto-xproto-devel | |
62 | Requires: OpenGL | |
63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
64 | ||
65 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
66 | ||
d297c06d JP |
67 | %define zshdir %{_datadir}/zsh/site-functions |
68 | ||
b297e630 | 69 | %description |
292eac8e | 70 | Movie player based on MPlayer and mplayer2. |
b297e630 | 71 | |
d297c06d JP |
72 | %package client-libs |
73 | Summary: Client library for controlling mpv | |
74 | Group: Development/Libraries | |
75 | ||
76 | %description client-libs | |
77 | Client library for controlling mpv. | |
78 | ||
79 | %package client-devel | |
80 | Summary: Development files for mpv client library | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-client-libs = %{version}-%{release} | |
83 | ||
84 | %description client-devel | |
85 | Development files for mpv client library. | |
86 | ||
87 | %package -n zsh-completion-mpv | |
88 | Summary: zsh-completion for mpv | |
89 | Group: Applications/Shells | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description -n zsh-completion-mpv | |
93 | zsh-completion for mpv. | |
94 | ||
b297e630 JP |
95 | %prep |
96 | %setup -q | |
d297c06d | 97 | %patch0 -p1 |
f02c0322 | 98 | %patch1 -p1 |
a68f52ba | 99 | %patch2 -p1 |
b297e630 JP |
100 | |
101 | %build | |
4d3f4bbb | 102 | %waf configure \ |
b297e630 JP |
103 | --prefix=%{_prefix} \ |
104 | --bindir=%{_bindir} \ | |
105 | --confdir=%{_sysconfdir}/mpv \ | |
106 | --libdir=%{_libdir} \ | |
107 | --datadir=%{_datadir} \ | |
108 | --mandir=%{_mandir} \ | |
109 | --disable-debug-build \ | |
110 | --enable-alsa \ | |
111 | --enable-audio-input \ | |
112 | --enable-caca \ | |
113 | --enable-cdda \ | |
114 | --enable-dvb \ | |
115 | --enable-dvbin \ | |
116 | --enable-dvdnav \ | |
117 | --enable-dvdread \ | |
118 | --enable-enca \ | |
d297c06d | 119 | --enable-encoding \ |
b297e630 JP |
120 | --enable-gl-wayland \ |
121 | --enable-gl-x11 \ | |
122 | --enable-iconv \ | |
123 | --enable-jack \ | |
124 | --enable-joystick \ | |
125 | --enable-jpeg \ | |
126 | --enable-ladspa \ | |
127 | --enable-lcms2 \ | |
128 | --enable-libass \ | |
d297c06d JP |
129 | --enable-libass-osd \ |
130 | --enable-libavdevice \ | |
131 | --enable-libavfilter \ | |
132 | --enable-libavresample \ | |
b297e630 JP |
133 | --enable-libbluray \ |
134 | --enable-libbs2b \ | |
135 | --enable-libguess \ | |
d297c06d JP |
136 | --enable-libmpv-shared \ |
137 | --enable-libpostproc \ | |
b297e630 JP |
138 | --enable-libquvi4 \ |
139 | --enable-libsmbclient \ | |
140 | --enable-libv4l2 \ | |
141 | --enable-lirc \ | |
142 | --enable-mpg123 \ | |
143 | --enable-openal \ | |
144 | --enable-oss-audio \ | |
145 | --enable-portaudio \ | |
146 | --enable-pulse \ | |
147 | --enable-pvr \ | |
d297c06d | 148 | --enable-sdl1 \ |
b297e630 JP |
149 | --enable-shm \ |
150 | --enable-terminfo \ | |
151 | --enable-tv \ | |
152 | --enable-tv-v4l2 \ | |
b297e630 JP |
153 | --enable-vaapi \ |
154 | --enable-vaapi-glx \ | |
155 | --enable-vaapi-hwaccel \ | |
156 | --enable-vaapi-vpp \ | |
b297e630 | 157 | --enable-vdpau \ |
d297c06d | 158 | --enable-vdpau-gl-x11 \ |
b297e630 | 159 | --enable-vdpau-hwaccel \ |
d297c06d | 160 | --enable-wayland \ |
b297e630 JP |
161 | --enable-x11 \ |
162 | --enable-xext \ | |
b297e630 JP |
163 | --enable-xinerama \ |
164 | --enable-xss \ | |
d297c06d | 165 | --enable-xv \ |
f02c0322 JP |
166 | --enable-zsh-comp \ |
167 | --lua=51pld | |
292eac8e | 168 | |
4d3f4bbb | 169 | %waf build -v |
b297e630 JP |
170 | |
171 | %install | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
4d3f4bbb | 174 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 175 | |
4084bdb9 JP |
176 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
177 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv | |
178 | ||
a68f52ba JP |
179 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
180 | ||
b297e630 JP |
181 | %clean |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
184 | %files | |
185 | %defattr(644,root,root,755) | |
a68f52ba | 186 | %doc README.md RELEASE_NOTES etc/example.conf etc/input.conf etc/mplayer-input.conf etc/restore-old-bindings.conf |
b297e630 JP |
187 | %dir %{_sysconfdir}/mpv |
188 | %{_sysconfdir}/mpv/encoding-profiles.conf | |
4084bdb9 | 189 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
190 | %attr(755,root,root) %{_bindir}/%{name} |
191 | %{_desktopdir}/mpv.desktop | |
192 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
193 | %{_mandir}/man1/mpv.1* | |
d297c06d JP |
194 | |
195 | %files client-libs | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
199 | ||
200 | %files client-devel | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libmpv.so | |
203 | %{_includedir}/mpv | |
204 | %{_pkgconfigdir}/mpv.pc | |
205 | ||
206 | %files -n zsh-completion-mpv | |
207 | %defattr(644,root,root,755) | |
208 | %{zshdir}/_mpv |