]> git.pld-linux.org Git - packages/mpv.git/blob - mpv.spec
up to 0.32.0
[packages/mpv.git] / mpv.spec
1 Summary:        Movie player based on MPlayer and mplayer2
2 Summary(pl.UTF-8):      Odtwarzacz filmów oparty na projektach MPlayer i mplayer2
3 Name:           mpv
4 Version:        0.32.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Multimedia
8 #Source0Download: http://github.com/mpv-player/mpv/releases
9 Source0:        http://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  1f7d23afe7a8639dedc9f7beef4e90d7
11 Source1:        %{name}.conf
12 Patch0:         %{name}-lua.patch
13 Patch1:         %{name}-shaderc.patch
14 URL:            http://mpv.io/
15 BuildRequires:  Mesa-libEGL-devel >= 9.0.0
16 BuildRequires:  Mesa-libgbm-devel
17 BuildRequires:  OpenAL-devel >= 1.13
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  SDL2-devel
20 BuildRequires:  alsa-lib-devel >= 1.0.18
21 BuildRequires:  docutils
22 BuildRequires:  ffmpeg-devel >= 4.0
23 BuildRequires:  jack-audio-connection-kit-devel
24 BuildRequires:  lcms2-devel >= 2.6
25 BuildRequires:  libarchive-devel >= 3.4.0
26 BuildRequires:  libass-devel >= 0.12.1
27 %ifarch i386 i486
28 BuildRequires:  libatomic-devel
29 %endif
30 BuildRequires:  libbluray-devel >= 0.3.0
31 BuildRequires:  libcaca-devel >= 0.99-0.beta18.1
32 BuildRequires:  libcdio-paranoia-devel
33 BuildRequires:  libdrm-devel >= 2.4.74
34 BuildRequires:  libdvdnav-devel >= 4.2.0
35 BuildRequires:  libdvdread-devel >= 4.1.0
36 BuildRequires:  libjpeg-devel
37 BuildRequires:  libplacebo-devel >= 0.18.0
38 BuildRequires:  libsmbclient-devel
39 BuildRequires:  libva-devel >= 1.4.0
40 BuildRequires:  libva-glx-devel >= 1.4.0
41 BuildRequires:  libvdpau-devel >= 0.2
42 BuildRequires:  lua51-devel
43 BuildRequires:  nv-codec-headers >= 8.2.15.7
44 BuildRequires:  pkgconfig
45 BuildRequires:  pulseaudio-devel >= 1.0
46 BuildRequires:  rpmbuild(macros) >= 1.719
47 BuildRequires:  rubberband-devel >= 1.8.0
48 BuildRequires:  shaderc-devel >= 2019.0
49 BuildRequires:  uchardet-devel
50 BuildRequires:  vapoursynth-devel >= 24
51 BuildRequires:  waf >= 1.8.12
52 BuildRequires:  wayland-devel >= 1.15.0
53 BuildRequires:  wayland-egl-devel
54 BuildRequires:  wayland-protocols >= 1.14
55 BuildRequires:  xorg-lib-libX11-devel >= 1.0.0
56 BuildRequires:  xorg-lib-libXScrnSaver-devel >= 1.0.0
57 BuildRequires:  xorg-lib-libXdamage-devel
58 BuildRequires:  xorg-lib-libXext-devel >= 1.0.0
59 BuildRequires:  xorg-lib-libXinerama-devel >= 1.0.0
60 BuildRequires:  xorg-lib-libXrandr-devel >= 1.2.0
61 BuildRequires:  xorg-lib-libXv-devel
62 BuildRequires:  xorg-lib-libxkbcommon-devel >= 0.3.0
63 BuildRequires:  xorg-proto-xproto-devel
64 BuildRequires:  zimg-devel >= 2.9
65 BuildRequires:  zlib-devel
66 Requires:       OpenAL >= 1.13
67 Requires:       OpenGL
68 Requires:       alsa-lib >= 1.0.18
69 %requires_eq_to ffmpeg-libs ffmpeg-devel
70 Requires:       lcms2 >= 2.6
71 Requires:       libarchive >= 3.4.0
72 Requires:       libass >= 0.12.1
73 Requires:       libbluray >= 0.3.0
74 Requires:       libcaca >= 0.99-0.beta18.1
75 Requires:       libdrm >= 2.4.74
76 Requires:       libdvdnav >= 4.2.0
77 Requires:       libdvdread >= 4.1.0
78 Requires:       libplacebo >= 0.18.0
79 Requires:       libva >= 1.4.0
80 Requires:       libva-glx >= 1.4.0
81 Requires:       libvdpau >= 0.2
82 Requires:       pulseaudio-libs >= 1.0
83 Requires:       rubberband-libs >= 1.8.0
84 Requires:       shaderc >= 2019.0
85 Requires:       vapoursynth >= 24
86 Requires:       wayland >= 1.15.0
87 Requires:       xorg-lib-libX11 >= 1.0.0
88 Requires:       xorg-lib-libXScrnSaver >= 1.0.0
89 Requires:       xorg-lib-libXext >= 1.0.0
90 Requires:       xorg-lib-libXinerama >= 1.0.0
91 Requires:       xorg-lib-libXrandr >= 1.2.0
92 Requires:       xorg-lib-libxkbcommon >= 0.3.0
93 Requires:       zimg >= 2.9
94 Suggests:       youtube-dl >= 2:20150223
95 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96
97 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
98
99 %description
100 Movie player based on MPlayer and mplayer2.
101
102 %description -l pl.UTF-8
103 Odtwarzacz filmów oparty na projektach MPlayer i mplayer2.
104
105 %package client-libs
106 Summary:        Client library for controlling mpv
107 Summary(pl.UTF-8):      Biblioteka kliencka do sterowania odtwarzaczem mpv
108 Group:          Libraries
109
110 %description client-libs
111 Client library for controlling mpv.
112
113 %description client-libs -l pl.UTF-8
114 Biblioteka kliencka do sterowania odtwarzaczem mpv.
115
116 %package client-devel
117 Summary:        Development files for mpv client library
118 Summary(pl.UTF-8):      Pliki programistyczne biblioteki klienckiej mpv
119 Group:          Development/Libraries
120 Requires:       %{name}-client-libs = %{version}-%{release}
121
122 %description client-devel
123 Development files for mpv client library.
124
125 %description client-devel -l pl.UTF-8
126 Pliki programistyczne biblioteki klienckiej mpv.
127
128 %package -n bash-completion-mpv
129 Summary:        Bash completion for mpv
130 Summary(pl.UTF-8):      Dopełnianie parametrów mpv dla powłoki Bash
131 Group:          Applications/Shells
132 Requires:       %{name} = %{version}-%{release}
133 Requires:       bash-completion >= 2.0
134
135 %description -n bash-completion-mpv
136 Bash completion for mpv.
137
138 %description -n bash-completion-mpv -l pl.UTF-8
139 Dopełnianie parametrów mpv dla powłoki Bash.
140
141 %package -n zsh-completion-mpv
142 Summary:        ZSH completion for mpv
143 Summary(pl.UTF-8):      Dopełnianie parametrów mpv dla powłoki ZSH
144 Group:          Applications/Shells
145 Requires:       %{name} = %{version}-%{release}
146
147 %description -n zsh-completion-mpv
148 ZSH completion for mpv.
149
150 %description -n zsh-completion-mpv -l pl.UTF-8
151 Dopełnianie parametrów mpv dla powłoki ZSH.
152
153 %prep
154 %setup -q
155 %patch0 -p1
156 %patch1 -p1
157
158 %build
159 %waf configure \
160                 --prefix=%{_prefix} \
161                 --bindir=%{_bindir} \
162                 --confdir=%{_sysconfdir}/mpv \
163                 --libdir=%{_libdir} \
164                 --datadir=%{_datadir} \
165                 --mandir=%{_mandir} \
166                 --disable-debug-build \
167                 --enable-alsa \
168                 --enable-caca \
169                 --enable-cdda \
170                 --enable-cplugins \
171                 --enable-dvb \
172                 --enable-dvbin \
173                 --enable-dvdnav \
174                 --enable-gl-wayland \
175                 --enable-gl-x11 \
176                 --enable-iconv \
177                 --enable-jack \
178                 --enable-jpeg \
179                 --enable-lcms2 \
180                 --enable-libass \
181                 --enable-libass-osd \
182                 --enable-libavdevice \
183                 --enable-libbluray \
184                 --enable-libmpv-shared \
185                 --enable-libplacebo \
186                 --enable-libsmbclient \
187                 --enable-openal \
188                 --enable-oss-audio \
189                 --enable-pulse \
190                 --enable-sdl2 \
191                 --enable-shaderc \
192                 --enable-uchardet \
193                 --enable-vaapi \
194                 --enable-vdpau \
195                 --enable-vdpau-gl-x11 \
196                 --enable-wayland \
197                 --enable-x11 \
198                 --enable-xv \
199                 --lua=51pld \
200                 --bashdir=%{bash_compdir} \
201                 --zshdir=%{zsh_compdir}
202
203 %waf build -v
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207
208 %waf install --destdir=$RPM_BUILD_ROOT
209
210 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
211 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
212
213 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
214
215 %clean
216 rm -rf $RPM_BUILD_ROOT
217
218 %post   client-libs -p /sbin/ldconfig
219 %postun client-libs -p /sbin/ldconfig
220
221 %files
222 %defattr(644,root,root,755)
223 %doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf
224 %dir %{_sysconfdir}/mpv
225 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/encoding-profiles.conf
226 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf
227 %attr(755,root,root) %{_bindir}/%{name}
228 %{_desktopdir}/mpv.desktop
229 %{_iconsdir}/hicolor/*/apps/mpv.png
230 %{_iconsdir}/hicolor/scalable/apps/mpv.svg
231 %{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg
232 %{_mandir}/man1/mpv.1*
233
234 %files client-libs
235 %defattr(644,root,root,755)
236 %attr(755,root,root) %{_libdir}/libmpv.so.*.*.*
237 %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1
238
239 %files client-devel
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libmpv.so
242 %{_includedir}/mpv
243 %{_pkgconfigdir}/mpv.pc
244
245 %files -n bash-completion-mpv
246 %defattr(644,root,root,755)
247 %{bash_compdir}/mpv
248
249 %files -n zsh-completion-mpv
250 %defattr(644,root,root,755)
251 %{zsh_compdir}/_mpv
This page took 0.078794 seconds and 3 git commands to generate.