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