rpms/bittorrent/FC-3 bittorrent.desktop, NONE, 1.1 bittorrent.png, NONE, 1.1 .cvsignore, 1.3, 1.4 bittorrent.spec, 1.6, 1.7 sources, 1.3, 1.4

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Tue Mar 15 16:41:50 UTC 2005


Author: mschwendt

Update of /cvs/extras/rpms/bittorrent/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15695/FC-3

Modified Files:
	.cvsignore bittorrent.spec sources 
Added Files:
	bittorrent.desktop bittorrent.png 
Log Message:
auto-import bittorrent-4.0.0-1.FC3 on branch FC-3 from bittorrent-4.0.0-1.FC3.src.rpm


--- NEW FILE bittorrent.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=BitTorrent File Transfer
Comment=Distributed download of files from the Internet
Exec=btdownloadgui.py
Icon=bittorrent.png
Terminal=false
Type=Application
StartupNotify=false
Categories=Application;Network;
MimeType=application/x-bittorrent;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/bittorrent/FC-3/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	8 Nov 2004 04:05:46 -0000	1.3
+++ .cvsignore	15 Mar 2005 16:41:48 -0000	1.4
@@ -1 +1 @@
-BitTorrent-3.4.1a.zip
+BitTorrent-4.0.0.tar.gz


Index: bittorrent.spec
===================================================================
RCS file: /cvs/extras/rpms/bittorrent/FC-3/bittorrent.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- bittorrent.spec	14 Jan 2005 20:00:29 -0000	1.6
+++ bittorrent.spec	15 Mar 2005 16:41:48 -0000	1.7
@@ -1,20 +1,25 @@
+%define desktopvendor fedora
+
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           bittorrent
-Version:        3.4.1
-Release:        3.a
-Epoch:          0
+Version:        4.0.0
+Release:        1.FC3
 Summary:        BitTorrent swarming network file transfer tool
 
 Group:          Applications/Internet
-License:        MIT
-URL:            http://bitconjurer.org/BitTorrent/
-Source0:        http://dl.sf.net/bittorrent/BitTorrent-3.4.1a.zip
+License:        BitTorrent Open Source License
+URL:            http://www.bittorrent.com/
+Source0:        http://www.bittorrent.com/dl/BitTorrent-%{version}.tar.gz
+Source1:        bittorrent.desktop
+Source2:        bittorrent.png
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  python-devel
+BuildRequires:  python-devel desktop-file-utils
 Requires:       python
-Requires:	python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
+Requires:       python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
 
 BuildArch:      noarch
 
@@ -28,16 +33,17 @@
 %package        gui
 Summary:        GUI versions of the BitTorrent file transfer tool
 Group:          Applications/Internet
-Requires:       wxPython
-Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires:       pygtk2
+Requires:       %{name} = %{version}-%{release}
 
-%description    gui 
+%description    gui
 This package contains the GUI versions of the BitTorrent file transfer
 tool.
 
 
 %prep
-%setup -q -n BitTorrent-3.4.1a
+%setup -q -n BitTorrent-%{version}
+sed -i "s/appdir = .*/appdir = '%{name}-%{version}'/" BitTorrent/__init__.py
 
 
 %build
@@ -49,21 +55,33 @@
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 sed -i -e 's/env python2/env python/' $RPM_BUILD_ROOT%{_bindir}/*
 
+desktop-file-install --vendor %{desktopvendor} \
+	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
+	--add-category X-Fedora \
+	%{SOURCE1}
+install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/bittorrent.png
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
+%post gui
+update-desktop-database %{_datadir}/applications &>/dev/null || :
+
+
+%postun gui
+update-desktop-database %{_datadir}/applications &>/dev/null || :
+
+
 %files
 %defattr(-,root,root,-)
 %doc README.txt credits.txt LICENSE.txt
-%{_bindir}/btcompletedir.py
 %{_bindir}/btdownloadcurses.py
 %{_bindir}/btdownloadheadless.py
-%{_bindir}/btdownloadlibrary.py
 %{_bindir}/btlaunchmany.py
 %{_bindir}/btlaunchmanycurses.py
-%{_bindir}/btmakemetafile.py
+%{_bindir}/btmaketorrent.py
 %{_bindir}/btreannounce.py
 %{_bindir}/btrename.py
 %{_bindir}/btshowmetainfo.py
@@ -76,11 +94,20 @@
 
 %files gui
 %defattr(-,root,root)
-%{_bindir}/btcompletedirgui.py
 %{_bindir}/btdownloadgui.py
+%{_bindir}/btmaketorrentgui.py
+%{_datadir}/applications/%{desktopvendor}-bittorrent.desktop
+%{_datadir}/pixmaps/%{name}-%{version}
+%{_datadir}/pixmaps/bittorrent.png
 
 
 %changelog
+* Tue Mar 15 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 4.0.0-1.FC3
+- add desktop file, desktop menu icon, post/postun scriptlets
+
+* Mon Mar 14 2005 David Hill <djh[at]ii.net> - 4.0.0-1
+- update to 4.0.0, no longer requires wxPythonGTK
+
 * Wed Dec 22 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:3.4.1-3.a
 - x86_64: Fix python dependency, replace with python-abi dependency.
 
@@ -109,7 +136,7 @@
 - adapted to Doors Linux
 
 * Sun Mar 30 2003 Götz Waschk <waschk at linux-mandrake.com> 3.2.1b-1mdk
-- split out gui tools to remove wxPythonGTK dep from the main package 
+- split out gui tools to remove wxPythonGTK dep from the main package
 - new version
 
 * Fri Mar 28 2003 Frederic Lepied <flepied at mandrakesoft.com> 3.2-1mdk


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/bittorrent/FC-3/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	8 Nov 2004 04:05:46 -0000	1.3
+++ sources	15 Mar 2005 16:41:48 -0000	1.4
@@ -1 +1 @@
-84d8cfedeba539db8b497d63e6ecceed  BitTorrent-3.4.1a.zip
+67f449df351b66f408b72b6bd196952f  BitTorrent-4.0.0.tar.gz




More information about the fedora-extras-commits mailing list