public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jgmenu] f44: Version bump
@ 2026-10-28 16:50 TI_Eugene
  0 siblings, 0 replies; only message in thread
From: TI_Eugene @ 2026-10-28 16:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/jgmenu
Branch : f44
Commit : 929225f6b401864af494bf84dc51dab12a6df722
Author : TI_Eugene <ti.eugene@gmail.com>
Date   : 2026-10-28T19:12:42+03:00
Stats  : +154/-24 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/jgmenu/c/929225f6b401864af494bf84dc51dab12a6df722?branch=f44

Log:
Version bump

---
diff --git a/changelog b/changelog
index d295074..64e8baf 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,7 @@
+* Wed Oct 28 2026 TI_Eugene <ti.eugene@gmail.com> - 4.7.0-1
+- Version bump (close #2534268)
+- EL compatibility
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 
@@ -10,9 +14,6 @@
 * Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
 
-* Sat Dec 14 2024 TI_Eugene <ti.eugene@gmail.com> - 4.5.0-1
-- Version bump (close #2331624)
-
 * Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 4.4.1-8
 - convert license to SPDX
 

diff --git a/jgmenu-4.7.0.patch b/jgmenu-4.7.0.patch
new file mode 100644
index 0000000..865b583
--- /dev/null
+++ b/jgmenu-4.7.0.patch
@@ -0,0 +1,122 @@
+diff --git a/contrib/lx/jgmenu-lx.c b/contrib/lx/jgmenu-lx.c
+index 5d00d90..f6e8c65 100644
+--- a/contrib/lx/jgmenu-lx.c
++++ b/contrib/lx/jgmenu-lx.c
+@@ -96,13 +96,13 @@ static void add_metadata(const char * const *categories)
+ 	}
+ }
+ 
+-static void strip_exec_field_codes(char **exec)
++static void strip_exec_field_codes(char *exec)
+ {
+ 	char *p;
+ 
+-	if (!**exec || !*exec)
++	if (!*exec || !exec)
+ 		return;
+-	for (p = *exec; *p; p++) {
++	for (p = exec; *p; p++) {
+ 		if (*p == '%') {
+ 			*p = ' ';
+ 			++p;
+@@ -154,7 +154,7 @@ static void process_app(MenuCacheApp *app)
+ 	if (strchr(exec.buf, ','))
+ 		sbuf_addstr(&cur->buf, "\"\"\"");
+ 	ugly_hack(&exec);
+-	strip_exec_field_codes(&exec.buf);
++	strip_exec_field_codes(exec.buf);
+ 	sbuf_addstr(&cur->buf, exec.buf);
+ 	if (strchr(exec.buf, ','))
+ 		sbuf_addstr(&cur->buf, " \"\"\"");
+diff --git a/src/desktop.c b/src/desktop.c
+index e4caae7..8214975 100644
+--- a/src/desktop.c
++++ b/src/desktop.c
+@@ -247,7 +247,7 @@ static int compare_app_name(const void *a, const void *b)
+ 	bb_name = bb->name_localized[0] != '\0' ? bb->name_localized : bb->name;
+ 	aa_name = g_utf8_casefold(aa_name, -1);
+ 	bb_name = g_utf8_casefold(bb_name, -1);
+-	ret = strcmp(aa_name, bb_name);
++	ret = g_utf8_collate(aa_name, bb_name);
+ 	xfree(aa_name);
+ 	xfree(bb_name);
+ 	return ret;
+diff --git a/src/dirs.c b/src/dirs.c
+index 2af7640..49dd77c 100644
+--- a/src/dirs.c
++++ b/src/dirs.c
+@@ -9,6 +9,7 @@
+ #include <string.h>
+ #include <dirent.h>
+ #include <stdbool.h>
++#include <glib.h>
+ 
+ #include "dirs.h"
+ #include "xdgdirs.h"
+@@ -104,6 +105,24 @@ static void process_builtin_schema(void)
+ 				       schema_builtin[i].value);
+ }
+ 
++static int compare_dir_name(const void *a, const void *b)
++{
++	const struct dir *aa = (struct dir *)a;
++	const struct dir *bb = (struct dir *)b;
++	const char *aa_name, *bb_name;
++	int ret;
++
++	BUG_ON(!aa->name || !bb->name);
++	aa_name = aa->name_localized[0] != '\0' ? aa->name_localized : aa->name;
++	bb_name = bb->name_localized[0] != '\0' ? bb->name_localized : bb->name;
++	aa_name = g_utf8_casefold(aa_name, -1);
++	bb_name = g_utf8_casefold(bb_name, -1);
++	ret = g_utf8_collate(aa_name, bb_name);
++	xfree(aa_name);
++	xfree(bb_name);
++	return ret;
++}
++
+ void dirs_read_schema(struct dir **vector)
+ {
+ 	struct list_head xdg_config_dirs;
+@@ -134,5 +153,6 @@ schema_read_success:
+ 
+ 	/* NULL terminate vector *dirs */
+ 	add_dir();
++	qsort(dirs, nr_dirs - 1, sizeof(struct dir), compare_dir_name);
+ 	*vector = dirs;
+ }
+diff --git a/src/jgmenu-apps.c b/src/jgmenu-apps.c
+index 1ac2bae..0dd30f9 100644
+--- a/src/jgmenu-apps.c
++++ b/src/jgmenu-apps.c
+@@ -5,6 +5,7 @@
+  */
+ 
+ #include <getopt.h>
++#include <locale.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -247,6 +248,9 @@ int main(int argc, char **argv)
+ 	struct dir *dirs;
+ 	int c;
+ 
++	if (!setlocale(LC_ALL, ""))
++		warn("setlocale(): locale not supported by C library; using 'C' locale");
++
+ 	while (1) {
+ 		int index = 0;
+ 
+diff --git a/tests/helper/Makefile b/tests/helper/Makefile
+index bb45a21..badba6d 100644
+--- a/tests/helper/Makefile
++++ b/tests/helper/Makefile
+@@ -31,7 +31,7 @@ test-xpm: test-xpm.c $(src)xpm-loader.c $(util)
+ 	$(CC) $(CFLAGS) -o $@ $^ -I$(src) $(LDFLAGS) `pkg-config cairo --cflags --libs`
+ 
+ test-dirs: test-dirs.c $(src)dirs.c $(src)xdgdirs.c $(src)argv-buf.c $(src)compat.c $(src)lang.c $(util)
+-	$(CC) $(CFLAGS) -o $@ $^ -I$(src) $(LDFLAGS)
++	$(CC) $(CFLAGS) -o $@ $^ -I$(src) $(LDFLAGS) `pkg-config glib-2.0 --cflags --libs`
+ 
+ test-xdgdirs: test-xdgdirs.c $(src)xdgdirs.c $(src)argv-buf.c $(util)
+ 	$(CC) $(CFLAGS) -o $@ $^ -I$(src) $(LDFLAGS)

diff --git a/jgmenu.spec b/jgmenu.spec
index 3fe2ce8..e828af0 100644
--- a/jgmenu.spec
+++ b/jgmenu.spec
@@ -1,5 +1,5 @@
 %global forgeurl https://github.com/jgmenu/jgmenu
-Version:	4.6.0
+Version:	4.7.0
 %forgemeta
 
 Name:		jgmenu
@@ -8,6 +8,7 @@ Summary:	Simple X11 application menu
 License:	GPL-2.0-or-later
 URL:		%{forgeurl}
 Source:		%{forgesource}
+Patch:		%{name}-%{version}.patch
 
 BuildRequires:	desktop-file-utils
 BuildRequires:	gcc
@@ -17,6 +18,7 @@ BuildRequires:	pkgconfig(librsvg-2.0) >= 2.46
 BuildRequires:	pkgconfig(libxml-2.0)
 BuildRequires:	pkgconfig(pango)
 BuildRequires:	pkgconfig(xrandr)
+# https://github.com/jgmenu/jgmenu/issues/276
 Requires:	hicolor-icon-theme
 
 %description
@@ -25,15 +27,6 @@ ricing and tweaking. Useful for tint2, polymenu, cairo-dock, plank, unity,
 openbox, i3, dwm and other light environments.
 
 
-%package	lx
-Summary:	LXDE %{name} plugin
-BuildRequires:	pkgconfig(libmenu-cache)
-Requires:	%{name}%{?_isa} = %{version}-%{release}
-
-%description	lx
-LXDE plugin for %{name} package.
-
-
 %package	pmenu
 Summary:	Pmenu %{name} plugin
 BuildArch:	noarch
@@ -52,26 +45,38 @@ Requires:	%{name} = %{version}-%{release}
 GTKtheme plugin for %{name} package.
 
 
+%if 0%{?fedora}
+%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	xfce4
 Summary:	Xfce4 %{name} plugin
-%if 0%{?fedora} > 33
 BuildRequires:	pkgconfig(libxfce4panel-2.0)
-%else
-BuildRequires:	pkgconfig(libxfce4panel-1.0)
-%endif
 Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description	xfce4
 Xfce4 plugin for %{name} package.
+%endif
 
 
 %prep
-%forgeautosetup
+%forgeautosetup -p1
 
 
 %build
-# default: --with-lx --with-pmenu --with-gtktheme --with-xfce4-panel-applet
+%if 0%{?fedora}
+# default: --with-pmenu --with-gtktheme --with-lx --with-xfce4-panel-applet
 %{configure} -a
+%else
+%{configure} --with-pmenu --with-gtktheme
+%endif
 %{make_build}
 
 
@@ -106,10 +111,6 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 %{_mandir}/man?/%{name}*.*
 %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.*
@@ -117,9 +118,15 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 %files	gtktheme
 %{_libexecdir}/%{name}/%{name}-gtktheme.py
 
+%if 0%{?fedora}
+%files	lx
+%{_libexecdir}/%{name}/%{name}-lx
+%{_mandir}/man1/%{name}-lx.1.*
+
 %files	xfce4
 %{_libdir}/xfce4/panel/plugins/lib%{name}.so
 %{_datadir}/xfce4/panel/plugins/%{name}-applet.desktop
+%endif
 
 
 %changelog

diff --git a/sources b/sources
index 5e260c1..a36ae97 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (jgmenu-4.6.0.tar.gz) = becf49bd4ee6d6983f90c114ec4cc5b3b8e43bbe2972242d73ebe8ae1ffb6e970a378538fb6c02b9415291c7ea899322b336a16efb2a9897e44392ab267d0ed1
+SHA512 (jgmenu-4.7.0.tar.gz) = b856921672dd2e559e4db9f7d3401b257de4435401017231c386cc1bb7ee48062564b5afd2ef15888908cd48a2f152611d3247597d88bbef7977b7d92ee137bb

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-28 16:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 16:50 [rpms/jgmenu] f44: Version bump TI_Eugene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox