Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37704898
en ru br
ALT Linux repos
S:2.8.0-alt1
5.0: 2.2.0-alt3
4.1: 2.2.0-alt2
4.0: 2.1.0-alt2
3.0: 1.5.1-alt1

Group :: Sound
RPM: cmus

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# -*- coding: utf-8; mode: rpm-spec -*-
# $Id: cmus.spec,v 1.34 2006/08/20 13:58:03 eugene Exp $

%define name cmus
%define version 2.1.0
%define release alt2

Name: %name
Version: %version
Release: %release
Summary: CMus - C* Music Player
License: GPL
Group: Sound
Url: http://onion.dynserv.net/~timo/cmus.html

Packager: Eugene Vlasov <eugvv at altlinux.ru>

Source0: %name-%version.tar.bz2

# Patch0: cmus-vorbis_includes.patch

# Temporary disable build with ncursesw - removed. Now cmus use ncurses if
# ncursesw not available
# Patch1: %name-with_ncurses.patch

# User interface

BuildRequires: libtinfo-devel
BuildRequires: libncursesw-devel
# Output
BuildRequires: libalsa-devel
BuildRequires: libao-devel
BuildRequires: libarts-devel
# Input
BuildRequires: libmad-devel
BuildRequires: libogg-devel
BuildRequires: libvorbis-devel
BuildRequires: libflac-devel
BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel
BuildRequires: libfaad-devel
BuildRequires: libmikmod-devel
BuildRequires: libmpeg4ip-devel

# Automatically added by buildreq on Fri Dec 22 2006

BuildRequires: libstdc++-devel linux-libc-headers

%description
CMus is a small and fast text mode music player.
Track metadata cache makes adding files to playlist very fast and separate
playlist loader thread keeps UI always usable. cmus is also fast to use;
most commands require just one keypress, more complex commands are
executed in vi-style command mode.
Features
 * Input
   o FLAC
   o Ogg/Vorbis
   o MP3 (libmad)
   o Wav
   o .mod, .s3m, ... (libmodplug, libmikmod)
   o .mpc, .mpp, .mp+ (libmpcdec)
   o MPEG-4 AAC (.mp4, .m4a, .m4b)
   o AAC (.aac, audio/aac, audio/aacp)
 * Output
   o ALSA
   o OSS
   o ARTS
   o libao
 * Playing
   o Album/artist modes; playing within one album or artist
   o Play queue
   o MP3 and Ogg streaming (Shoutcast/Icecast)
   o Powerful playlist filters
 * Interface
   o Easy to use directory browser
   o Customizable colors
   o Dynamic keybindings, you can bind a key to any command
   o Vi/less style search mode
   o Vi style command mode with tabulator expansion
 * Misc
   o Can run external commands for the selected files (tag-editor for
     example)
   o UTF-8 support
   o Can be controlled via UNIX socket using cmus-remote command

%description -l ru_RU.UTF-8
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.
Кэширование данных треков делает добавление файлов в список
воспроизведения очень быстрым, фоновая загрузка файлов в список не
блокирует воспроизведение и интерфейс пользователя.
Для выполнения большинства команд достаточно нажатия на одну клавишу,
более сложные команды отдаются в стиле редактора Vi.
Особенности
 * Входные форматы:
   o FLAC
   o Ogg/Vorbis
   o MP3 (libmad)
   o Wav
   o .mod, .s3m, ... (libmodplug, libmikmod)
   o .mpc, .mpp, .mp+ (libmpcdec)
   o MPEG-4 AAC (.mp4, .m4a, .m4b)
   o AAC (.aac, audio/aac, audio/aacp)
 * Выход:
   o ALSA
   o OSS
   o ARTS
   o libao
 * Воспроизведение
   o Режимы альбом/исполнитель. Воспроизведение целого альбома или
     полностью исполнителя
   o Очередь воспроизведения
   o Потоковое воспроизведение MP3 и Ogg (Shoutcast/Icecast)
   o Фильтры списков воспроизведения
 * Интерфейс
   o Легкая в использовании навигация по каталогам
   o Настраиваемые цвета
   o Переопределяемые комбинации клавиш, возможность задать клавишу для
     любой команды
   o Режим поиска в тиле vi/less
   o Командный режим в стиле vi с поддержкой дополнения строк
 * Прочее
   o Возможность запуска внешних команд для выбранных файлов (например,
     редактора тегов)
   o Поддержка UTF-8
   o Может управлятся через сокет UNIX (используя команду cmus-remote)

%package in-flac
Summary: FLAC plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description in-flac
CMus is a small and fast music player using the ncurses library.

This package contains FLAC plugin.

%description -l ru_RU.UTF-8 in-flac
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения FLAC.


%package in-vorbis
Summary: Ogg/Vorbis plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description in-vorbis
CMus is a small and fast music player using the ncurses library.

This package contains Ogg/Vorbis plugin.

%description -l ru_RU.UTF-8 in-vorbis
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения Ogg/Vorbis.


%package in-modplug
Summary: libmodplug plugin for CMus (.mod, .x3m, ...)
Group: Sound

Requires: %name = %version-%release

%description in-modplug
CMus is a small and fast music player using the ncurses library.

This package contains modules plugin (libmodplug).

%description -l ru_RU.UTF-8 in-modplug
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для модулей (libmodplug).

%package in-mpc
Summary: MPC plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description in-mpc
CMus is a small and fast music player using the ncurses library.

This package contains plugin for .mpc, .mpp, .mp+ files (libmpcdec).

%description -l ru_RU.UTF-8 in-mpc
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения файлов .mpc, .mpp,
.mp+ (libmpcdec).

%package in-mikmod
Summary: libmikmod plugin for CMus (.mod, .x3m, ...)
Group: Sound

Requires: %name = %version-%release

%description in-mikmod
CMus is a small and fast music player using the ncurses library.

This package contains modules plugin (libmikmod).

%description -l ru_RU.UTF-8 in-mikmod
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для модулей (libmikmod).

%package in-mp4
Summary: MPEG-4 AAC plugin for CMus (.mp4, .m4a, .m4b)
Group: Sound

Requires: %name = %version-%release

%description in-mp4
CMus is a small and fast music player using the ncurses library.

This package contains plugin for MPEG-4 AAC (.mp4, .m4a, .m4b) files.

%description -l ru_RU.UTF-8 in-mp4
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения файлов MPEG-4 AAC
(.mp4, .m4a, .m4b).

%package in-aac
Summary: AAC plugin for CMus (.aac, audio/aac, audio/aacp)
Group: Sound

Requires: %name = %version-%release

%description in-aac
CMus is a small and fast music player using the ncurses library.

This package contains plugin for AAC (.aac, audio/aac, audio/aacp) files.

%description -l ru_RU.UTF-8 in-aac
CMus - маленький и быстрый музыкальный проигрыватель, использующий
библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения файлов AAC (.aac,
audio/aac, audio/aacp).


%package out-alsa
Summary: ALSA output plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description out-alsa
CMus is a small and fast music player using the ncurses library.

This package contains ALSA output plugin.

%description -l ru_RU.UTF-8 out-alsa
CMus - маленький и быстрый музыкальный проигрыватель, использующий библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения через ALSA.


%package out-arts
Summary: ARTS output plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description out-arts
CMus is a small and fast music player using the ncurses library.

This package contains ARTS output plugin.

%description -l ru_RU.UTF-8 out-arts
CMus - маленький и быстрый музыкальный проигрыватель, использующий библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения через ARTS.


%package out-ao
Summary: libao output plugin for CMus
Group: Sound

Requires: %name = %version-%release

%description out-ao
CMus is a small and fast music player using the ncurses library.

This package contains libao output plugin.

%description -l ru_RU.UTF-8 out-ao
CMus - маленький и быстрый музыкальный проигрыватель, использующий библиотеку ncurses.

Этот пакет содержит расширение для воспроизведения через libao.


%prep
%setup -q
# %patch0 -p1
# %patch1 -p1


%build
CFLAGS="${CFLAGS:--pipe -Wall -O2}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:--pipe -Wall -O2}" ; export CXXFLAGS
./configure \
       prefix=%prefix \
       CONFIG_FLAC=y \
       CONFIG_MAD=y \
       CONFIG_MODPLUG=y \
       CONFIG_MPC=y \
       CONFIG_VORBIS=y \
       CONFIG_WAV=y \
       CONFIG_MIKMOD=y \
       CONFIG_AAC=y \
       CONFIG_MP4=y \
       CONFIG_ALSA=y \
       CONFIG_ARTS=y \
       CONFIG_AO=y \
       CONFIG_OSS=y
%make_build
# make man
# make html


%install
make DESTDIR=%buildroot install
make DESTDIR=%buildroot install-man

# Menu entry

%__mkdir_p %buildroot%_menudir
cat > %buildroot%_menudir/%name <<EOF
?package(cmus):\
command="%_bindir/%name" needs="text" icon="sound_section.png" \
  section="Multimedia/Sound" title="CMus" \
       longtitle="CMus - C* Music Player"
EOF
%__mkdir examples
%__mv cmus-status-display examples


%post
%update_menus


%postun
%clean_menus


%files
%_bindir/cmus*
%dir %_libexecdir/%name
%dir %_libexecdir/%name/ip
%dir %_libexecdir/%name/op
%_libexecdir/%name/ip/mad.so
%_libexecdir/%name/ip/wav.so
%_libexecdir/%name/op/oss.so
%_menudir/%name
%_datadir/%name
%exclude %_datadir/doc/%name
%doc AUTHORS HACKING README examples
%_man1dir/cmus.1.*
%_man1dir/cmus-remote.1.*


%files in-flac
%_libexecdir/%name/ip/flac.so


%files in-vorbis
%_libexecdir/%name/ip/vorbis.so


%files in-modplug
%_libexecdir/%name/ip/modplug.so


%files in-mpc
%_libexecdir/%name/ip/mpc.so


%files in-mikmod
%_libexecdir/%name/ip/mikmod.so


%files in-mp4
%_libexecdir/%name/ip/mp4.so


%files in-aac
%_libexecdir/%name/ip/aac.so


%files out-alsa
%_libexecdir/%name/op/alsa.so


%files out-arts
%_libexecdir/%name/op/arts.so


%files out-ao
%_libexecdir/%name/op/ao.so


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin