da6f1c1
Name:			cgdb
7bf7eef
Version:		0.6.5
bf9924d
Release:		2%{?dist}
da6f1c1
Summary:		CGDB is a curses-based interface to the GNU Debugger (GDB)
da6f1c1
da6f1c1
Group:			Development/Debuggers
ed7a4bc
License:		GPLv2
da6f1c1
URL:			http://cgdb.sourceforge.net/
862cb84
Source0:		http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
da6f1c1
Source1:		http://cgdb.sourceforge.net/cgdb.png
da6f1c1
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
da6f1c1
da6f1c1
BuildRequires:	readline-devel
da6f1c1
BuildRequires:	ncurses-devel
da6f1c1
Requires:		gdb
da6f1c1
da6f1c1
Requires(post):		/sbin/install-info
da6f1c1
Requires(preun):	/sbin/install-info
da6f1c1
da6f1c1
da6f1c1
%description
da6f1c1
CGDB is a curses-based interface to the GNU Debugger (GDB).
da6f1c1
The goal of CGDB is to be lightweight and responsive; not encumbered with
da6f1c1
unnecessary features.
da6f1c1
The interface is designed to deliver the familiar GDB text interface,
da6f1c1
with a split screen showing the source as it executes.
da6f1c1
The UI is modeled on the classic Unix text editor, vi.
da6f1c1
Those familiar with vi should feel right at home using CGDB.
da6f1c1
da6f1c1
da6f1c1
%prep
da6f1c1
%setup -q
da6f1c1
da6f1c1
da6f1c1
%build
da6f1c1
%configure
3e13b51
make %{?_smp_mflags}
da6f1c1
da6f1c1
da6f1c1
%install
da6f1c1
rm -rf $RPM_BUILD_ROOT
da6f1c1
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
7bf7eef
mv doc/htdocs .
7bf7eef
find doc -type f -exec chmod 0664 {} \;
7bf7eef
find doc -type d -exec chmod 0775 {} \;
3e13b51
%{__install} -p -m 644 %{SOURCE1} htdocs
da6f1c1
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
da6f1c1
da6f1c1
da6f1c1
%clean
da6f1c1
rm -rf $RPM_BUILD_ROOT
da6f1c1
da6f1c1
da6f1c1
%files
da6f1c1
%defattr(-,root,root,-)
da6f1c1
%doc AUTHORS COPYING NEWS TODO README ChangeLog htdocs
da6f1c1
%{_bindir}/cgdb
da6f1c1
%{_datadir}/cgdb
da6f1c1
%{_infodir}/cgdb.info.gz
da6f1c1
%{_mandir}/man1/cgdb.1.gz
da6f1c1
da6f1c1
da6f1c1
%post
3e13b51
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
da6f1c1
da6f1c1
da6f1c1
%preun
da6f1c1
if [ $1 = 0 ]; then
3e13b51
	/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
da6f1c1
fi
da6f1c1
da6f1c1
da6f1c1
%changelog
bf9924d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
bf9924d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bf9924d
7bf7eef
* Mon Jan 11 2010 Gilboa Davara <gilboad [AT] gmail.com> - 0.6.5-1
7bf7eef
- Bump to 0.6.5.
7bf7eef
8768287
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-5
8768287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8768287
6dccbc9
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-4
6dccbc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6dccbc9
017670d
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.4-3
017670d
- Autorebuild for GCC 4.3
017670d
ed7a4bc
* Sun Aug 26 2007 <gilboad[AT]gmail.com> - 0.6.4-2
ed7a4bc
- Fixed license tag.
ed7a4bc
ed7a4bc
* Wed May 16 2007 <gilboad[AT]gmail.com> - 0.6.4-1
3e13b51
- 0.6.4
3e13b51
- Fix broken info installation.
3e13b51
- Enable SMP build.
3e13b51
- Preserve the source time-stamp.
3e13b51
- Replace install with %%{__install}.
3e13b51
ed7a4bc
* Wed Jan 17 2007 <gilboad[AT]gmail.com> - 0.6.3-10
862cb84
- Fix Source0 URL.
862cb84
- Replace cp with install.
862cb84
ed7a4bc
* Mon Jan 15 2007 <gilboad[AT]gmail.com> - 0.6.3-9
da6f1c1
- Do -not- delete cgdb.txt - needed by binary.
da6f1c1
- Use the original htdocs instead of htmldocs.
da6f1c1
- Preserve timestamps.
da6f1c1
- Fix missing URL in imported cgdb.png.
da6f1c1
ed7a4bc
* Mon Jan 15 2007 <gilboad[AT]gmail.com> - 0.6.3-8
da6f1c1
- Remove INSTALL
da6f1c1
- Move cgdb.txt to %%docs. (Where index.html can see it.)
da6f1c1
- Move htdocs to %%docs.
da6f1c1
- Fix broken cgdb.png file.
da6f1c1
ed7a4bc
* Sat Jan 13 2007 <gilboad[AT]gmail.com> - 0.6.3-7
da6f1c1
- Fix wrong license. (Was LGPL, should be GPL.)
da6f1c1
ed7a4bc
* Sat Jan 13 2007 <gilboad[AT]gmail.com> - 0.6.3-6
da6f1c1
- Move HTML docs into %%docs
da6f1c1
ed7a4bc
* Fri Jan 12 2007 <gilboad[AT]gmail.com> - 0.6.3-5
da6f1c1
- Keep timestamps on install
da6f1c1
- Remove unnecessary comments.
da6f1c1
- Add missing HTML docs.
da6f1c1
ed7a4bc
* Tue Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-4
da6f1c1
- Remove redundant dependencies.
da6f1c1
- Add missing ownership.
da6f1c1
- Fix texinfo pre/post.
da6f1c1
- Fix %%doc in changelog.
da6f1c1
ed7a4bc
* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-3
da6f1c1
- Fix %%doc.
da6f1c1
- Do not strip debug info; let rpm do it.
da6f1c1
ed7a4bc
* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-2
da6f1c1
- Cosmetic clean-up.
da6f1c1
ed7a4bc
* Mon Jan 08 2007 <gilboad[AT]gmail.com> - 0.6.3-1
da6f1c1
- Initial release.
da6f1c1