]> git.pld-linux.org Git - packages/BitTorrent.git/blobdiff - BitTorrent.spec
- updated to 4.0.0, change URL
[packages/BitTorrent.git] / BitTorrent.spec
index d066f3f4355e5fa5f8134c2bb97d3aefbace30c2..e3ab4fbc59f894f4ac48ec0a48e0df762bf40bb6 100644 (file)
@@ -1,16 +1,21 @@
-%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.1
+Version:       4.0.0
 Release:       0.1
 License:       MIT
 Group:         Applications/Communications
-#Source0Download:      http://bitconjurer.org/BitTorrent/download.html
-Source0:       http://bitconjurer.org/BitTorrent/%{name}-%{version}.tar.gz
-# Source0-md5: 94842dd09e435ee1a1a504857568b782
-URL:           http://bitconjurer.org/BitTorrent/
-Requires:      python-wxPython
+Source0:       http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
+# Source0-md5: 67f449df351b66f408b72b6bd196952f
+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)
 
 %description
@@ -31,29 +36,52 @@ wielu jednoczesnych po
 pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
 mo¿liwo¶ci ¶ci±gania.
 
+%package gui
+Summary:       GUI for BitTorrent
+Summary:       Graficzny interfejs u¿ytkownika dla BitTorrenta
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+Requires:      python-wxPython
+Obsoletes:     BitTornado-gui
+
+%description gui
+wxWindows based GUI for BitTorrent.
+
+%description gui -l pl
+Bazuj±cy na wxWindows graficzny interfejs u¿ytkownika dla BitTorrenta.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-find -type f | xargs perl -pi -e 's/python2/python/g'
+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
 
-./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
-chmod a-x $RPM_BUILD_ROOT%{_bindir}/btdownloadlibrary.py
+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 FAQ.txt INSTALL.unix.txt LICENSE.txt README.txt credits.txt todo.txt
-%attr(755,root,root) %{_bindir}/btdownloadgui.py
+%doc LICENSE.txt README.txt credits.txt 
+%attr(755,root,root) %{_bindir}/btdownloadcurses.py
 %attr(755,root,root) %{_bindir}/btdownloadheadless.py
-%attr(755,root,root) %{_bindir}/btdownloadprefetched.py
-%attr(755,root,root) %{_bindir}/btmakemetafile.py
-%attr(755,root,root) %{_bindir}/bttrack.py
-%{_bindir}/btdownloadlibrary.py
-%{py_sitedir}/BitTorrent
+%attr(755,root,root) %{_bindir}/btlaunchmany*.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}/btmaketorrentgui.py
This page took 0.084748 seconds and 4 git commands to generate.