Blob Blame History Raw
Name:			cgdb
Version:		0.6.8
Release:		1%{?dist}
Summary:		CGDB is a curses-based interface to the GNU Debugger (GDB)

Group:			Development/Debuggers
License:		GPLv2
URL:			http://cgdb.sourceforge.net/
Source0:		http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
Source1:		http://cgdb.sourceforge.net/cgdb.png
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	readline-devel
BuildRequires:	ncurses-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	help2man
BuildRequires:	texinfo
BuildRequires:	flex
Requires:		gdb

Requires(post):		/sbin/install-info
Requires(preun):	/sbin/install-info


%description
CGDB is a curses-based interface to the GNU Debugger (GDB).
The goal of CGDB is to be lightweight and responsive; not encumbered with
unnecessary features.
The interface is designed to deliver the familiar GDB text interface,
with a split screen showing the source as it executes.
The UI is modeled on the classic Unix text editor, vi.
Those familiar with vi should feel right at home using CGDB.


%prep
%setup -q


%build
autoconf
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
rm -rf $RPM_BUILD_ROOT/%{_infodir}/dir


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS TODO README ChangeLog
%{_bindir}/cgdb
%{_datadir}/cgdb
%{_infodir}/cgdb.info.gz
%{_mandir}/man1/cgdb.1.gz


%post
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :


%preun
if [ $1 = 0 ]; then
	/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
fi


%changelog
* Sat Nov 15 2014 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.8-1
- New upstream release: 0.6.8.
- New BR: help2man, flex, texinfo.

* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Sun Jun 02 2013 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.7-3
- Add missing autoconf BR.

* Sun Jun 02 2013 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.7-2
- Fix #925144 by calling autoconf. (Temporary solution, pending upsteam fix).

* Sun Jun 02 2013 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.7-1
- Version upgrade to 0.6.7 (Bug fix release).

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Sep 13 2011 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.6-1
- Version upgrade to 0.6.6 (Bug fix release).

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Jan 11 2010 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.5-1
- Bump to 0.6.5.

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.4-3
- Autorebuild for GCC 4.3

* Sun Aug 26 2007 <gilboad[AT]gmail.com> - 0.6.4-2
- Fixed license tag.

* Wed May 16 2007 <gilboad[AT]gmail.com> - 0.6.4-1
- 0.6.4
- Fix broken info installation.
- Enable SMP build.
- Preserve the source time-stamp.
- Replace install with %%{__install}.

* Wed Jan 17 2007 <gilboad[AT]gmail.com> - 0.6.3-10
- Fix Source0 URL.
- Replace cp with install.

* Mon Jan 15 2007 <gilboad[AT]gmail.com> - 0.6.3-9
- Do -not- delete cgdb.txt - needed by binary.
- Use the original htdocs instead of htmldocs.
- Preserve timestamps.
- Fix missing URL in imported cgdb.png.

* Mon Jan 15 2007 <gilboad[AT]gmail.com> - 0.6.3-8
- Remove INSTALL
- Move cgdb.txt to %%docs. (Where index.html can see it.)
- Move htdocs to %%docs.
- Fix broken cgdb.png file.

* Sat Jan 13 2007 <gilboad[AT]gmail.com> - 0.6.3-7
- Fix wrong license. (Was LGPL, should be GPL.)

* Sat Jan 13 2007 <gilboad[AT]gmail.com> - 0.6.3-6
- Move HTML docs into %%docs

* Fri Jan 12 2007 <gilboad[AT]gmail.com> - 0.6.3-5
- Keep timestamps on install
- Remove unnecessary comments.
- Add missing HTML docs.

* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-4
- Remove redundant dependencies.
- Add missing ownership.
- Fix texinfo pre/post.
- Fix %%doc in changelog.

* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-3
- Fix %%doc.
- Do not strip debug info; let rpm do it.

* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-2
- Cosmetic clean-up.

* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-1
- Initial release.