123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
- Name: obmenu
- Version: 1.0
- Release: 3%{?_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
- * Mon May 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
- - rebuilt with new environment
- * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
- - added Patch1,2,3 from Debian
- * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1vl5
- - initial build for VineSeed
- * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-7
- - Rebuild for Python 2.6
- * Mon Jan 07 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-6
- - Include egg-info file
- * Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-5
- - Update license tag
- * Fri Dec 08 2006 Peter Gordon <peter@thecodergeek.com> - 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 <peter@thecodergeek.com> - 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 <peter@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 and a .desktop file:
- + README.Fedora
- + %{name}.desktop
- * Sun Jun 14 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-1
- - Initial packaging
|