devel/bittorrent bittorrent.desktop, NONE, 1.1 bittorrent.png, NONE, 1.1 bittorrent.spec, 1.8, 1.9

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


Author: mschwendt

Update of /cvs/extras/devel/bittorrent
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22931

Modified Files:
	bittorrent.spec 
Added Files:
	bittorrent.desktop bittorrent.png 
Log Message:
- add desktop file, desktop menu icon, post/postun scriptlets



--- 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: bittorrent.spec
===================================================================
RCS file: /cvs/extras/devel/bittorrent/bittorrent.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- bittorrent.spec	15 Mar 2005 05:48:55 -0000	1.8
+++ bittorrent.spec	15 Mar 2005 05:50:46 -0000	1.9
@@ -1,17 +1,21 @@
+%define desktopvendor fedora
+
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           bittorrent
 Version:        4.0.0
-Release:        1
+Release:        2
 Summary:        BitTorrent swarming network file transfer tool
 
 Group:          Applications/Internet
 License:        BitTorrent Open Source License
 URL:            http://www.bittorrent.com/
-Source0:        http://www.bittorrent.com/dl/BitTorrent-4.0.0.tar.gz
+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]")
 
@@ -36,7 +40,7 @@
 
 
 %prep
-%setup -q -n BitTorrent-4.0.0
+%setup -q -n BitTorrent-%{version}
 sed -i "s/appdir = .*/appdir = '%{name}-%{version}'/" BitTorrent/__init__.py
 
 
@@ -49,11 +53,25 @@
 %{__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
@@ -76,10 +94,15 @@
 %defattr(-,root,root)
 %{_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-2
+- 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
 




More information about the scm-commits mailing list