]> git.pld-linux.org Git - packages/BitTorrent.git/blobdiff - BitTorrent.spec
- fixed locale packaging
[packages/BitTorrent.git] / BitTorrent.spec
index 41cab7086e949db2b149e6fcdb72ebfeb1c40bc3..a494e3dc3b32a892421ed54a718d7f5ff1a8feaf 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.3
+Version:       4.2.2
 Release:       1
-License:       MIT
+License:       BitTorrent Open Source License
 Group:         Applications/Communications
-#Source0Download:      http://bitconjurer.org/BitTorrent/download.html
-Source0:       http://bitconjurer.org/BitTorrent/%{name}-%{version}.tar.gz
-# Source0-md5: 1ecf1fc40b4972470313f9ae728206e8
-URL:           http://bitconjurer.org/BitTorrent/
-Requires:      python-wxPython
+Source0:       http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
+# Source0-md5: 2a85715b8ef0335ecc9e8ad91860231b
+Patch0:                %{name}-man_pages.patch
+Patch1:                %{name}-morei18n.patch
+URL:           http://www.bittorrent.com/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: sed >= 4.0
+%pyrequires_eq python-modules
+Requires:      python-Crypto
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,24 +36,63 @@ 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-pygtk-gtk >= 2.4.0
+
+%description gui
+GUI for BitTorrent.
+
+%description gui -l pl
+Graficzny interfejs u¿ytkownika dla BitTorrenta.
+
 %prep
 %setup -q
+%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 | 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
+
+%find_lang bittorrent
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f bittorrent.lang
+%defattr(644,root,root,755)
+%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
+%{py_sitescriptdir}/BitTorrent
+%{py_sitescriptdir}/khashmir
+%{_mandir}/man1/*
+
+%files gui
 %defattr(644,root,root,755)
-%doc INSTALL.unix.txt LICENSE.txt README.txt credits.txt 
-%attr(755,root,root) %{_bindir}/*
-%{py_sitedir}/BitTorrent
+%attr(755,root,root) %{_bindir}/bittorrent
+%attr(755,root,root) %{_bindir}/maketorrent
+%{_pixmapsdir}/BitTorrent-%{version}
This page took 0.039694 seconds and 4 git commands to generate.