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