packages BitTorrent.spec
      Pages: < 1 >  DOWNLOAD      
Name:          BitTorrent
Epoch:         1
Version:       4.4.0
Release:       2mamba
Summary:       A distributed file distribution system
Group:         Graphical Desktop/Applications/Internet
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://bitconjurer.org/BitTorrent/
Source0:       http://download.bittorrent.com/dl/archive/BitTorrent-%{version}.tar.gz
Source1:       bittorrent-16.ico
Source2:       bittorrent-desktopfile
Source3:       bittorrent-initscript
Source4:       bittorrent-sysconfig
Patch0:        bittorrent-5.0.9-set_wxversion_2.8.patch
Patch1:        bittorrent-4.4.0-threads-warning.patch
Patch2:        bittorrent-4.4.0-formatstrings.patch
Patch3:        bittorrent-4.4.0-keyerror.patch
Patch4:        bittorrent-4.4.0-syntax.patch
License:       GPL
Provides:      bittorrent
Obsoletes:     bittorrent
Requires:      wxPython >= 2.4.2.4
Requires:      pygtk2
Requires:      python-twisted
Requires:      python-zopeinterface
Requires:      python-crypto
Provides:      BitTorrent
BuildRoot:     %{_tmppath}/%{name}-%{version}-root
BuildRequires: python
BuildRequires: python-twisted
BuildRequires: python-zopeinterface

%description
BitTorrent allows you to distribute files by tapping the unutilized upload capacity of many clients instead of doing a lot of server to client file transfers.

%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%setup -q -n BitTorrent-%{version}
#%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%{__python} setup.py build

%install
%{__python} setup.py install \
   --root=%{buildroot} \
   --install-headers=%{_includedir}/python \
   --install-lib=%{python_sitearch}

# icons
install -D -m 644 %{S:1} \
   %{buildroot}%{_datadir}/pixmaps/bittorrent-16.ico

# create the system menu entry
install -D -m 644 %{S:2} \
   %{buildroot}%{_datadir}/applications/%{name}.desktop

install -D -m 0755 %{S:3} \
   %{buildroot}%{_initrddir}/bittorrent-tracker

install -D -m 0755 %{S:4} \
   %{buildroot}%{_sysconfdir}/sysconfig/bittorrent

install -d -m 0755 %{buildroot}/var/cache/bttrack %{buildroot}/var/www/torrents

%find_lang bittorrent

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files -f bittorrent.lang
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/bittorrent
%{_initrddir}/bittorrent-tracker
%{_bindir}/*
%dir %{python_sitearch}/BitTorrent
%{python_sitearch}/BitTorrent/*
%dir %{python_sitearch}/khashmir
%{python_sitearch}/khashmir/*
#%dir %{python_sitearch}/BTL
#%{python_sitearch}/BTL/*
#%{python_sitearch}/Zeroconf.*
%{python_sitearch}/BitTorrent-%{version}-py*.egg-info
%{_datadir}/pixmaps/BitTorrent-%{version}/*
%{_datadir}/pixmaps/bittorrent-16.ico
%{_datadir}/doc/BitTorrent-%{version}/*
%{_datadir}/applications/BitTorrent.desktop
%dir /var/cache/bttrack
%dir /var/www/torrents

%changelog
* Sat May 25 2013 Silvan Calarco <silvan.calarco@...> 4.4.0-2mamba
- python 2.7 mass rebuild

* Thu Aug 06 2009 Silvan Calarco <silvan.calarco@...> 4.4.0-1mamba
- backport to 4.4.0 for compatibiliy with wxGTK 2.8

* Thu Aug 06 2009 Silvan Calarco <silvan.calarco@...> 5.2.2-3mamba
- rename to bittorrent to avoid obsoletion loop from milestone1 repository

* Thu Aug 06 2009 Silvan Calarco <silvan.calarco@...> 5.2.2-2mamba
- added tracker initscript
- renamed to BitTorrent

* Mon Jul 06 2009 Automatic Build System <autodist@...> 5.2.2-1mamba
- update to 5.2.2

* Wed Sep 12 2007 Silvan Calarco <silvan.calarco@...> 5.0.9-1mamba
- update to 5.0.9
- added python zopeinterface and twister requirements and build requirements

* Wed Jun 21 2006 Davide Madrisan <davide.madrisan@...> 4.4.0-2qilnx
- added a requirement for pygtk2

* Wed Feb 22 2006 Alessandro Ramazzina <alessandro.ramazzina@...> 4.4.0-1qilnx
- update to version 4.4.0 by autospec

* Mon Dec 19 2005 Silvan Calarco <silvan.calarco@...> 4.2.2-1qilnx
- update to version 4.2.2 by autospec

* Tue Dec 13 2005 Silvan Calarco <silvan.calarco@...> 4.2.1-1qilnx
- update to version 4.2.1 by autospec

* Wed Jun 30 2004 Silvan Calarco <silvan.calarco@...> 3.4.2-1qilnx
- new version build

* Fri Dec 12 2003 Silvan Calarco <silvan.calarco@...> 3.3-1qilnx
- First build