rpms/obmenu/devel obmenu-README.Fedora, NONE, 1.1 obmenu.desktop, NONE, 1.1 obmenu.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Peter Gordon (pgordon) fedora-extras-commits at redhat.com
Sat Sep 2 17:37:07 UTC 2006


Author: pgordon

Update of /cvs/extras/rpms/obmenu/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22553/devel

Modified Files:
	.cvsignore sources 
Added Files:
	obmenu-README.Fedora obmenu.desktop obmenu.spec 
Log Message:
auto-import obmenu-1.0-2 on branch devel from obmenu-1.0-2.src.rpm
Initial import


--- NEW FILE obmenu-README.Fedora ---
The contents of this file Peter Gordon <peter at thecodergeek.com>
All copyright to the contents of this file is hereby disclaimed.   

When starting obmenu for the first time, you may receive an error message such
as the following:
	
	Error: "/home/<username>/.config/openbox/menu.xml" not found

This message means that you have no personalized menu yet, and thus obmenu
cannot continue. In order to solve this, you must copy the default menu.xml to
your openbox configuration directory, then run obmenu again. The following
commands can be used to achieve this (the "$" is your shell prompt):
	
	$ mkdir -p $HOME/.config/openbox
	$ cp /etc/xdg/openbox/menu.xml $HOME/.config/openbox/


What follows is the text an email that was sent to the upstream author about
this...

Message-ID: <44F90838.1000206 at thecodergeek.com>
Date: Fri, 01 Sep 2006 21:27:36 -0700
From: Peter Gordon <peter at thecodergeek.com>
To:  mkolme at gmail.com
Subject: Obmenu does not start when using the default menu (for the first
 time)

Greetings!

My name is Peter Gordon, and I am in the process of packaging obmenu for
inclusing in Fedora Extras (see the review request on Red Hat's Bugzilla
[1] if you are interested).

I've come across an issue with obmenu that at first glance seems somewhat

straightforward (though probably not easy) to fix. If one has no initial
menu.xml file in their openbox configuration, he will get an error such as:
	Error: "/home/<username>/.config/openbox/menu.xml" not found
However, this can be resolved by copying the the default menu.xml from the
/etc/xdg/openbox/ directory to the user's configuration.

(I'm still attempting to teach myself more in-depth Python, so excuse my
current lack of a patch for this functionality.) Would it be possible to
detect somehow if the user's menu.xml file exists, and if not to copy the
default into their configuration directory before running the program?

[1] https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=195871

Thanks for your time!
--
Peter Gordon (codergeek42)
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
  DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
My Blog: http://thecodergeek.com/blog/

--- NEW FILE obmenu.desktop ---
[Desktop Entry]
Encoding=UTF-8
Name=obmenu
Icon=/usr/share/obmenu/mnu48.png
Comment=Graphical Openbox menu editor
GenericName=Openbox menu editor
Exec=obmenu
Terminal=false
Type=Application
Categories=Openbox;Application;System Tools


--- NEW FILE obmenu.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:		obmenu
Version:	1.0
Release:	2%{?dist}
Summary:	A graphical menu editor for Openbox

Group:		User Interface/Desktops
License:	GPL
URL:		http://obmenu.sourceforge.net/
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}-README.Fedora
Source2:	%{name}.desktop
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch
Requires:	pygtk2-libglade
BuildRequires:	desktop-file-utils

%description
obmenu is a graphical menu editor for the Openbox window manager. Openbox uses
XML to store its menu preferences, and editing these by hand can quickly become
tedious; and even moreso when generating an entire menu for oneself! However,
this utility provides a convenient method of editing the menu in a graphical
interface, while not losing the powerful features of Openbox such as its
pipe menus. 

This also provides a Python module named obxml that can be used to further
script Openbox's menu system. 


%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
chmod +x %{buildroot}%{python_sitelib}/obxml.py
cp %{SOURCE1} README.Fedora
desktop-file-install --vendor fedora	\
	--dir %{buildroot}%{_datadir}/applications	\
	--add-category	X-Fedora	\
	%{SOURCE2}

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc COPYING README README.Fedora
%{_bindir}/%{name}
%{_bindir}/obm-*
%{_datadir}/%{name}/
%{_datadir}/applications/fedora-%{name}.desktop
%{python_sitelib}/obxml.py
%{python_sitelib}/obxml.pyc
%{python_sitelib}/obxml.pyo


%changelog
* Fri Sep 01 2006 Peter Gordon <peter at thecodergeek.com> - 1.0-2
- Don't %%ghost the .pyo file(s) to comply with the new Extras Python
  packaging guidelines
- Package a README.Fedora file
- Package a .desktop file  

* Sun Jun 14 2006 Peter Gordon <peter at thecodergeek.com> - 1.0-1
- Initial packaging

Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/obmenu/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	2 Sep 2006 17:36:40 -0000	1.1
+++ .cvsignore	2 Sep 2006 17:37:07 -0000	1.2
@@ -0,0 +1 @@
+obmenu-1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/obmenu/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Sep 2006 17:36:40 -0000	1.1
+++ sources	2 Sep 2006 17:37:07 -0000	1.2
@@ -0,0 +1 @@
+710036a5edc9886d6d563ce46c747432  obmenu-1.0.tar.gz




More information about the fedora-extras-commits mailing list