Skip to content

Instantly share code, notes, and snippets.

@sedrubal
Last active October 9, 2015 23:13
Show Gist options
  • Save sedrubal/5b8e0df42140bc616c1d to your computer and use it in GitHub Desktop.
Save sedrubal/5b8e0df42140bc616c1d to your computer and use it in GitHub Desktop.
cmus - RPM SPEC
Name: cmus
Version: 2.7.1
Release: 3%{?dist}
Summary: Ncurses-Based Music Player
Group: Applications/Multimedia
License: GPLv2+
URL: https://cmus.github.io/
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
BuildRequires: ncurses-devel
BuildRequires: alsa-lib
BuildRequires: libao
BuildRequires: libcddb-devel
BuildRequires: opusfile-devel
BuildRequires: libcue-devel
BuildRequires: libmodplug-devel
BuildRequires: libmpcdec-devel
BuildRequires: libvorbis-devel
BuildRequires: flac-devel
BuildRequires: faad2-devel
BuildRequires: ffmpeg-devel
BuildRequires: libmad-devel
BuildRequires: libmp4v2-devel
BuildRequires: wavpack-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: alsa-lib-devel
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libsamplerate-devel
BuildRequires: arts-devel
BuildRequires: libdiscid-devel
%description
cmus is a small, fast and powerful console music player for Unix-like operating systems.
%prep
%setup -q
%build
./configure prefix=%{_prefix} bindir=%{_bindir} datadir=%{_datadir} \
libdir=%{_libdir} mandir=%{_mandir} exampledir=%{_docdir}/%{name}/examples \
CFLAGS="%{optflags}"
make %{?_smp_mflags} V=2
wget https://gist.githubusercontent.com/sedrubal/5b8e0df42140bc616c1d/raw/3ff8aa096a9e8418b4aff773603e668b8150346d/sedrubal.theme
echo "9ac1cf3fc0999fc85d85a29e8864c9eacc739f595171c3fc72c474e5de017ddd77ddb9ea1d96d89dcb2de7a5d8c746bc2f6168b71591f26b6a93f5c3ab1c6b38 sedrubal.theme" > sedrubal.theme.sha512
sha512sum -c sedrubal.theme.sha512
mv sedrubal.theme data/sedrubal.theme
rm sedrubal.theme.sha512
%install
%{make_install}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
install -pm 0644 contrib/cmus.bash-completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
%files
%doc AUTHORS README.md
%license COPYING
%{_sysconfdir}/bash_completion.d/cmus.bash-completion
%{_bindir}/cmus
%{_bindir}/cmus-remote
%{_libdir}/cmus/
%{_datadir}/cmus/
%{_mandir}/man1/cmus.1.*
%{_mandir}/man1/cmus-remote.1.*
%{_mandir}/man7/cmus-tutorial.7.*
%changelog
* Sat Oct 10 2015 sedrubal <sebastian.endres@online.de> - 2.7.1-3
- added sedrubal's colorscheme (downloading from https://gist.github.com/sedrubal/5b8e0df42140bc616c1d#file-sedrubal-theme)
* Mon Sep 28 2015 sedrubal <sebastian.endres@online.de> - 2.7.1-2
- added optflags to configure (see https://github.com/cmus/cmus/issues/329)
* Mon Sep 28 2015 sedrubal <sebastian.endres@online.de> - 2.7.1-1
- First build
# Sedrubal's cmus theme
##### Common User Interface Components #########################################
# Default text color
set color_win_fg=gray
# Overall background color
set color_win_bg=black
# Command-line colors
set color_cmdline_bg=black
set color_cmdline_fg=-1
set color_error=lightred
set color_info=lightyellow
set color_separator=red
# Bottom status line
set color_statusline_bg=blue
set color_statusline_fg=white
# Bottom title line
set color_titleline_bg=blue
set color_titleline_fg=lightgreen
# Top title area
set color_win_title_bg=blue
set color_win_title_fg=white
##### Playing File Colors ######################################################
# Unselected currently playing track's text
set color_win_cur=lightgreen
# Active selection for currently playing track
set color_win_cur_sel_bg=blue
set color_win_cur_sel_fg=lightgreen
# Inactive selection for currently playing track
set color_win_inactive_cur_sel_bg=blue
set color_win_inactive_cur_sel_fg=lightgreen
##### Non-Playing File Colors ##################################################
# Active selection
set color_win_sel_bg=green
set color_win_sel_fg=white
# Inactive selection
set color_win_inactive_sel_bg=green
set color_win_inactive_sel_fg=black
##### File Browser View Colors #################################################
# Directory listing color
set color_win_dir=lightgreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment