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