[BitTorrent] RPMs for Bit Torrent

Sean Reifschneider jafo at tummy.com
Wed Sep 22 19:40:08 EDT 2004


The state of RPMs for BitTorrent looks pretty bad.  The latest versions
found off the "search for RPMs" link is 3.3.  As some may know, you can
build RPMs using "python setup.py bdist_rpm", but those are pretty
minimal RPMs.

I've created some RPMs and uploaded them to:

   ftp://ftp.tummy.com:/pub/tummy/RPMS/SRPMS/BitTorrent-3.4.2-1.src.rpm
   ftp://ftp.tummy.com:/pub/tummy/RPMS/binaries-KRUD-fc1-i386/BitTorrent-3.4.2-1.noarch.rpm
   ftp://ftp.tummy.com:/pub/tummy/RPMS/binaries-KRUD-fc1-i386/BitTorrent-common-3.4.2-1.noarch.rpm
   ftp://ftp.tummy.com:/pub/tummy/RPMS/binaries-KRUD-fc1-i386/BitTorrent-gui-3.4.2-1.noarch.rpm

I'm also including the .spec file I'm using here.  You may want to
include that in the release.

Thanks,
Sean
-- 
 I would rather suffer defeat than have cause to be ashamed of victory.
                 -- Quintus Curtius
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin

  ----------

%define PY_BIN_SUFFIX %(echo)
%define PY_VERSION %(python -V 2>&1 | sed -e 's/^.* //')
%define PY_BASE_VERSION %(PYVSTR=%{PY_VERSION}; echo ${PYVSTR%.*})

%define name BitTorrent
%define version 3.4.2
%define release 1

Summary: BitTorrent is a tool for distributing files.
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: MIT
Group: Networking/File transfer
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Requires: %{name}-common = %{version}
Requires: python%{PY_BIN_SUFFIX} >= %{PY_BASE_VERSION}
BuildPrereq: python%{PY_BIN_SUFFIX}-devel
BuildArchitectures: noarch
Vendor: Bram Cohen <<bram at bitconjurer.org>>
Packager: Sean Reifschneider <jafo at tummy.com>
Url: http://www.bitconjurer.org/BitTorrent/

%description
BitTorrent is a tool for distributing files. It's extremely easy to use,
downloads are started by clicking on hyperlinks.  Whenever more than
one person is downloading at once they send pieces of the file(s) to
each other, thus relieving the central server's bandwidth burden. Even
with many simultaneous downloads, the upload burden on the central
server remains quite small, since each new downloader introduces new
upload capacity.

%package common
Summary: Common files needed by the BitTorrent sub-packages.
Requires: python%{PY_BIN_SUFFIX} >= %{PY_BASE_VERSION}
Group: Development/Libraries

%description common
This package includes files which are required by the other sub-packages in
the BitTorrent release.

%package gui
Summary: GUI Clients for BitTorrent
Requires: %{name}-common = %{version}
Requires: python%{PY_BIN_SUFFIX} >= %{PY_BASE_VERSION}
Requires: wxPythonGTK2
Group: Networking/File transfer

%description gui
This package includes GUI clients for the BitTorrent file transfer system.

%prep
%setup

%build
python setup.py build

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
grep '/site-packages/' INSTALLED_FILES >INSTALLED_FILES.common
grep -v '/site-packages/' INSTALLED_FILES | grep gui >INSTALLED_FILES.gui
grep -v '/site-packages/' INSTALLED_FILES | grep -v gui >INSTALLED_FILES.nongui

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES.nongui
%defattr(-,root,root)
%doc README.txt

%files -f INSTALLED_FILES.gui gui
%defattr(-,root,root)

%files -f INSTALLED_FILES.common common
%defattr(-,root,root)


[Non-text portions of this message have been removed]




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the BitTorrent mailing list