obmenu-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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: 4%{?_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. * Wed Feb 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-4
  60. - rebuilt with new environment
  61. * Mon May 10 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  62. - rebuilt with new environment
  63. * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  64. - added Patch1,2,3 from Debian
  65. * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1vl5
  66. - initial build for VineSeed
  67. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  69. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-7
  70. - Rebuild for Python 2.6
  71. * Mon Jan 07 2008 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-6
  72. - Include egg-info file
  73. * Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> - 1.0-5
  74. - Update license tag
  75. * Fri Dec 08 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-4
  76. - Rebuild for Python 2.5 upgrade
  77. - Fix Categories entry and remove X-Fedora category addition in installed
  78. .desktop file
  79. * Sun Oct 15 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-3
  80. - Some minor aesthetic spec cleanups
  81. - Add a patch from upstream to copy the default /etx/xdg menu stuff if one
  82. does not exist on the first run:
  83. + copy-default-xdg-menu.patch
  84. - Drop unneeded README.Fedora file:
  85. - README.Fedora
  86. * Fri Sep 01 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-2
  87. - Don't %%ghost the .pyo file(s) to comply with the new Extras Python
  88. packaging guidelines
  89. - Package a README.Fedora file and a .desktop file:
  90. + README.Fedora
  91. + %{name}.desktop
  92. * Sun Jun 14 2006 Peter Gordon <peter@thecodergeek.com> - 1.0-1
  93. - Initial packaging