obmenu-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: obmenu
  3. Version: 1.0
  4. Release: 3%{?_dist_release}
  5. Summary: A graphical menu editor for Openbox
  6. Summary(ja): Openbox のグラフィカルメニューエディタ
  7. Group: User Interface/Desktops
  8. License: GPLv2+
  9. URL: http://obmenu.sourceforge.net/
  10. Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  11. Source2: %{name}.desktop
  12. Patch0: %{name}-copy-default-xdg-menu.patch
  13. Patch1: 01_python_package.patch
  14. Patch2: 02_obm-nav_sort.patch
  15. Patch3: 03_about-dialog_fix.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildArch: noarch
  18. Requires: pygtk2-libglade openbox
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: python-devel
  21. %description
  22. obmenu is a graphical menu editor for the Openbox window manager. Openbox uses
  23. XML to store its menu preferences, and editing these by hand can quickly become
  24. tedious; and even moreso when generating an entire menu for oneself! However,
  25. this utility provides a convenient method of editing the menu in a graphical
  26. interface, while not losing the powerful features of Openbox such as its
  27. pipe menus.
  28. This also provides a Python module named obxml that can be used to further
  29. script Openbox's menu system.
  30. %prep
  31. %setup -q
  32. %patch0 -p0
  33. %patch1 -p1
  34. %patch2 -p1
  35. %patch3 -p1
  36. %build
  37. %{__python} setup.py build
  38. %install
  39. rm -rf %{buildroot}
  40. %{__python} setup.py install -O1 --skip-build --root %{buildroot}
  41. chmod +x %{buildroot}%{python_sitelib}/obxml.py
  42. desktop-file-install --vendor vine \
  43. --dir %{buildroot}%{_datadir}/applications \
  44. %{SOURCE2}
  45. %clean
  46. rm -rf %{buildroot}
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc COPYING README
  50. %{_bindir}/%{name}
  51. %{_bindir}/obm-*
  52. %{_datadir}/%{name}/
  53. %{_datadir}/applications/vine-%{name}.desktop
  54. %{python_sitelib}/obxml.py
  55. %{python_sitelib}/obxml.pyc
  56. %{python_sitelib}/obxml.pyo
  57. %{python_sitelib}/*.egg-info
  58. %changelog
  59. * Mon May 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  60. - rebuilt with new environment
  61. * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  62. - added Patch1,2,3 from Debian
  63. * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1vl5
  64. - initial build for VineSeed
  65. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  67. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-7
  68. - Rebuild for Python 2.6
  69. * Mon Jan 07 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-6
  70. - Include egg-info file
  71. * Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-5
  72. - Update license tag
  73. * Fri Dec 08 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-4
  74. - Rebuild for Python 2.5 upgrade
  75. - Fix Categories entry and remove X-Fedora category addition in installed
  76. .desktop file
  77. * Sun Oct 15 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-3
  78. - Some minor aesthetic spec cleanups
  79. - Add a patch from upstream to copy the default /etx/xdg menu stuff if one
  80. does not exist on the first run:
  81. + copy-default-xdg-menu.patch
  82. - Drop unneeded README.Fedora file:
  83. - README.Fedora
  84. * Fri Sep 01 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-2
  85. - Don't %%ghost the .pyo file(s) to comply with the new Extras Python
  86. packaging guidelines
  87. - Package a README.Fedora file and a .desktop file:
  88. + README.Fedora
  89. + %{name}.desktop
  90. * Sun Jun 14 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-1
  91. - Initial packaging