]> git.pld-linux.org Git - packages/BitTorrent.git/blobdiff - BitTorrent.spec
- desktop file (should handle torrent files automatically)
[packages/BitTorrent.git] / BitTorrent.spec
index b0f4a57fcb74d452a218dbc7d80c25f04c3378e9..6d074b622632e5abf8cda068560af52ae1ef6f90 100644 (file)
@@ -1,12 +1,12 @@
 Summary:       BitTorrent - a tool for distributing files
 Summary(pl):   BitTorrent - narzêdzie do rozpowszechniania plików
 Name:          BitTorrent
-Version:       4.1.8
+Version:       4.20.4
 Release:       1
 License:       BitTorrent Open Source License
 Group:         Applications/Communications
 Source0:       http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
-# Source0-md5: 6898c78c12ed2fa25d48602f465fcc93
+# Source0-md5: 6616f6ae8a8460804ce43b3cf4b6f73b
 Patch0:                %{name}-man_pages.patch
 Patch1:                %{name}-morei18n.patch
 URL:           http://www.bittorrent.com/
@@ -14,8 +14,10 @@ BuildRequires:       python-devel
 BuildRequires: rpm-pythonprov
 BuildRequires: sed >= 4.0
 %pyrequires_eq python-modules
-Obsoletes:     BitTornado
 Requires:      python-Crypto
+Requires:      python-TwistedCore
+Requires:      python-TwistedWeb
+Requires:      python-wxPython
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,7 +45,6 @@ Summary:      Graficzny interfejs u
 Group:         X11/Applications
 Requires:      %{name} = %{version}-%{release}
 Requires:      python-pygtk-gtk >= 2.4.0
-Obsoletes:     BitTornado-gui
 
 %description gui
 GUI for BitTorrent.
@@ -56,24 +57,30 @@ Graficzny interfejs u
 %patch0 -p1
 %patch1 -p1
 
-mv -f po/{gr,el}.po
-mv -f po/he{_IL,}.po
 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' "{}" ";"
 
-#rm -rf locale
-#. ./makei18n.sh
+sh makei18n.sh
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_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
+
 %find_lang bittorrent
 
 %clean
@@ -91,6 +98,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/maketorrent-console
 %attr(755,root,root) %{_bindir}/torrentinfo-console
 %{py_sitescriptdir}/BitTorrent
+%{py_sitescriptdir}/Zeroconf.py[co]
 %{py_sitescriptdir}/khashmir
 %{_mandir}/man1/*
 
This page took 0.106302 seconds and 4 git commands to generate.