Name: jgmenu Version: 4.2.1 Release: 2%{?dist} Summary: Simple X11 application menu License: GPLv2+ URL: https://jgmenu.github.io Source0: https://github.com/johanmalm/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Requires: hicolor-icon-theme BuildRequires: gcc, desktop-file-utils # libXrandr-devel BuildRequires: pkgconfig(xrandr) # libxml2-devel BuildRequires: pkgconfig(libxml-2.0) # cairo-devel BuildRequires: pkgconfig(cairo) # pango-devel BuildRequires: pkgconfig(pango) # librsvg2-devel BuildRequires: pkgconfig(librsvg-2.0) %description A simple, independent and contemporary-looking X11 menu, designed for scripting, ricing and tweaking. Useful for tint2, polymenu, cairo-dock, plank, unity, openbox, i3, dwm and other light environments. %package lx Summary: LXDE %{name} plugin # menu-cache-devel BuildRequires: pkgconfig(libmenu-cache) Requires: %{name}%{?_isa} = %{version}-%{release} %description lx LXDE plugin for %{name} package. %package pmenu Summary: Pmenu %{name} plugin Requires: %{name} = %{version}-%{release} BuildArch: noarch %description pmenu Pmenu plugin for %{name} package. %package gtktheme Summary: GTKtheme %{name} plugin Requires: %{name} = %{version}-%{release} BuildArch: noarch %description gtktheme GTKtheme plugin for %{name} package. %package xfce4 Summary: Xfce4 %{name} plugin # xfce4-panel-devel BuildRequires: pkgconfig(libxfce4panel-1.0) Requires: %{name}%{?_isa} = %{version}-%{release} %description xfce4 Xfce4 plugin for %{name} package. %prep %autosetup %build # default: --with-lx --with-pmenu --with-gtktheme --with-xfce4-panel-applet %{configure} -a %{make_build} %install %{make_install} %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop # TODO: make test (failed on aarch64: https://github.com/johanmalm/jgmenu/issues/123) %post update-desktop-database &> /dev/null || : %postun if [ $1 -eq 0 ] ; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi update-desktop-database &> /dev/null || : %files %license LICENSE %doc README.md %{_bindir}/%{name}* %{_libexecdir}/%{name}/%{name}-* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_mandir}/man?/%{name}*.gz %exclude %{_libexecdir}/%{name}/%{name}-{lx,pmenu.py,gtktheme.py} %exclude %{_mandir}/man1/%{name}-{lx,pmenu}.1.gz %files lx %{_libexecdir}/%{name}/%{name}-lx %{_mandir}/man1/%{name}-lx.1.gz %files pmenu %{_libexecdir}/%{name}/%{name}-pmenu.py %{_mandir}/man1/%{name}-pmenu.1.gz %files gtktheme %{_libexecdir}/%{name}/%{name}-gtktheme.py %files xfce4 %{_libdir}/xfce4/panel/plugins/lib%{name}.so %{_datadir}/xfce4/panel/plugins/%{name}-applet.desktop %changelog * Sat Jun 27 2020 TI_Eugene - 4.2.1-2 - Spec fixes * Mon Jun 08 2020 TI_Eugene - 4.2.1-1 - Initial build