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