File dvtm.spec of Package dvtm

#
# spec file for package dvtm
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 R. Tyler Croy <tyler@linux.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           dvtm
Version:        0.15
Release:        0
Summary:        Tiling window manager for the console
License:        MIT
Group:          System/Console
Url:            http://www.brain-dump.org/projects/dvtm
Source0:        http://www.brain-dump.org/projects/%{name}/%{name}-%{version}.tar.gz
Patch1:         dvtm-fix_makefile.patch
BuildRequires:  ncurses-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
dvtm brings the concept of tiling window management, popularized by X11-window
managers like dwm to the console. As a console window manager it tries to make
it easy to work with multiple console based programs like vim, mutt, cmus or
irssi.

%prep
%setup -q
%patch1 -p1

%build
make %{?_smp_mflags} \
    PREFIX="%{_prefix}" \
    MANPREFIX="%{_mandir}" \
    CC="gcc" \
    OPTFLAGS="%{optflags}"

%install
make install \
    DESTDIR=%{buildroot} \
    PREFIX="%{_prefix}" \
    MANPREFIX="%{_mandir}"

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-status
%{_datadir}/terminfo/d/*
%{_mandir}/man1/dvtm.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by