]> git.pld-linux.org Git - packages/BitTorrent.git/blobdiff - BitTorrent.spec
- updated to 4.0.1
[packages/BitTorrent.git] / BitTorrent.spec
index 38723e9c4e622f3356cd3c4d3e0e3bc56e74ba2b..448a9d9cb9a110d2ece1d7c8cbdc50019faeddbd 100644 (file)
@@ -1,18 +1,19 @@
-%include       /usr/lib/rpm/macros.python
 Summary:       BitTorrent - a tool for distributing files
 Summary(pl):   BitTorrent - narzêdzie do rozpowszechniania plików
 Name:          BitTorrent
-Version:       3.4.1a
-Release:       2
-License:       MIT
+Version:       4.0.1
+Release:       1
+License:       BitTorrent Open Source License
 Group:         Applications/Communications
-#Source0Download:      http://bitconjurer.org/BitTorrent/download.html
-Source0:       http://dl.sourceforge.net/bittorrent/%{name}-%{version}.zip
-# Source0-md5: 84d8cfedeba539db8b497d63e6ecceed
-URL:           http://bitconjurer.org/BitTorrent/
+Source0:       http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
+# Source0-md5: e890d856d43b3d0af14b28714bc5801a
+Patch0:                %{name}-man_pages.patch
+URL:           http://www.bittorrent.com/
 BuildRequires: python-devel
-BuildRequires: rpm-pythonprov 
+BuildRequires: sed >= 4.0
 BuildRequires: unzip
+%pyrequires_eq python-modules
+Obsoletes:     BitTornado
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,46 +40,48 @@ Summary:    GUI for BitTorrent
 Summary:       Graficzny interfejs u¿ytkownika dla BitTorrenta
 Group:         X11/Applications
 Requires:      %{name} = %{version}-%{release}
-Requires:      python-wxPython
+Requires:      python-pygtk-gtk >= 2.4.0
+Obsoletes:     BitTornado-gui
 
 %description gui
-wxWindows based GUI for BitTorrent.
+GUI for BitTorrent.
 
 %description gui -l pl
-Bazuj±cy na wxWindows graficzny interfejs u¿ytkownika dla BitTorrenta.
+Graficzny interfejs u¿ytkownika dla BitTorrenta.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
 
 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
+install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc INSTALL.unix.txt LICENSE.txt README.txt credits.txt 
-%attr(755,root,root) %{_bindir}/btcompletedir.py
+%doc LICENSE.txt README.txt credits.txt 
 %attr(755,root,root) %{_bindir}/btdownloadcurses.py
 %attr(755,root,root) %{_bindir}/btdownloadheadless.py
-%attr(644,root,root) %{_bindir}/btdownloadlibrary.py
 %attr(755,root,root) %{_bindir}/btlaunchmany*.py
-%attr(755,root,root) %{_bindir}/btmakemetafile.py
+%attr(755,root,root) %{_bindir}/btmaketorrent.py
 %attr(755,root,root) %{_bindir}/btr*.py
 %attr(755,root,root) %{_bindir}/btt*.py
 %attr(755,root,root) %{_bindir}/btshowmetainfo.py
 %{py_sitescriptdir}/BitTorrent
+%{_mandir}/man1/*
 
 %files gui
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/btdownloadgui.py
-%attr(755,root,root) %{_bindir}/btcompletedirgui.py
+%attr(755,root,root) %{_bindir}/btmaketorrentgui.py
+%{_pixmapsdir}/BitTorrent-%{version}
This page took 0.14559 seconds and 4 git commands to generate.