]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
139a4b4b | 3 | Version: 0.8.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 |
139a4b4b | 8 | # Source0-md5: 6437a04dbcfe42efc13cdd37c979b954 |
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 | |
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: libsmbclient-devel |
36 | BuildRequires: libv4l-devel | |
37 | BuildRequires: libva-devel >= 1.2.0 | |
38 | BuildRequires: libva-glx-devel >= 1.2.0 | |
39 | BuildRequires: libvdpau-devel >= 0.2 | |
40 | BuildRequires: lirc-devel | |
f02c0322 | 41 | BuildRequires: lua51-devel |
b297e630 | 42 | BuildRequires: pkgconfig |
b297e630 | 43 | BuildRequires: pulseaudio-devel >= 0.9 |
4d3f4bbb | 44 | BuildRequires: rpmbuild(macros) >= 1.336 |
0c267122 | 45 | BuildRequires: waf >= 1.8.1 |
8b886367 | 46 | BuildRequires: wayland-devel >= 1.3.0 |
b297e630 JP |
47 | BuildRequires: xorg-lib-libX11-devel |
48 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
49 | BuildRequires: xorg-lib-libXdamage-devel | |
50 | BuildRequires: xorg-lib-libXext-devel | |
51 | BuildRequires: xorg-lib-libXinerama-devel | |
52 | BuildRequires: xorg-lib-libXv-devel | |
53 | BuildRequires: xorg-lib-libXxf86vm-devel | |
54 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
55 | BuildRequires: xorg-proto-xproto-devel | |
56 | Requires: OpenGL | |
20a45907 | 57 | Suggests: youtube-dl >= 2:20150223 |
b297e630 JP |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
60 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
61 | ||
d297c06d JP |
62 | %define zshdir %{_datadir}/zsh/site-functions |
63 | ||
b297e630 | 64 | %description |
292eac8e | 65 | Movie player based on MPlayer and mplayer2. |
b297e630 | 66 | |
d297c06d | 67 | %package client-libs |
e386ece9 JP |
68 | Summary: Client library for controlling mpv |
69 | Group: Development/Libraries | |
d297c06d JP |
70 | |
71 | %description client-libs | |
72 | Client library for controlling mpv. | |
73 | ||
74 | %package client-devel | |
e386ece9 JP |
75 | Summary: Development files for mpv client library |
76 | Group: Development/Libraries | |
77 | Requires: %{name}-client-libs = %{version}-%{release} | |
d297c06d JP |
78 | |
79 | %description client-devel | |
80 | Development files for mpv client library. | |
81 | ||
82 | %package -n zsh-completion-mpv | |
e386ece9 JP |
83 | Summary: zsh-completion for mpv |
84 | Group: Applications/Shells | |
85 | Requires: %{name} = %{version}-%{release} | |
d297c06d JP |
86 | |
87 | %description -n zsh-completion-mpv | |
88 | zsh-completion for mpv. | |
89 | ||
b297e630 JP |
90 | %prep |
91 | %setup -q | |
d297c06d | 92 | %patch0 -p1 |
b297e630 JP |
93 | |
94 | %build | |
4d3f4bbb | 95 | %waf configure \ |
b297e630 JP |
96 | --prefix=%{_prefix} \ |
97 | --bindir=%{_bindir} \ | |
98 | --confdir=%{_sysconfdir}/mpv \ | |
99 | --libdir=%{_libdir} \ | |
100 | --datadir=%{_datadir} \ | |
101 | --mandir=%{_mandir} \ | |
102 | --disable-debug-build \ | |
103 | --enable-alsa \ | |
104 | --enable-audio-input \ | |
105 | --enable-caca \ | |
106 | --enable-cdda \ | |
107 | --enable-dvb \ | |
108 | --enable-dvbin \ | |
109 | --enable-dvdnav \ | |
110 | --enable-dvdread \ | |
111 | --enable-enca \ | |
d297c06d | 112 | --enable-encoding \ |
b297e630 JP |
113 | --enable-gl-wayland \ |
114 | --enable-gl-x11 \ | |
115 | --enable-iconv \ | |
116 | --enable-jack \ | |
117 | --enable-joystick \ | |
118 | --enable-jpeg \ | |
119 | --enable-ladspa \ | |
120 | --enable-lcms2 \ | |
121 | --enable-libass \ | |
d297c06d JP |
122 | --enable-libass-osd \ |
123 | --enable-libavdevice \ | |
124 | --enable-libavfilter \ | |
b297e630 JP |
125 | --enable-libbluray \ |
126 | --enable-libbs2b \ | |
127 | --enable-libguess \ | |
d297c06d | 128 | --enable-libmpv-shared \ |
b297e630 | 129 | --enable-libsmbclient \ |
eab2fe55 | 130 | --enable-libswresample \ |
b297e630 JP |
131 | --enable-libv4l2 \ |
132 | --enable-lirc \ | |
133 | --enable-mpg123 \ | |
134 | --enable-openal \ | |
135 | --enable-oss-audio \ | |
b297e630 JP |
136 | --enable-pulse \ |
137 | --enable-pvr \ | |
d297c06d | 138 | --enable-sdl1 \ |
b297e630 | 139 | --enable-shm \ |
b297e630 JP |
140 | --enable-tv \ |
141 | --enable-tv-v4l2 \ | |
b297e630 JP |
142 | --enable-vaapi \ |
143 | --enable-vaapi-glx \ | |
144 | --enable-vaapi-hwaccel \ | |
145 | --enable-vaapi-vpp \ | |
b297e630 | 146 | --enable-vdpau \ |
d297c06d | 147 | --enable-vdpau-gl-x11 \ |
b297e630 | 148 | --enable-vdpau-hwaccel \ |
d297c06d | 149 | --enable-wayland \ |
b297e630 JP |
150 | --enable-x11 \ |
151 | --enable-xext \ | |
b297e630 JP |
152 | --enable-xinerama \ |
153 | --enable-xss \ | |
d297c06d | 154 | --enable-xv \ |
f02c0322 | 155 | --enable-zsh-comp \ |
e386ece9 JP |
156 | --lua=51pld \ |
157 | --zshdir=%{zshdir} | |
292eac8e | 158 | |
4d3f4bbb | 159 | %waf build -v |
b297e630 JP |
160 | |
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
4d3f4bbb | 164 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 165 | |
4084bdb9 | 166 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
e386ece9 | 167 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
4084bdb9 | 168 | |
a68f52ba JP |
169 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
170 | ||
b297e630 JP |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %files | |
175 | %defattr(644,root,root,755) | |
a68f52ba | 176 | %doc README.md RELEASE_NOTES etc/example.conf etc/input.conf etc/mplayer-input.conf etc/restore-old-bindings.conf |
b297e630 JP |
177 | %dir %{_sysconfdir}/mpv |
178 | %{_sysconfdir}/mpv/encoding-profiles.conf | |
4084bdb9 | 179 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
180 | %attr(755,root,root) %{_bindir}/%{name} |
181 | %{_desktopdir}/mpv.desktop | |
182 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
183 | %{_mandir}/man1/mpv.1* | |
d297c06d JP |
184 | |
185 | %files client-libs | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
188 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
189 | ||
190 | %files client-devel | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_libdir}/libmpv.so | |
193 | %{_includedir}/mpv | |
194 | %{_pkgconfigdir}/mpv.pc | |
195 | ||
196 | %files -n zsh-completion-mpv | |
197 | %defattr(644,root,root,755) | |
198 | %{zshdir}/_mpv |