commit 1e74774882385242cfef78ac4bf52e45ac864d0a Author: Toshaan Bharvani Date: Tue Oct 4 00:16:48 2022 +0200 initial package creation Signed-off-by: Toshaan Bharvani diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/jgmenu.spec b/SPECS/jgmenu.spec new file mode 100644 index 0000000..5c63c9b --- /dev/null +++ b/SPECS/jgmenu.spec @@ -0,0 +1,138 @@ +Name: jgmenu +Version: 4.4.0 +Release: 1%{?dist} +Summary: Simple X11 application menu +License: GPLv2+ +URL: https://jgmenu.github.io +Source0: https://github.com/johanmalm/%{name}/archive/v%{version}/%{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 +%if 0%{?fedora} > 33 +BuildRequires: pkgconfig(libxfce4panel-2.0) +%else +BuildRequires: pkgconfig(libxfce4panel-1.0) +%endif +BuildRequires: make +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) + + +%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}*.* +%exclude %{_libexecdir}/%{name}/%{name}-{lx,pmenu.py,gtktheme.py} +%exclude %{_mandir}/man1/%{name}-{lx,pmenu}.1.* + +%files lx +%{_libexecdir}/%{name}/%{name}-lx +%{_mandir}/man1/%{name}-lx.1.* + +%files pmenu +%{_libexecdir}/%{name}/%{name}-pmenu.py +%{_mandir}/man1/%{name}-pmenu.1.* + +%files gtktheme +%{_libexecdir}/%{name}/%{name}-gtktheme.py + +%files xfce4 +%{_libdir}/xfce4/panel/plugins/lib%{name}.so +%{_datadir}/xfce4/panel/plugins/%{name}-applet.desktop + +%changelog +* Fri Sep 17 2021 TI_Eugene - 4.4.0-1 +- Version bump + +* Thu Jul 22 2021 Fedora Release Engineering - 4.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 4.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 06 2021 TI_Eugene - 4.3.0-1 +- Version bump + +* Tue Jul 28 2020 Fedora Release Engineering - 4.2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 07 2020 TI_Eugene - 4.2.1-3 +- Spec fixes + +* Sat Jun 27 2020 TI_Eugene - 4.2.1-2 +- Spec fixes + +* Mon Jun 08 2020 TI_Eugene - 4.2.1-1 +- Initial build