]> git.pld-linux.org Git - packages/mpv.git/blob - mpv.spec
f20b0f8a50950be2e3f54944e6610569d4b40022
[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.27.2
5 Release:        3
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:  8cfb48e921e58c0d9d181d96d4809beb
11 Source1:        %{name}.conf
12 Patch0:         %{name}-lua.patch
13 URL:            http://mpv.io/
14 BuildRequires:  Mesa-libEGL-devel >= 9.0.0
15 BuildRequires:  Mesa-libwayland-egl-devel >= 9.0.0
16 BuildRequires:  OpenAL-devel >= 1.13
17 BuildRequires:  OpenGL-devel
18 BuildRequires:  SDL-devel
19 BuildRequires:  alsa-lib-devel >= 1.0.18
20 BuildRequires:  docutils
21 BuildRequires:  ffmpeg-devel >= 3.2.2
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:  libv4l-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:  uchardet-devel
44 BuildRequires:  waf >= 1.8.12
45 BuildRequires:  wayland-devel >= 1.3.0
46 BuildRequires:  xorg-lib-libX11-devel >= 1.0.0
47 BuildRequires:  xorg-lib-libXScrnSaver-devel >= 1.0.0
48 BuildRequires:  xorg-lib-libXdamage-devel
49 BuildRequires:  xorg-lib-libXext-devel >= 1.0.0
50 BuildRequires:  xorg-lib-libXinerama-devel >= 1.0.0
51 BuildRequires:  xorg-lib-libXrandr-devel >= 1.2.0
52 BuildRequires:  xorg-lib-libXv-devel
53 BuildRequires:  xorg-lib-libXxf86vm-devel
54 BuildRequires:  xorg-lib-libxkbcommon-devel >= 0.3.0
55 BuildRequires:  xorg-proto-xproto-devel
56 Requires:       Mesa-libwayland-egl >= 9.0.0
57 Requires:       OpenAL >= 1.13
58 Requires:       OpenGL
59 Requires:       alsa-lib >= 1.0.18
60 %requires_eq    ffmpeg-libs
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:       wayland >= 1.6.0
72 Requires:       xorg-lib-libX11 >= 1.0.0
73 Requires:       xorg-lib-libXScrnSaver >= 1.0.0
74 Requires:       xorg-lib-libXext >= 1.0.0
75 Requires:       xorg-lib-libXinerama >= 1.0.0
76 Requires:       xorg-lib-libXrandr >= 1.2.0
77 Requires:       xorg-lib-libxkbcommon >= 0.3.0
78 Suggests:       youtube-dl >= 2:20150223
79 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
82
83 %define         zshdir %{_datadir}/zsh/site-functions
84
85 %description
86 Movie player based on MPlayer and mplayer2.
87
88 %description -l pl.UTF-8
89 Odtwarzacz filmów oparty na projektach MPlayer i mplayer2.
90
91 %package client-libs
92 Summary:        Client library for controlling mpv
93 Summary(pl.UTF-8):      Biblioteka kliencka do sterowania odtwarzaczem mpv
94 Group:          Libraries
95
96 %description client-libs
97 Client library for controlling mpv.
98
99 %description client-libs -l pl.UTF-8
100 Biblioteka kliencka do sterowania odtwarzaczem mpv.
101
102 %package client-devel
103 Summary:        Development files for mpv client library
104 Summary(pl.UTF-8):      Pliki programistyczne biblioteki klienckiej mpv
105 Group:          Development/Libraries
106 Requires:       %{name}-client-libs = %{version}-%{release}
107
108 %description client-devel
109 Development files for mpv client library.
110
111 %description client-devel -l pl.UTF-8
112 Pliki programistyczne biblioteki klienckiej mpv.
113
114 %package -n zsh-completion-mpv
115 Summary:        ZSH completion for mpv
116 Summary(pl.UTF-8):      Dopełnianie parametrów mpv dla powłoki ZSH
117 Group:          Applications/Shells
118 Requires:       %{name} = %{version}-%{release}
119
120 %description -n zsh-completion-mpv
121 ZSH completion for mpv.
122
123 %description -n zsh-completion-mpv -l pl.UTF-8
124 Dopełnianie parametrów mpv dla powłoki ZSH.
125
126 %prep
127 %setup -q
128 %patch0 -p1
129
130 %build
131 %waf configure \
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 \
143                 --enable-cplugins \
144                 --enable-dvb \
145                 --enable-dvbin \
146                 --enable-dvdnav \
147                 --enable-dvdread \
148                 --enable-encoding \
149                 --enable-gl-wayland \
150                 --enable-gl-x11 \
151                 --enable-iconv \
152                 --enable-jack \
153                 --enable-jpeg \
154                 --enable-lcms2 \
155                 --enable-libass \
156                 --enable-libass-osd \
157                 --enable-libavdevice \
158                 --enable-libbluray \
159                 --enable-libmpv-shared \
160                 --enable-libsmbclient \
161                 --enable-libv4l2 \
162                 --enable-openal \
163                 --enable-oss-audio \
164                 --enable-pulse \
165                 --enable-sdl1 \
166                 --enable-shm \
167                 --enable-tv \
168                 --enable-tv-v4l2 \
169                 --enable-uchardet \
170                 --enable-vaapi \
171                 --enable-vaapi-glx \
172                 --enable-vaapi-hwaccel \
173                 --enable-vdpau \
174                 --enable-vdpau-gl-x11 \
175                 --enable-vdpau-hwaccel \
176                 --enable-wayland \
177                 --enable-x11 \
178                 --enable-xv \
179                 --enable-zsh-comp \
180                 --lua=51pld \
181                 --zshdir=%{zshdir}
182
183 %waf build -v
184
185 %install
186 rm -rf $RPM_BUILD_ROOT
187
188 %waf install --destdir=$RPM_BUILD_ROOT
189
190 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
191 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
192
193 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
194
195 %clean
196 rm -rf $RPM_BUILD_ROOT
197
198 %post   client-libs -p /sbin/ldconfig
199 %postun client-libs -p /sbin/ldconfig
200
201 %files
202 %defattr(644,root,root,755)
203 %doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf
204 %dir %{_sysconfdir}/mpv
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/encoding-profiles.conf
206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf
207 %attr(755,root,root) %{_bindir}/%{name}
208 %{_desktopdir}/mpv.desktop
209 %{_iconsdir}/hicolor/*/apps/mpv.png
210 %{_iconsdir}/hicolor/scalable/apps/mpv.svg
211 %{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg
212 %{_mandir}/man1/mpv.1*
213
214 %files client-libs
215 %defattr(644,root,root,755)
216 %attr(755,root,root) %{_libdir}/libmpv.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1
218
219 %files client-devel
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libmpv.so
222 %{_includedir}/mpv
223 %{_pkgconfigdir}/mpv.pc
224
225 %files -n zsh-completion-mpv
226 %defattr(644,root,root,755)
227 %{zshdir}/_mpv
This page took 0.031923 seconds and 2 git commands to generate.