X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=BitTorrent.spec;h=6ddd44e59aef53ecc76aa03707992cbeb46579cf;hb=d046be8ff158f7a06b4f4fa1f1a9b06f681b7ab2;hp=faa744c57589284075a9d7601eee849b33286c25;hpb=251f043113082f2f498b31dc4b75d02c44e928e0;p=packages%2FBitTorrent.git diff --git a/BitTorrent.spec b/BitTorrent.spec index faa744c..6ddd44e 100644 --- a/BitTorrent.spec +++ b/BitTorrent.spec @@ -1,19 +1,22 @@ -%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 -Release: 1 +Version: 3.4.2 +Release: 6 License: MIT Group: Applications/Communications #Source0Download: http://bitconjurer.org/BitTorrent/download.html -Source0: http://bitconjurer.org/BitTorrent/%{name}-%{version}.zip -# Source0-md5: e09c7655132522d5dec6e5685d572ed1 +Source0: http://dl.sourceforge.net/bittorrent/%{name}-%{version}.zip +# Source0-md5: 6ad4e128ddc82f8ebef6fbef59872f0d +Patch0: %{name}-man_pages.patch +Patch1: %{name}-python24.patch URL: http://bitconjurer.org/BitTorrent/ BuildRequires: python-devel BuildRequires: rpm-pythonprov -BuildRequires: perl-base +BuildRequires: sed >= 4.0 BuildRequires: unzip +%pyrequires_eq: python-modules +Obsoletes: BitTornado BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -50,15 +53,19 @@ Bazuj %prep %setup -q +%patch0 -p1 +%patch1 -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 -python ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} +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 @@ -76,6 +83,7 @@ rm -rf $RPM_BUILD_ROOT %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)