File cgdb.spec of Package cgdb

Name:           cgdb
Version:        0.6.6
Release:        2
License:        GPL
Summary:        Curses debugger
Url:            http://cgdb.sourceforge.net
Group:          Development/Tools/Debuggers
Source0:        http://garr.dl.sourceforge.net/sourceforge/cgdb/%{name}-%{version}.tar.bz2
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  ncurses-devel
BuildRequires:  readline-devel
Requires(pre):  %install_info_prereq
Requires:       gdb
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Autoreq:        on

%description
CGDB is a curses (terminal-based) interface to the GNU Debugger (GDB). Its goal
is to be lightweight and responsive; not encumbered with unnecessary features.

The primary feature of CGDB is the constant presence of a source display,
updated as the program executes, to help keep you focused while debugging. The
interface is inspired by the classic Unix text editor, vi. Those familiar with
vi (or vim) should feel right at home using CGDB.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr(-,root,root)
%doc TODO AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/cgdb
%{_datadir}/cgdb/cgdb.txt
%{_mandir}/man1/cgdb.1.gz
%{_infodir}/cgdb.info.gz
%dir %{_datadir}/cgdb
openSUSE Build Service is sponsored by