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