rpms/vboxgtk/devel vboxgtk-vboxgtk.desktop.in.patch, NONE,
1.1 vboxgtk-vboxpath.patch, NONE, 1.1 vboxgtk.spec, NONE,
1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Hicham HAOUARI
hicham at rpmfusion.org
Wed Aug 12 15:11:01 CEST 2009
- Previous message: rpms/vlc/F-11 sources,1.18,1.19 vlc.spec,1.43,1.44
- Next message: rpms/vboxgtk/F-11 vboxgtk-vboxgtk.desktop.in.patch, NONE,
1.1 vboxgtk-vboxpath.patch, NONE, 1.1 vboxgtk.spec, NONE,
1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: hicham
Update of /cvs/free/rpms/vboxgtk/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv32759/devel
Modified Files:
.cvsignore sources
Added Files:
vboxgtk-vboxgtk.desktop.in.patch vboxgtk-vboxpath.patch
vboxgtk.spec
Log Message:
vboxgtk-vboxgtk.desktop.in.patch:
--- NEW FILE vboxgtk-vboxgtk.desktop.in.patch ---
diff -up vboxgtk-0.5.0/data/vboxgtk.desktop.in.orig vboxgtk-0.5.0/data/vboxgtk.desktop.in
--- vboxgtk-0.5.0/data/vboxgtk.desktop.in.orig 2009-08-09 18:19:46.370336267 +0100
+++ vboxgtk-0.5.0/data/vboxgtk.desktop.in 2009-08-09 20:59:52.904335950 +0100
@@ -1,10 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
+Version=1.0
Name=VBoxGtk
Comment=VirtualBox GTK+ interface
Exec=vboxgtk
Terminal=false
StartupNotify=true
-Icon=vboxgtk
+Icon=/usr/share/icons/hicolor/scalable/apps/vboxgtk.svg
Type=Application
-Categories=GTKi;Office;
+Categories=Emulator;System;
+X-Desktop-File-Install-Version=0.15
vboxgtk-vboxpath.patch:
--- NEW FILE vboxgtk-vboxpath.patch ---
diff -up vboxgtk-0.5.0/bin/vboxgtk.vboxpath vboxgtk-0.5.0/bin/vboxgtk
--- vboxgtk-0.5.0/bin/vboxgtk.vboxpath 2009-08-09 18:12:58.000000000 +0200
+++ vboxgtk-0.5.0/bin/vboxgtk 2009-08-09 18:13:05.000000000 +0200
@@ -34,7 +34,7 @@ anyway (hoping that the user has added t
import os
import sys
import textwrap
-
+import distutils.sysconfig;
def prepare_sys_path():
vbox_install_path = None
@@ -58,10 +58,14 @@ def prepare_sys_path():
sys.path.insert(0, vbox_install_path)
sdk_dir = 'sdk/bindings/xpcom/python'
sys.path.insert(0, os.path.join(vbox_install_path, sdk_dir))
- base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
- if os.path.isdir(os.path.join(base_path, 'vboxgtk')):
- sys.path.insert(0, base_path)
+ base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+ site_lib = os.path.join(distutils.sysconfig.get_python_lib(1), 'virtualbox')
+
+ for base in (base_path, site_lib):
+ for sub in ('vboxgtk', 'xpcom'):
+ if os.path.isdir(os.path.join(base, sub)):
+ sys.path.insert(0, base)
def test_xpcom_import():
msg = """
--- NEW FILE vboxgtk.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: vboxgtk
Version: 0.5.0
Release: 2%{?dist}
Summary: A simple GTK frontend for VirtualBox
Group: Applications/Emulators
License: GPLv3
URL: http://vboxgtk.sourceforge.net/
Source0: http://freefr.dl.sourceforge.net/project/%{name}/%{name}/%{name}/%{name}-%{version}.tar.gz
#Patch0: fix the vboxgtk desktop file, filed in : https://sourceforge.net/tracker/?func=detail&aid=2834528&group_id=263334&atid=1134168
Patch0: vboxgtk-vboxgtk.desktop.in.patch
#Patch1: fix VirtualBox-OSE paths in vboxgtk launcher
Patch1: vboxgtk-vboxpath.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?fedora} > 11
ExclusiveArch: i686 x86_64
%else %if 0%{?fedora} > 10
ExclusiveArch: i586 x86_64
%else
ExclusiveArch: i386 x86_64
%endif
Requires: python-VirtualBox-OSE
%description
A simple GTK frontend for VirtualBox.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%install
rm -rf $RPM_BUILD_ROOT
./setup.py install --root $RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}
%changelog
* Sun Aug 09 2009 Hicham HAOUARI <hicham.haouari at gmail.com> 0.5.0-2
- Spec cleanup (https://bugzilla.rpmfusion.org/show_bug.cgi?id=751#c2).
* Fri Aug 07 2009 Hicham HAOUARI <hicham.haouari at gmail.com> 0.5.0-1
- Initial package for rpmfusion.
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/vboxgtk/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 12 Aug 2009 08:22:09 -0000 1.1
+++ .cvsignore 12 Aug 2009 13:11:00 -0000 1.2
@@ -0,0 +1 @@
+vboxgtk-0.5.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/vboxgtk/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 12 Aug 2009 08:22:09 -0000 1.1
+++ sources 12 Aug 2009 13:11:00 -0000 1.2
@@ -0,0 +1 @@
+3f431b4ae6cfd411f53372f8a7e2010c vboxgtk-0.5.0.tar.gz
- Previous message: rpms/vlc/F-11 sources,1.18,1.19 vlc.spec,1.43,1.44
- Next message: rpms/vboxgtk/F-11 vboxgtk-vboxgtk.desktop.in.patch, NONE,
1.1 vboxgtk-vboxpath.patch, NONE, 1.1 vboxgtk.spec, NONE,
1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the rpmfusion-commits
mailing list