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