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