1 |
%global __python %{__python3} |
2 |
Name: jgmenu |
3 |
Version: 2.2.1 |
4 |
Release: %mkrel 1 |
5 |
Summary: Small X11 menu intended to be used with openbox and tint2 |
6 |
Group: Graphical desktop/Other |
7 |
License: GPLv2 |
8 |
URL: https://github.com/johanmalm/jgmenu/wiki |
9 |
Source0: https://github.com/johanmalm/jgmenu/archive/v%{version}/%{name}-%{version}.tar.gz |
10 |
|
11 |
BuildRequires: pkgconfig(x11) |
12 |
BuildRequires: pkgconfig(xinerama) |
13 |
BuildRequires: pkgconfig(cairo) |
14 |
BuildRequires: pkgconfig(pango) |
15 |
BuildRequires: pkgconfig(librsvg-2.0) |
16 |
BuildRequires: pkgconfig(libxml-2.0) |
17 |
BuildRequires: pkgconfig(glib-2.0) |
18 |
BuildRequires: pkgconfig(libmenu-cache) |
19 |
BuildRequires: pkgconfig(xrandr) |
20 |
|
21 |
Patch0: jgmenu-0.9-Makefile-libexecdir.patch |
22 |
|
23 |
%description |
24 |
- jgmenu is a stand-alone, simple and contemporary-looking menu application |
25 |
for Linux and BSD. |
26 |
- Although it was originally written to be used with openbox and tint2, |
27 |
it is not in any way dependent on these and runs well with other panels |
28 |
and window managers. |
29 |
- It is hackable with a clean, small code base. |
30 |
- It can display the following types of menu (or any combination of): |
31 |
o bespoke menu using a jgmenu flavoured CSV format |
32 |
o application menu (XDG compatible) with localisation support |
33 |
o openbox XML menu including pipe-menus |
34 |
- It can display SVG, PNG and XPM icons. |
35 |
- It has UTF-8 search support. |
36 |
- It is highly customizable (e.g. colours, alignment, margins, padding, |
37 |
transparency). |
38 |
- It can synchronise with xsettings, GTK and tint2 settings. |
39 |
- It does not depend on any toolkits such as GTK and Qt, but uses cairo and |
40 |
pango to render the menu directly onto an X11 window. |
41 |
|
42 |
|
43 |
%prep |
44 |
%autosetup -p1 |
45 |
|
46 |
sed -i "s/file=sys.stderr/sys.stderr.write/g" src/jgmenu-pmenu.py |
47 |
|
48 |
%build |
49 |
%make_build prefix=%{_prefix} libexecdir=%{_libdir}/%{name} |
50 |
|
51 |
%install |
52 |
%make_install prefix=%{_prefix} libexecdir=%{_libdir}/%{name} |
53 |
|
54 |
%files |
55 |
%doc README.md TODO.md |
56 |
%{_bindir}/%{name}* |
57 |
%{_libdir}/%{name} |
58 |
%{_datadir}/applications/%{name}.desktop |
59 |
%{_mandir}/man1/* |
60 |
%{_mandir}/man7/* |
61 |
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg |