3a80983
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3a80983
3a80983
Name:		winpdb
59a3c45
Version:	1.4.0
f73eedf
Release:	1%{?dist}
3a80983
Summary:	An advanced python debugger
3a80983
Group:		Development/Debuggers
ca6e73d
License:	GPLv2+
c89cb29
URL:		http://www.winpdb.org/
3a80983
Source0:	http://download.sourceforge.net/winpdb/%{name}-%{version}.tar.gz
3a80983
Source1:	%{name}.desktop
3a80983
BuildRoot:  	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3a80983
BuildArch:	noarch
3a80983
BuildRequires: 	python-devel, wxPython-devel >= 2.6, desktop-file-utils
3a80983
Requires:	python-crypto, wxPython >= 2.6
3a80983
3a80983
%description
3a80983
Winpdb is an advanced python debugger, with support for smart breakpoints, 
3a80983
multiple threads, namespace modification, embedded debugging, encrypted 
3a80983
communication and speed of up to 20 times that of pdb.
3a80983
3a80983
%prep
3a80983
%setup -q
3a80983
sed -i 's/\r//g' README.txt
3a80983
chmod -x README.txt
3a80983
3a80983
%build
3a80983
%{__python} setup.py build
3a80983
3a80983
%install
3a80983
rm -rf $RPM_BUILD_ROOT 
3a80983
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
3a80983
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
3a80983
3a80983
desktop-file-install --vendor fedora			\
3a80983
	--dir $RPM_BUILD_ROOT%{_datadir}/applications	\
3a80983
	%{SOURCE1}
3a80983
3a80983
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/rpdb2.py $RPM_BUILD_ROOT%{python_sitelib}/winpdb.py
3a80983
3a80983
%clean
3a80983
rm -rf $RPM_BUILD_ROOT 
3a80983
3a80983
%files
3a80983
%defattr(-,root,root)
3a80983
%doc PKG-INFO README.txt
3a80983
%{_bindir}/*
3a80983
%{python_sitelib}/*
3a80983
%{_datadir}/applications/*.desktop
3a80983
3a80983
%changelog
59a3c45
* Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4.0-1
59a3c45
- update to 1.4.0
59a3c45
653a91e
* Wed Apr 23 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.8-1
653a91e
- update to 1.3.8
653a91e
f73eedf
* Mon Mar 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.6-1
f73eedf
- update to 1.3.6
f73eedf
893e080
* Mon Jan 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.4-1.1
893e080
- bump to 1.3.4
893e080
- actually finish writing the changelog
c89cb29
830e76e
* Tue Dec 11 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.2-1
830e76e
- bump to 1.3.2
830e76e
ca6e73d
* Mon Aug 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.2.2-1
ca6e73d
- bump to 1.2.2
ca6e73d
c93ce07
* Mon Jul 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.4-1
c93ce07
- bump to 1.1.4
c93ce07
3a80983
* Wed May 30 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.2-2
3a80983
- fix desktop-file-utils usage in spec
3a80983
3a80983
* Mon May 14 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.2-1
3a80983
- revisit for Fedora
3a80983
3a80983
* Sun Aug 28 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-1
3a80983
- initial build for Fedora Extras
3a80983
3a80983