]> git.pld-linux.org Git - packages/BitTorrent.git/blobdiff - BitTorrent.spec
- more locale fixes, rel. 3
[packages/BitTorrent.git] / BitTorrent.spec
index efdf37d3809ed304504f939b7de7f4a524fe3a7c..3d2f38ed9175f7d50859122fa42e420d914ee259 100644 (file)
@@ -1,18 +1,28 @@
 Summary:       BitTorrent - a tool for distributing files
 Summary:       BitTorrent - a tool for distributing files
-Summary(pl):   BitTorrent - narzêdzie do rozpowszechniania plików
+Summary(pl.UTF-8):     BitTorrent - narzędzie do rozpowszechniania plików
 Name:          BitTorrent
 Name:          BitTorrent
-Version:       4.0.1
-Release:       1
+Version:       5.2.2
+Release:       3
 License:       BitTorrent Open Source License
 Group:         Applications/Communications
 License:       BitTorrent Open Source License
 Group:         Applications/Communications
-Source0:       http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
-# Source0-md5: e890d856d43b3d0af14b28714bc5801a
+Source0:       http://download.bittorrent.com/dl/%{name}-%{version}.tar.gz
+# Source0-md5: d8891cfa4c6bb796c8e948eace7694bc
+Source1:       %{name}.desktop
 Patch0:                %{name}-man_pages.patch
 Patch0:                %{name}-man_pages.patch
+Patch1:                %{name}-morei18n.patch
+Patch2:                %{name}-pl.patch
+Patch3:                %{name}-xgettext.patch
 URL:           http://www.bittorrent.com/
 URL:           http://www.bittorrent.com/
+BuildRequires: gettext-devel
 BuildRequires: python-devel
 BuildRequires: python-devel
+BuildRequires: python-devel-tools
+BuildRequires: python-TwistedCore
+BuildRequires: rpm-pythonprov
 BuildRequires: sed >= 4.0
 %pyrequires_eq python-modules
 BuildRequires: sed >= 4.0
 %pyrequires_eq python-modules
-Obsoletes:     BitTornado
+Requires:      python-Crypto
+Requires:      python-TwistedCore
+Requires:      python-TwistedWeb
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -25,62 +35,102 @@ Even with many simultaneous downloads, the upload burden on the
 central server remains quite small, since each new downloader
 introduces new upload capacity.
 
 central server remains quite small, since each new downloader
 introduces new upload capacity.
 
-%description -l pl
-BitTorrent to narzêdzie do rozpowszechniania plików. Jest bardzo ³atwe
-w u¿yciu - ¶ci±ganie rozpoczyna siê przez klikanie na hiper³±cza.
-Je¶li wiêcej ni¿ jedna osoba ¶ci±ga dany plik, wysy³aj± czê¶ci pliku
-miêdzy sob±, ³agodz±c obci±¿enie ³±cza centralnego serwera. Nawet przy
-wielu jednoczesnych po³±czeniach wykorzystanie ³±cza g³ównego serwera
-pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
-mo¿liwo¶ci ¶ci±gania.
+%description -l pl.UTF-8
+BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe
+w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza.
+Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku
+między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy
+wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera
+pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe
+możliwości ściągania.
 
 %package gui
 Summary:       GUI for BitTorrent
 
 %package gui
 Summary:       GUI for BitTorrent
-Summary:       Graficzny interfejs u¿ytkownika dla BitTorrenta
+Summary(pl.UTF-8):     Graficzny interfejs użytkownika dla BitTorrenta
 Group:         X11/Applications
 Requires:      %{name} = %{version}-%{release}
 Group:         X11/Applications
 Requires:      %{name} = %{version}-%{release}
-Requires:      python-pygtk-gtk >= 2.4.0
-Obsoletes:     BitTornado-gui
+Requires:      python-wxPython
+Requires(post,postun): desktop-file-utils
 
 %description gui
 GUI for BitTorrent.
 
 
 %description gui
 GUI for BitTorrent.
 
-%description gui -l pl
-Graficzny interfejs u¿ytkownika dla BitTorrenta.
+%description gui -l pl.UTF-8
+Graficzny interfejs użytkownika dla BitTorrenta.
 
 %prep
 %setup -q
 %patch0 -p1
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+mv -f po/nb{_NO,}.po
+mv -f po/nn{_NO,}.po
+mv -f po/{in,id}.po
+rm -rf locale
+sed -i -e "s/'nb_NO'/'nb'/" BTL/language.py
+sed -i -e "s/'nn_NO'/'nn'/" BTL/language.py
+sed -i -e "s/'in'/'id'/" BTL/language.py
 
 %build
 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
 
 
 %build
 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
 
+sh makei18n.sh
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
+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
 
 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
 
+rm -rf locale/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
 
 %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 LICENSE.txt README.txt credits.txt 
 %defattr(644,root,root,755)
 %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}/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
+%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
+%{py_sitescriptdir}/*.egg-info
 %{_mandir}/man1/*
 
 %files gui
 %defattr(644,root,root,755)
 %{_mandir}/man1/*
 
 %files gui
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/btdownloadgui.py
-%attr(755,root,root) %{_bindir}/btmaketorrentgui.py
-%{_pixmapsdir}/BitTorrent-%{version}
+%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
This page took 0.082417 seconds and 4 git commands to generate.