X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=BitTorrent.spec;h=905f8d16c600934e8bb7560b6e7c140bf8354afb;hb=c1c7d74810705d084223c729ac9915de48fd86c1;hp=0d41d64631c61778029b877de16ef4c007339403;hpb=a17fd1ccc197cfb7a2e233f1a793b8a82963a609;p=packages%2FBitTorrent.git diff --git a/BitTorrent.spec b/BitTorrent.spec index 0d41d64..905f8d1 100644 --- a/BitTorrent.spec +++ b/BitTorrent.spec @@ -1,16 +1,20 @@ Summary: BitTorrent - a tool for distributing files Summary(pl): BitTorrent - narzêdzie do rozpowszechniania plików Name: BitTorrent -Version: 4.9.7 +Version: 5.0.5 Release: 1 License: BitTorrent Open Source License Group: Applications/Communications -Source0: http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz -# Source0-md5: dd18156f832af772cf74c3b08b471032 +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: python-devel-tools +BuildRequires: python-TwistedCore BuildRequires: rpm-pythonprov BuildRequires: sed >= 4.0 %pyrequires_eq python-modules @@ -43,7 +47,7 @@ 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 +Requires: python-wxPython %description gui GUI for BitTorrent. @@ -55,6 +59,7 @@ Graficzny interfejs u %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 mv -f po/nb{_NO,}.po rm -rf locale @@ -67,7 +72,7 @@ sh makei18n.sh %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 \ @@ -80,11 +85,20 @@ 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 +%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 @@ -96,13 +110,18 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/launchmany-curses %attr(755,root,root) %{_bindir}/maketorrent-console %attr(755,root,root) %{_bindir}/torrentinfo-console -%{py_sitescriptdir}/BitTorrent +%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}/bittorrent %attr(755,root,root) %{_bindir}/maketorrent -%{_pixmapsdir}/BitTorrent-%{version} +%{py_sitescriptdir}/BitTorrent/GUI_wx +%{_pixmapsdir}/*-%{version} +%{_pixmapsdir}/bittorrent.png +%{_desktopdir}/%{name}.desktop