Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37489075
en ru br
ALT Linux repos
S:2.6.0-alt0.5
5.0: 2.5.0-alt0.2
4.1: 2.5.0-alt0.2
4.0: 2.5.0-alt0.1
3.0: 2.3.1-alt1

Group :: Sound
RPM: moc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define binary_name mocp
%define rel_version 2.3.1
%def_disable debug
%set_verify_elf_method strict

Name: moc
Version: %rel_version
Release: alt1

Summary: Console MP3/OGG player
Group: Sound
License: GPL
Url: http://moc.daper.net/

Source: %name-%rel_version.tar.bz2

Patch0: moc-2.3.0-alt-search-menu-key-disable.patch
Patch1: moc-2.3.1-vorbis-headers.patch

# Automatically added by buildreq on Tue Jun 21 2005

BuildRequires: gcc-c++ jackit-devel libalsa-devel libcurl-devel libflac-devel libid3tag-devel
BuildRequires: libidn-devel libmad-devel libncurses-devel libogg-devel libsamplerate-devel
BuildRequires: libsndfile-devel libssl-devel libstdc++-devel libtinfo-devel libvorbis-devel
BuildRequires: pkgconfig zlib-devel libltdl-devel

%description
MOC is a console audio player with simple ncurses interface in
playmp3list style.

Features:
- Supports MP3 and OGG formats.
- Play files from directory changing automatically to the next one
 without any playlist.
- Supports id3tag, VBR and Xing header for MP3.
- Simple mixer.
- Fast switching to your music directory.

%prep
%setup -q -n %name-%rel_version
#patch0 -p1
%patch1 -p1

rename 8 1 *.8
%__subst 's,\(%binary_name\.\)8,\11,g
 s,\(man\)8,\11,g' Makefile.am
%__subst 's,\(MOC \)8,\11,g' %binary_name.1

%build
%__libtoolize --copy --force
%__aclocal -I m4
%__automake -a -c
%__autoconf

%configure \
--with-libFLAC=%_prefix \
       %{subst_enable debug}
%make_build

%install
%make_install DESTDIR=%buildroot install

# menu

%__cat  <<__MENU__ >%binary_name.menu
?package(%name): \
 needs="text" \
 command="%_bindir/%binary_name" \
 icon="sound_section.png" \
 title="MoC" \
 genericname="Audio Player" \
 longtitle="Music On Console" \
 section="Multimedia/Sound"
__MENU__

%__install -pD -m644 %binary_name.menu %buildroot/%_menudir/%binary_name

%__rm -rf %buildroot%_docdir/%name \
   %buildroot/%_libdir/moc/decoder_plugins/*.la

%post
%update_menus

%postun
%clean_menus

%files
%_bindir/*
%_libdir/moc/decoder_plugins
%_datadir/%name
%_man1dir/*
%_menudir/*
%doc AUTHORS NEWS TODO README *.example

%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