f13b4e4fca883b07fe59db35c2384779fd0245ee
[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.29.1
5 Release:        4
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:  2cd070c6aed980786177b7cb5b73664b
11 Source1:        %{name}.conf
12 Patch0:         %{name}-lua.patch
13 URL:            http://mpv.io/
14 BuildRequires:  Mesa-libEGL-devel >= 9.0.0
15 BuildRequires:  OpenAL-devel >= 1.13
16 BuildRequires:  OpenGL-devel
17 BuildRequires:  SDL2-devel
18 BuildRequires:  alsa-lib-devel >= 1.0.18
19 BuildRequires:  docutils
20 BuildRequires:  ffmpeg-devel >= 4.0
21 BuildRequires:  jack-audio-connection-kit-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:  libcaca-devel >= 0.99-0.beta18.1
29 BuildRequires:  libcdio-paranoia-devel
30 BuildRequires:  libdvdnav-devel >= 4.2.0
31 BuildRequires:  libdvdread-devel >= 4.1.0
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libsmbclient-devel
34 BuildRequires:  libv4l-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:  uchardet-devel
43 BuildRequires:  waf >= 1.8.12
44 BuildRequires:  wayland-devel >= 1.6.0
45 BuildRequires:  wayland-egl-devel
46 BuildRequires:  wayland-protocols >= 1.14
47 BuildRequires:  xorg-lib-libX11-devel >= 1.0.0
48 BuildRequires:  xorg-lib-libXScrnSaver-devel >= 1.0.0
49 BuildRequires:  xorg-lib-libXdamage-devel
50 BuildRequires:  xorg-lib-libXext-devel >= 1.0.0
51 BuildRequires:  xorg-lib-libXinerama-devel >= 1.0.0
52 BuildRequires:  xorg-lib-libXrandr-devel >= 1.2.0
53 BuildRequires:  xorg-lib-libXv-devel
54 BuildRequires:  xorg-lib-libXxf86vm-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    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-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-libv4l2 \
161                 --enable-openal \
162                 --enable-oss-audio \
163                 --enable-pulse \
164                 --enable-sdl2 \
165                 --enable-tv \
166                 --enable-tv-v4l2 \
167                 --enable-uchardet \
168                 --enable-vaapi \
169                 --enable-vaapi-glx \
170                 --enable-vdpau \
171                 --enable-vdpau-gl-x11 \
172                 --enable-wayland \
173                 --enable-x11 \
174                 --enable-xv \
175                 --enable-zsh-comp \
176                 --lua=51pld \
177                 --zshdir=%{zshdir}
178
179 %waf build -v
180
181 %install
182 rm -rf $RPM_BUILD_ROOT
183
184 %waf install --destdir=$RPM_BUILD_ROOT
185
186 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
187 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
188
189 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
190
191 %clean
192 rm -rf $RPM_BUILD_ROOT
193
194 %post   client-libs -p /sbin/ldconfig
195 %postun client-libs -p /sbin/ldconfig
196
197 %files
198 %defattr(644,root,root,755)
199 %doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf
200 %dir %{_sysconfdir}/mpv
201 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/encoding-profiles.conf
202 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf
203 %attr(755,root,root) %{_bindir}/%{name}
204 %{_desktopdir}/mpv.desktop
205 %{_iconsdir}/hicolor/*/apps/mpv.png
206 %{_iconsdir}/hicolor/scalable/apps/mpv.svg
207 %{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg
208 %{_mandir}/man1/mpv.1*
209
210 %files client-libs
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/libmpv.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1
214
215 %files client-devel
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/libmpv.so
218 %{_includedir}/mpv
219 %{_pkgconfigdir}/mpv.pc
220
221 %files -n zsh-completion-mpv
222 %defattr(644,root,root,755)
223 %{zshdir}/_mpv
This page took 0.059602 seconds and 2 git commands to generate.