]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
14b5a1a1 | 3 | Version: 0.13.0 |
81155b58 | 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 |
14b5a1a1 | 8 | # Source0-md5: 553ff7a2d7f9c6a1e456ccdc0c352287 |
4084bdb9 | 9 | Source1: %{name}.conf |
e386ece9 | 10 | Patch0: %{name}-lua.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 | |
682d5897 | 17 | BuildRequires: docutils |
5d9fec95 JP |
18 | BuildRequires: enca-devel |
19 | BuildRequires: ffmpeg-devel >= 2.4.0 | |
b297e630 | 20 | BuildRequires: jack-audio-connection-kit-devel |
d297c06d | 21 | BuildRequires: lcms2-devel >= 2.6 |
5d9fec95 | 22 | BuildRequires: libass-devel >= 0.12.1 |
308de4d0 JP |
23 | %ifarch i386 i486 |
24 | BuildRequires: libatomic-devel | |
25 | %endif | |
5d9fec95 | 26 | BuildRequires: libbluray-devel >= 0.3.0 |
b297e630 JP |
27 | BuildRequires: libcaca-devel >= 0.99 |
28 | BuildRequires: libcdio-paranoia-devel | |
29 | BuildRequires: libdvdnav-devel >= 4.2.0 | |
30 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 JP |
31 | BuildRequires: libguess-devel |
32 | BuildRequires: libjpeg-devel | |
b297e630 JP |
33 | BuildRequires: libsmbclient-devel |
34 | BuildRequires: libv4l-devel | |
35 | BuildRequires: libva-devel >= 1.2.0 | |
36 | BuildRequires: libva-glx-devel >= 1.2.0 | |
37 | BuildRequires: libvdpau-devel >= 0.2 | |
f02c0322 | 38 | BuildRequires: lua51-devel |
b297e630 | 39 | BuildRequires: pkgconfig |
b297e630 | 40 | BuildRequires: pulseaudio-devel >= 0.9 |
4d3f4bbb | 41 | BuildRequires: rpmbuild(macros) >= 1.336 |
9c4d4eba | 42 | BuildRequires: waf >= 1.8.12 |
8b886367 | 43 | BuildRequires: wayland-devel >= 1.3.0 |
b297e630 JP |
44 | BuildRequires: xorg-lib-libX11-devel |
45 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
46 | BuildRequires: xorg-lib-libXdamage-devel | |
47 | BuildRequires: xorg-lib-libXext-devel | |
48 | BuildRequires: xorg-lib-libXinerama-devel | |
49 | BuildRequires: xorg-lib-libXv-devel | |
50 | BuildRequires: xorg-lib-libXxf86vm-devel | |
51 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
52 | BuildRequires: xorg-proto-xproto-devel | |
5d9fec95 JP |
53 | Requires: Mesa-libwayland-egl >= 9.0.0 |
54 | Requires: OpenAL >= 1.13 | |
b297e630 | 55 | Requires: OpenGL |
5d9fec95 JP |
56 | Requires: ffmpeg-libs >= 2.4.0 |
57 | Requires: lcms2 >= 2.6 | |
58 | Requires: libass >= 0.12.1 | |
59 | Requires: libbluray >= 0.3.0 | |
60 | Requires: libcaca >= 0.99 | |
61 | Requires: libdvdnav >= 4.2.0 | |
62 | Requires: libdvdread >= 4.1.0 | |
63 | Requires: libva >= 1.2.0 | |
64 | Requires: libva-glx >= 1.2.0 | |
65 | Requires: libvdpau >= 0.2 | |
66 | Requires: pulseaudio-libs >= 1.0 | |
67 | Requires: wayland >= 1.6.0 | |
68 | Requires: xorg-lib-libxkbcommon >= 0.3.0 | |
20a45907 | 69 | Suggests: youtube-dl >= 2:20150223 |
b297e630 JP |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
72 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
73 | ||
d297c06d JP |
74 | %define zshdir %{_datadir}/zsh/site-functions |
75 | ||
b297e630 | 76 | %description |
292eac8e | 77 | Movie player based on MPlayer and mplayer2. |
b297e630 | 78 | |
d297c06d | 79 | %package client-libs |
e386ece9 JP |
80 | Summary: Client library for controlling mpv |
81 | Group: Development/Libraries | |
d297c06d JP |
82 | |
83 | %description client-libs | |
84 | Client library for controlling mpv. | |
85 | ||
86 | %package client-devel | |
e386ece9 JP |
87 | Summary: Development files for mpv client library |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-client-libs = %{version}-%{release} | |
d297c06d JP |
90 | |
91 | %description client-devel | |
92 | Development files for mpv client library. | |
93 | ||
94 | %package -n zsh-completion-mpv | |
e386ece9 JP |
95 | Summary: zsh-completion for mpv |
96 | Group: Applications/Shells | |
97 | Requires: %{name} = %{version}-%{release} | |
d297c06d JP |
98 | |
99 | %description -n zsh-completion-mpv | |
100 | zsh-completion for mpv. | |
101 | ||
b297e630 JP |
102 | %prep |
103 | %setup -q | |
d297c06d | 104 | %patch0 -p1 |
b297e630 JP |
105 | |
106 | %build | |
4d3f4bbb | 107 | %waf configure \ |
b297e630 JP |
108 | --prefix=%{_prefix} \ |
109 | --bindir=%{_bindir} \ | |
110 | --confdir=%{_sysconfdir}/mpv \ | |
111 | --libdir=%{_libdir} \ | |
112 | --datadir=%{_datadir} \ | |
113 | --mandir=%{_mandir} \ | |
114 | --disable-debug-build \ | |
115 | --enable-alsa \ | |
116 | --enable-audio-input \ | |
117 | --enable-caca \ | |
118 | --enable-cdda \ | |
119 | --enable-dvb \ | |
120 | --enable-dvbin \ | |
121 | --enable-dvdnav \ | |
122 | --enable-dvdread \ | |
123 | --enable-enca \ | |
d297c06d | 124 | --enable-encoding \ |
b297e630 JP |
125 | --enable-gl-wayland \ |
126 | --enable-gl-x11 \ | |
127 | --enable-iconv \ | |
128 | --enable-jack \ | |
b297e630 | 129 | --enable-jpeg \ |
b297e630 JP |
130 | --enable-lcms2 \ |
131 | --enable-libass \ | |
d297c06d JP |
132 | --enable-libass-osd \ |
133 | --enable-libavdevice \ | |
134 | --enable-libavfilter \ | |
b297e630 | 135 | --enable-libbluray \ |
b297e630 | 136 | --enable-libguess \ |
d297c06d | 137 | --enable-libmpv-shared \ |
b297e630 | 138 | --enable-libsmbclient \ |
eab2fe55 | 139 | --enable-libswresample \ |
b297e630 | 140 | --enable-libv4l2 \ |
b297e630 JP |
141 | --enable-openal \ |
142 | --enable-oss-audio \ | |
b297e630 JP |
143 | --enable-pulse \ |
144 | --enable-pvr \ | |
d297c06d | 145 | --enable-sdl1 \ |
b297e630 | 146 | --enable-shm \ |
b297e630 JP |
147 | --enable-tv \ |
148 | --enable-tv-v4l2 \ | |
b297e630 JP |
149 | --enable-vaapi \ |
150 | --enable-vaapi-glx \ | |
151 | --enable-vaapi-hwaccel \ | |
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 \ | |
b297e630 JP |
158 | --enable-xinerama \ |
159 | --enable-xss \ | |
d297c06d | 160 | --enable-xv \ |
f02c0322 | 161 | --enable-zsh-comp \ |
e386ece9 JP |
162 | --lua=51pld \ |
163 | --zshdir=%{zshdir} | |
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 | 172 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
e386ece9 | 173 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
4084bdb9 | 174 | |
a68f52ba JP |
175 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
176 | ||
b297e630 JP |
177 | %clean |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %files | |
181 | %defattr(644,root,root,755) | |
a68f52ba | 182 | %doc README.md RELEASE_NOTES etc/example.conf etc/input.conf etc/mplayer-input.conf etc/restore-old-bindings.conf |
b297e630 JP |
183 | %dir %{_sysconfdir}/mpv |
184 | %{_sysconfdir}/mpv/encoding-profiles.conf | |
4084bdb9 | 185 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
186 | %attr(755,root,root) %{_bindir}/%{name} |
187 | %{_desktopdir}/mpv.desktop | |
188 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
189 | %{_mandir}/man1/mpv.1* | |
d297c06d JP |
190 | |
191 | %files client-libs | |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
195 | ||
196 | %files client-devel | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libmpv.so | |
199 | %{_includedir}/mpv | |
200 | %{_pkgconfigdir}/mpv.pc | |
201 | ||
202 | %files -n zsh-completion-mpv | |
203 | %defattr(644,root,root,755) | |
204 | %{zshdir}/_mpv |