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