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