%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: obmenu Version: 1.0 Release: 4%{?_dist_release} Summary: A graphical menu editor for Openbox Summary(ja): Openbox のグラフィカルメニューエディタ Group: User Interface/Desktops License: GPLv2+ URL: http://obmenu.sourceforge.net/ Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source2: %{name}.desktop Patch0: %{name}-copy-default-xdg-menu.patch Patch1: 01_python_package.patch Patch2: 02_obm-nav_sort.patch Patch3: 03_about-dialog_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch Requires: pygtk2-libglade openbox BuildRequires: desktop-file-utils BuildRequires: python-devel %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 %patch0 -p0 %patch1 -p1 %patch2 -p1 %patch3 -p1 %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 desktop-file-install --vendor vine \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE2} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING README %{_bindir}/%{name} %{_bindir}/obm-* %{_datadir}/%{name}/ %{_datadir}/applications/vine-%{name}.desktop %{python_sitelib}/obxml.py %{python_sitelib}/obxml.pyc %{python_sitelib}/obxml.pyo %{python_sitelib}/*.egg-info %changelog * Fri Mar 02 2012 Toshiharu Kudoh - 1.0-4 - rebuilt with Vine6 environment * Mon May 10 2010 Toshiharu Kudoh - 1.0-3 - rebuilt with new environment * Fri Sep 25 2009 Toshiharu Kudoh - 1.0-2 - added Patch1,2,3 from Debian * Sat May 9 2009 Toshiharu Kudoh - 1.0-1vl5 - initial build for VineSeed * Wed Feb 25 2009 Fedora Release Engineering - 1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.0-7 - Rebuild for Python 2.6 * Mon Jan 07 2008 Miroslav Lichvar - 1.0-6 - Include egg-info file * Wed Aug 22 2007 Miroslav Lichvar - 1.0-5 - Update license tag * Fri Dec 08 2006 Peter Gordon - 1.0-4 - Rebuild for Python 2.5 upgrade - Fix Categories entry and remove X-Fedora category addition in installed .desktop file * Sun Oct 15 2006 Peter Gordon - 1.0-3 - Some minor aesthetic spec cleanups - Add a patch from upstream to copy the default /etx/xdg menu stuff if one does not exist on the first run: + copy-default-xdg-menu.patch - Drop unneeded README.Fedora file: - README.Fedora * Fri Sep 01 2006 Peter Gordon - 1.0-2 - Don't %%ghost the .pyo file(s) to comply with the new Extras Python packaging guidelines - Package a README.Fedora file and a .desktop file: + README.Fedora + %{name}.desktop * Sun Jun 14 2006 Peter Gordon - 1.0-1 - Initial packaging