]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
31601366 | 3 | Version: 0.25.0 |
ddbcef5c | 4 | Release: 2 |
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 |
31601366 | 8 | # Source0-md5: 73b3d233c3b4428d0cfd5491c5cb6c41 |
4084bdb9 | 9 | Source1: %{name}.conf |
e386ece9 | 10 | Patch0: %{name}-lua.patch |
b297e630 | 11 | URL: http://mpv.io/ |
9fcdff9e | 12 | BuildRequires: Mesa-libEGL-devel >= 9.0.0 |
b297e630 JP |
13 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0 |
14 | BuildRequires: OpenAL-devel >= 1.13 | |
15 | BuildRequires: OpenGL-devel | |
16 | BuildRequires: SDL-devel | |
5045f7e8 | 17 | BuildRequires: alsa-lib-devel >= 1.0.18 |
682d5897 | 18 | BuildRequires: docutils |
31601366 | 19 | BuildRequires: ffmpeg-devel >= 3.2.2 |
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 |
5045f7e8 | 27 | BuildRequires: libcaca-devel >= 0.99-0.beta18.1 |
b297e630 JP |
28 | BuildRequires: libcdio-paranoia-devel |
29 | BuildRequires: libdvdnav-devel >= 4.2.0 | |
30 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 | 31 | BuildRequires: libjpeg-devel |
b297e630 JP |
32 | BuildRequires: libsmbclient-devel |
33 | BuildRequires: libv4l-devel | |
5045f7e8 JP |
34 | BuildRequires: libva-devel >= 1.4.0 |
35 | BuildRequires: libva-glx-devel >= 1.4.0 | |
b297e630 | 36 | BuildRequires: libvdpau-devel >= 0.2 |
f02c0322 | 37 | BuildRequires: lua51-devel |
b297e630 | 38 | BuildRequires: pkgconfig |
5045f7e8 | 39 | BuildRequires: pulseaudio-devel >= 1.0 |
4d3f4bbb | 40 | BuildRequires: rpmbuild(macros) >= 1.336 |
a33f39f8 | 41 | BuildRequires: uchardet-devel |
9c4d4eba | 42 | BuildRequires: waf >= 1.8.12 |
8b886367 | 43 | BuildRequires: wayland-devel >= 1.3.0 |
31601366 JP |
44 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 |
45 | BuildRequires: xorg-lib-libXScrnSaver-devel >= 1.0.0 | |
b297e630 | 46 | BuildRequires: xorg-lib-libXdamage-devel |
31601366 JP |
47 | BuildRequires: xorg-lib-libXext-devel >= 1.0.0 |
48 | BuildRequires: xorg-lib-libXinerama-devel >= 1.0.0 | |
49 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0 | |
b297e630 JP |
50 | BuildRequires: xorg-lib-libXv-devel |
51 | BuildRequires: xorg-lib-libXxf86vm-devel | |
52 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
53 | BuildRequires: xorg-proto-xproto-devel | |
5d9fec95 JP |
54 | Requires: Mesa-libwayland-egl >= 9.0.0 |
55 | Requires: OpenAL >= 1.13 | |
b297e630 | 56 | Requires: OpenGL |
5045f7e8 | 57 | Requires: alsa-lib >= 1.0.18 |
91b88cb0 | 58 | %requires_eq ffmpeg-libs |
5d9fec95 JP |
59 | Requires: lcms2 >= 2.6 |
60 | Requires: libass >= 0.12.1 | |
61 | Requires: libbluray >= 0.3.0 | |
5045f7e8 | 62 | Requires: libcaca >= 0.99-0.beta18.1 |
5d9fec95 JP |
63 | Requires: libdvdnav >= 4.2.0 |
64 | Requires: libdvdread >= 4.1.0 | |
5045f7e8 JP |
65 | Requires: libva >= 1.4.0 |
66 | Requires: libva-glx >= 1.4.0 | |
5d9fec95 JP |
67 | Requires: libvdpau >= 0.2 |
68 | Requires: pulseaudio-libs >= 1.0 | |
69 | Requires: wayland >= 1.6.0 | |
31601366 JP |
70 | Requires: xorg-lib-libX11 >= 1.0.0 |
71 | Requires: xorg-lib-libXScrnSaver >= 1.0.0 | |
72 | Requires: xorg-lib-libXext >= 1.0.0 | |
73 | Requires: xorg-lib-libXinerama >= 1.0.0 | |
74 | Requires: xorg-lib-libXrandr >= 1.2.0 | |
5d9fec95 | 75 | Requires: xorg-lib-libxkbcommon >= 0.3.0 |
20a45907 | 76 | Suggests: youtube-dl >= 2:20150223 |
b297e630 JP |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
79 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
80 | ||
d297c06d JP |
81 | %define zshdir %{_datadir}/zsh/site-functions |
82 | ||
b297e630 | 83 | %description |
292eac8e | 84 | Movie player based on MPlayer and mplayer2. |
b297e630 | 85 | |
d297c06d | 86 | %package client-libs |
e386ece9 JP |
87 | Summary: Client library for controlling mpv |
88 | Group: Development/Libraries | |
d297c06d JP |
89 | |
90 | %description client-libs | |
91 | Client library for controlling mpv. | |
92 | ||
93 | %package client-devel | |
e386ece9 JP |
94 | Summary: Development files for mpv client library |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-client-libs = %{version}-%{release} | |
d297c06d JP |
97 | |
98 | %description client-devel | |
99 | Development files for mpv client library. | |
100 | ||
101 | %package -n zsh-completion-mpv | |
e386ece9 JP |
102 | Summary: zsh-completion for mpv |
103 | Group: Applications/Shells | |
104 | Requires: %{name} = %{version}-%{release} | |
d297c06d JP |
105 | |
106 | %description -n zsh-completion-mpv | |
107 | zsh-completion for mpv. | |
108 | ||
b297e630 JP |
109 | %prep |
110 | %setup -q | |
d297c06d | 111 | %patch0 -p1 |
b297e630 JP |
112 | |
113 | %build | |
4d3f4bbb | 114 | %waf configure \ |
b297e630 JP |
115 | --prefix=%{_prefix} \ |
116 | --bindir=%{_bindir} \ | |
117 | --confdir=%{_sysconfdir}/mpv \ | |
118 | --libdir=%{_libdir} \ | |
119 | --datadir=%{_datadir} \ | |
120 | --mandir=%{_mandir} \ | |
121 | --disable-debug-build \ | |
122 | --enable-alsa \ | |
123 | --enable-audio-input \ | |
124 | --enable-caca \ | |
125 | --enable-cdda \ | |
4c185ee1 | 126 | --enable-cplugins \ |
b297e630 JP |
127 | --enable-dvb \ |
128 | --enable-dvbin \ | |
129 | --enable-dvdnav \ | |
130 | --enable-dvdread \ | |
d297c06d | 131 | --enable-encoding \ |
b297e630 JP |
132 | --enable-gl-wayland \ |
133 | --enable-gl-x11 \ | |
134 | --enable-iconv \ | |
135 | --enable-jack \ | |
b297e630 | 136 | --enable-jpeg \ |
b297e630 JP |
137 | --enable-lcms2 \ |
138 | --enable-libass \ | |
d297c06d JP |
139 | --enable-libass-osd \ |
140 | --enable-libavdevice \ | |
b297e630 | 141 | --enable-libbluray \ |
d297c06d | 142 | --enable-libmpv-shared \ |
b297e630 JP |
143 | --enable-libsmbclient \ |
144 | --enable-libv4l2 \ | |
b297e630 JP |
145 | --enable-openal \ |
146 | --enable-oss-audio \ | |
b297e630 | 147 | --enable-pulse \ |
d297c06d | 148 | --enable-sdl1 \ |
b297e630 | 149 | --enable-shm \ |
b297e630 JP |
150 | --enable-tv \ |
151 | --enable-tv-v4l2 \ | |
a33f39f8 | 152 | --enable-uchardet \ |
b297e630 JP |
153 | --enable-vaapi \ |
154 | --enable-vaapi-glx \ | |
155 | --enable-vaapi-hwaccel \ | |
b297e630 | 156 | --enable-vdpau \ |
d297c06d | 157 | --enable-vdpau-gl-x11 \ |
b297e630 | 158 | --enable-vdpau-hwaccel \ |
d297c06d | 159 | --enable-wayland \ |
b297e630 | 160 | --enable-x11 \ |
d297c06d | 161 | --enable-xv \ |
f02c0322 | 162 | --enable-zsh-comp \ |
e386ece9 JP |
163 | --lua=51pld \ |
164 | --zshdir=%{zshdir} | |
292eac8e | 165 | |
4d3f4bbb | 166 | %waf build -v |
b297e630 JP |
167 | |
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
4d3f4bbb | 171 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 172 | |
4084bdb9 | 173 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
e386ece9 | 174 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
4084bdb9 | 175 | |
a68f52ba JP |
176 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
177 | ||
b297e630 JP |
178 | %clean |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
1a8f2eea ER |
181 | %post client-libs -p /sbin/ldconfig |
182 | %postun client-libs -p /sbin/ldconfig | |
183 | ||
b297e630 JP |
184 | %files |
185 | %defattr(644,root,root,755) | |
6ee6242b | 186 | %doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf |
b297e630 | 187 | %dir %{_sysconfdir}/mpv |
1a8f2eea | 188 | %config(noreplace) %verify(not md5 mtime size) %{_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 | |
2d1f1cf1 | 193 | %{_iconsdir}/hicolor/scalable/apps/mpv.svg |
0ea238bf | 194 | %{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg |
b297e630 | 195 | %{_mandir}/man1/mpv.1* |
d297c06d JP |
196 | |
197 | %files client-libs | |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
200 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
201 | ||
202 | %files client-devel | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_libdir}/libmpv.so | |
205 | %{_includedir}/mpv | |
206 | %{_pkgconfigdir}/mpv.pc | |
207 | ||
208 | %files -n zsh-completion-mpv | |
209 | %defattr(644,root,root,755) | |
210 | %{zshdir}/_mpv |