source: projects/specs/branches/6/o/obmenu/obmenu-vl.spec @ 5801

Revision 5801, 3.5 KB checked in by kudoh, 12 years ago (diff)
Line 
1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2
3Name:           obmenu
4Version:        1.0
5Release:        4%{?_dist_release}
6Summary:        A graphical menu editor for Openbox
7Summary(ja):    Openbox のグラフィカルメニューエディタ
8Group:          User Interface/Desktops
9License:        GPLv2+
10URL:            http://obmenu.sourceforge.net/
11
12Source0:        http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13Source2:        %{name}.desktop
14Patch0:         %{name}-copy-default-xdg-menu.patch
15Patch1:         01_python_package.patch
16Patch2:         02_obm-nav_sort.patch
17Patch3:         03_about-dialog_fix.patch
18
19BuildRoot:      %{_tmppath}/%{name}-%{version}-root
20BuildArch:      noarch
21
22Requires:       pygtk2-libglade openbox
23
24BuildRequires:  desktop-file-utils
25BuildRequires:  python-devel
26
27%description
28obmenu is a graphical menu editor for the Openbox window manager. Openbox uses
29XML to store its menu preferences, and editing these by hand can quickly become
30tedious; and even moreso when generating an entire menu for oneself! However,
31this utility provides a convenient method of editing the menu in a graphical
32interface, while not losing the powerful features of Openbox such as its
33pipe menus.
34
35This also provides a Python module named obxml that can be used to further
36script 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
52rm -rf %{buildroot}
53%{__python} setup.py install -O1 --skip-build --root %{buildroot}
54chmod +x %{buildroot}%{python_sitelib}/obxml.py
55desktop-file-install --vendor vine      \
56        --dir %{buildroot}%{_datadir}/applications      \
57        %{SOURCE2}
58
59%clean
60rm -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
Note: See TracBrowser for help on using the repository browser.