1 |
%define _disable_ld_no_undefined 1 |
2 |
|
3 |
Name: cmus |
4 |
Version: 2.7.1 |
5 |
Release: %mkrel 8 |
6 |
Summary: A powerful ncurses-based music player |
7 |
URL: http://cmus.github.io/ |
8 |
License: GPLv2 |
9 |
Group: Sound/Players |
10 |
Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz |
11 |
Patch0: cmus-2.7.1-fix-install.patch |
12 |
BuildRequires: libffmpeg-devel |
13 |
BuildRequires: libmp4v2-devel |
14 |
BuildRequires: libmpcdec-devel |
15 |
BuildRequires: pkgconfig(alsa) |
16 |
BuildRequires: pkgconfig(ao) |
17 |
BuildRequires: pkgconfig(libcddb) |
18 |
BuildRequires: pkgconfig(libcue) |
19 |
BuildRequires: pkgconfig(libdiscid) |
20 |
BuildRequires: pkgconfig(flac) |
21 |
BuildRequires: pkgconfig(mad) |
22 |
BuildRequires: pkgconfig(libmodplug) |
23 |
BuildRequires: pkgconfig(libpulse) |
24 |
BuildRequires: pkgconfig(vorbis) |
25 |
BuildRequires: pkgconfig(wavpack) |
26 |
BuildRequires: pkgconfig(ncursesw) |
27 |
BuildRequires: pkgconfig(libcdio_cdda) |
28 |
|
29 |
%if "%{?distro_section}" == "tainted" |
30 |
BuildRequires: libfaad2-devel |
31 |
%endif |
32 |
|
33 |
Requires: ncurses |
34 |
|
35 |
%description |
36 |
cmus is a powerful music player with an ncurses UI. It supports many |
37 |
different file types like FLAC, Ogg/Vorbis, etc. and is able to handle play |
38 |
lists. |
39 |
%if "%{?distro_section}" == "tainted" |
40 |
This package is in the "tainted" section as it requires other "tainted" packages. |
41 |
%endif |
42 |
|
43 |
%prep |
44 |
%autosetup -p1 |
45 |
|
46 |
%build |
47 |
%setup_compile_flags |
48 |
./configure prefix=%{_prefix} libdir=%{_libdir} DEBUG=0 |
49 |
%make_build |
50 |
|
51 |
%install |
52 |
%make_install |
53 |
|
54 |
%files |
55 |
%doc README.md |
56 |
%{_docdir}/%{name}/examples/ |
57 |
%{_bindir}/* |
58 |
%{_libdir}/cmus/ |
59 |
%{_datadir}/cmus/ |
60 |
%{_mandir}/man1/* |
61 |
%{_mandir}/man7/* |