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