X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=BitTorrent.spec;h=905f8d16c600934e8bb7560b6e7c140bf8354afb;hb=c1c7d74810705d084223c729ac9915de48fd86c1;hp=1d7602aedf33e55c89887cb6c9e0918af2027add;hpb=40c26bf4387f0cc265e6e7acfcda237ddaad9c9d;p=packages%2FBitTorrent.git diff --git a/BitTorrent.spec b/BitTorrent.spec index 1d7602a..905f8d1 100644 --- a/BitTorrent.spec +++ b/BitTorrent.spec @@ -1,20 +1,26 @@ -%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.2 +Version: 5.0.5 Release: 1 -License: MIT +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: 6ad4e128ddc82f8ebef6fbef59872f0d -URL: http://bitconjurer.org/BitTorrent/ +Source0: http://download.bittorrent.com/dl/%{name}-%{version}.tar.gz +# Source0-md5: 100e1ccb68074245398820b33d805762 +Source1: %{name}.desktop +Patch0: %{name}-man_pages.patch +Patch1: %{name}-morei18n.patch +Patch2: %{name}-pl.patch +URL: http://www.bittorrent.com/ BuildRequires: python-devel -BuildRequires: rpm-pythonprov +BuildRequires: python-devel-tools +BuildRequires: python-TwistedCore +BuildRequires: rpm-pythonprov BuildRequires: sed >= 4.0 -BuildRequires: unzip -Requires: python-modules +%pyrequires_eq python-modules +Requires: python-Crypto +Requires: python-TwistedCore +Requires: python-TwistedWeb BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -44,43 +50,78 @@ Requires: %{name} = %{version}-%{release} Requires: python-wxPython %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 +%patch1 -p1 +%patch2 -p1 + +mv -f po/nb{_NO,}.po +rm -rf locale +sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py %build find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";" +sh makei18n.sh %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1} + +python ./setup.py install \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT -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 + +rm -rf locale/{in,nn_NO,piglatin} +find locale -type f ! -name '*.mo' -exec rm "{}" ";" +cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale + +cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png +cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} + +%find_lang bittorrent %clean rm -rf $RPM_BUILD_ROOT -%files +%post gui +%update_desktop_database_post + +%postun gui +%update_desktop_database_postun + +%files -f bittorrent.lang %defattr(644,root,root,755) -%doc INSTALL.unix.txt LICENSE.txt README.txt credits.txt -%attr(755,root,root) %{_bindir}/btcompletedir.py -%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}/btr*.py -%attr(755,root,root) %{_bindir}/btt*.py -%attr(755,root,root) %{_bindir}/btshowmetainfo.py -%{py_sitescriptdir}/BitTorrent +%doc LICENSE.txt README.txt credits.txt +%attr(755,root,root) %{_bindir}/bittorrent-console +%attr(755,root,root) %{_bindir}/bittorrent-curses +%attr(755,root,root) %{_bindir}/bittorrent-tracker +%attr(755,root,root) %{_bindir}/changetracker-console +%attr(755,root,root) %{_bindir}/launchmany-console +%attr(755,root,root) %{_bindir}/launchmany-curses +%attr(755,root,root) %{_bindir}/maketorrent-console +%attr(755,root,root) %{_bindir}/torrentinfo-console +%dir %{py_sitescriptdir}/BitTorrent +%{py_sitescriptdir}/BitTorrent/*.py[co] +%{py_sitescriptdir}/Zeroconf.py[co] +%{py_sitescriptdir}/khashmir +%{py_sitescriptdir}/BTL +%{_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}/bittorrent +%attr(755,root,root) %{_bindir}/maketorrent +%{py_sitescriptdir}/BitTorrent/GUI_wx +%{_pixmapsdir}/*-%{version} +%{_pixmapsdir}/bittorrent.png +%{_desktopdir}/%{name}.desktop