File peapod.spec of Package peapod

# norootforbuild

Name:				peapod
Version:			0.7.1
Release:			0
Summary:			Command Line Podcast Reciever Supporting HTTP And BitTorrent
Source:			http://www.peapodpy.org.uk/downloads/peapod-%{version}.tar.gz
Patch1:			peapod-btclient.patch
URL:				http://www.peapodpy.org.uk
Group:			Productivity/Networking/Other
License:			GNU General Public License (GPL)
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	python python-devel
Provides:		python-peapod = %{version}-%{release}
Provides:		peapodpy = %{version}-%{release}
Requires:		pyxml
Requires:		python-eyeD3
Requires:		python-urlgrabber >= 2.9.6
Requires:		BitTorrent >= 4.0
Requires:		libgpod-python
%py_requires

%description
Peapod Podcatcher is a command line podcast receiver that supports downloads
via HTTP and BitTorrent. It can re-write ID3 and Vorbis tags to help you
organise your podcasts.




Authors:
--------
    Peapod developers <peapodpy-help@lists.sourceforge.net>

%prep
%setup -q
%patch1
%__mv btclient.py peapod-btclient.py

%build
%__python ./setup.py build

%install
%__python ./setup.py install \
			 --root="%{buildroot}" \
			 --prefix="%{_prefix}" \
			 --record-rpm="files.lst"

%__ln_s peapod.py "%{buildroot}%{_bindir}/peapod"

diff -wB \
	  "%{buildroot}%{_bindir}/peapod-btclient.py" \
	  "%{buildroot}%{py_sitedir}/Peapod/btclient.py" \
|| {
	%__rm -f "%{buildroot}%{_bindir}/peapod.py";
	%__ln_s "../../%{py_sitedir}/Peapod/btclient.py" "%{buildroot}%{_bindir}/peapod-btclient.py";
}

%clean
%__rm -rf "%{buildroot}"

%files -f files.lst
%defattr(-,root,root)
%doc README
%{_bindir}/peapod

%changelog
* Sun Mar 30 2008 Pascal Bleser <guru@unixtech.be> 0.7.1
- new package

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
openSUSE Build Service is sponsored by