Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wlopm for openSUSE:Factory checked 
in at 2025-02-21 21:38:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wlopm (Old)
 and      /work/SRC/openSUSE:Factory/.wlopm.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wlopm"

Fri Feb 21 21:38:46 2025 rev:2 rq:1247713 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/wlopm/wlopm.changes      2022-06-06 
11:11:06.951359150 +0200
+++ /work/SRC/openSUSE:Factory/.wlopm.new.1873/wlopm.changes    2025-02-21 
21:39:25.063858293 +0100
@@ -1,0 +2,13 @@
+Mon Feb 17 13:05:58 UTC 2025 - pgaj...@suse.com
+
+- version update to 1.0.0
+  - Add bash completions.
+  - Fix installation on FreeBSD (thanks to Isaac Freund).
+  - Follow (new) C standard by replacing noop() function (thanks to Ben
+    Buse).
+  - Allow compiling with clang via -Wno-strict-prototypes.
+  - Fix file permissions of man page.
+- fixes build with gcc 15
+- removed Makefile.patch, not needed
+
+-------------------------------------------------------------------

Old:
----
  Makefile.patch
  v0.1.0.tar.gz

New:
----
  v1.0.0.tar.gz

BETA DEBUG BEGIN:
  Old:- fixes build with gcc 15
- removed Makefile.patch, not needed
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wlopm.spec ++++++
--- /var/tmp/diff_new_pack.IndsoF/_old  2025-02-21 21:39:25.459874782 +0100
+++ /var/tmp/diff_new_pack.IndsoF/_new  2025-02-21 21:39:25.459874782 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package wlopm
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,12 @@
 
 
 Name:           wlopm
-Version:        0.1.0
+Version:        1.0.0
 Release:        0
 Summary:        Wayland output power management
 License:        GPL-3.0-only
 URL:            https://git.sr.ht/~leon_plickat/wlopm
 Source0:        
https://git.sr.ht/~leon_plickat/wlopm/archive/v%{version}.tar.gz
-Patch0:         Makefile.patch
 BuildRequires:  pkgconfig
 BuildRequires:  scdoc >= 1.9.2
 BuildRequires:  pkgconfig(wayland-client)
@@ -37,9 +36,10 @@
 %autosetup -n %{name}-v%{version}
 
 %build
-%make_build PREFIX=/usr
+%make_build PREFIX="/usr" CFLAGS="%{optflags} $(pkg-config --cflags 
wayland-client)"
 
 %install
+mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
 %make_install PREFIX=/usr
 
 %files
@@ -47,4 +47,5 @@
 %doc README
 %{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1%{?ext_man}
+%{_datadir}/bash-completion/completions/wlopm
 

++++++ v0.1.0.tar.gz -> v1.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlopm-v0.1.0/Makefile new/wlopm-v1.0.0/Makefile
--- old/wlopm-v0.1.0/Makefile   2022-06-01 18:00:45.000000000 +0200
+++ new/wlopm-v1.0.0/Makefile   2024-12-05 04:07:02.000000000 +0100
@@ -3,8 +3,9 @@
 PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
 MANDIR=$(PREFIX)/share/man
+BASHCOMPDIR=$(PREFIX)/share/bash-completion/completions
 
-CFLAGS+=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion 
-Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result
+CFLAGS+=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion 
-Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result 
-Wno-strict-prototypes
 LIBS=-lwayland-client
 OBJ=wlopm.o wlr-output-power-management-unstable-v1.o
 GEN=wlr-output-power-management-unstable-v1.c 
wlr-output-power-management-unstable-v1.h
@@ -21,15 +22,18 @@
        $(SCANNER) client-header < $< > $@
 
 install: wlopm
-       install -D wlopm   $(DESTDIR)$(BINDIR)/wlopm
-       install -D wlopm.1 $(DESTDIR)$(MANDIR)/man1/wlopm.1
+       install -d $(DESTDIR)$(BINDIR)
+       install wlopm $(DESTDIR)$(BINDIR)
+       install -d $(DESTDIR)$(MANDIR)/man1
+       install -m 644 wlopm.1 $(DESTDIR)$(MANDIR)/man1
+       install bash-completion $(DESTDIR)$(BASHCOMPDIR)/wlopm
 
 uninstall:
        $(RM) $(DESTDIR)$(BINDIR)/wlopm
        $(RM) $(DESTDIR)$(MANDIR)/man1/wlopm.1
+       $(RM) $(DESTDIR)$(BASHCOMPDIR)/wlopm
 
 clean:
        $(RM) wlopm $(GEN) $(OBJ)
 
 .PHONY: clean install
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlopm-v0.1.0/bash-completion 
new/wlopm-v1.0.0/bash-completion
--- old/wlopm-v0.1.0/bash-completion    1970-01-01 01:00:00.000000000 +0100
+++ new/wlopm-v1.0.0/bash-completion    2024-12-05 04:07:02.000000000 +0100
@@ -0,0 +1,14 @@
+function __wlopm_completion ()
+{
+    case "${COMP_WORDS[-2]}" in
+       "--on"|"--off"|"--toggle")
+           OPTS="$(wlopm | cut -d' ' -f1 | tr '\n' ' ')"
+           ;;
+
+       *)
+           OPTS="-h --help -j --json -v --version --on --off --toggle"
+           ;;
+    esac
+    COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[${COMP_CWORD}]}"))
+}
+complete -F __wlopm_completion wlopm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlopm-v0.1.0/wlopm.1 new/wlopm-v1.0.0/wlopm.1
--- old/wlopm-v0.1.0/wlopm.1    2022-06-01 18:00:45.000000000 +0200
+++ new/wlopm-v1.0.0/wlopm.1    2024-12-05 04:07:02.000000000 +0100
@@ -74,7 +74,7 @@
 .
 .SH OUTPUT NAMES
 .P
-Output names are compositor dependand.
+Output names are compositor dependent.
 .P
 If instead of an output name \fB*\fR is given as parameter to an operation,
 wlopm will do the operation for all discovered outputs.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wlopm-v0.1.0/wlopm.c new/wlopm-v1.0.0/wlopm.c
--- old/wlopm-v0.1.0/wlopm.c    2022-06-01 18:00:45.000000000 +0200
+++ new/wlopm-v1.0.0/wlopm.c    2024-12-05 04:07:02.000000000 +0100
@@ -16,7 +16,6 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
-#include <ctype.h>
 #include <errno.h>
 #include <signal.h>
 #include <stdbool.h>
@@ -35,7 +34,7 @@
 
 #include "wlr-output-power-management-unstable-v1.h"
 
-#define VERSION "0.1.0"
+#define VERSION "1.0.0"
 
 const char usage[] =
        "Usage: wlopm [options...]\n"
@@ -93,8 +92,6 @@
 int ret = EXIT_SUCCESS;
 bool loop = true;
 
-static void noop () {}
-
 static void wlr_output_power_handle_mode (void *data, struct 
zwlr_output_power_v1 *wlr_output_power,
                enum zwlr_output_power_v1_mode mode)
 {
@@ -122,13 +119,43 @@
        output->name = strdup(name);
 }
 
+static void wl_output_handle_geometry (void *data, struct wl_output *wl_output,
+               int32_t x, int32_t y, int32_t physical_width, int32_t 
physical_height,
+               int32_t subpixel, const char* make, const char* model, int32_t 
transform)
+{
+       /* This function is deliberately left empty. */
+}
+
+static void wl_output_handle_mode (void *data, struct wl_output *wl_output,
+               uint32_t flags, int32_t width, int32_t height, int32_t refresh)
+{
+       /* This function is deliberately left empty. */
+}
+
+static void wl_output_handle_scale (void *data, struct wl_output *wl_output,
+               int32_t scale)
+{
+       /* This function is deliberately left empty. */
+}
+
+static void wl_output_handle_description (void *data, struct wl_output 
*wl_output,
+               const char *description)
+{
+       /* This function is deliberately left empty. */
+}
+
+static void wl_output_handle_done (void *data, struct wl_output *wl_output)
+{
+       /* This function is deliberately left empty. */
+}
+
 static const struct wl_output_listener wl_output_listener = {
        .name        = wl_output_handle_name,
-       .geometry    = noop,
-       .mode        = noop,
-       .scale       = noop,
-       .description = noop,
-       .done        = noop,
+       .geometry    = wl_output_handle_geometry,
+       .mode        = wl_output_handle_mode,
+       .scale       = wl_output_handle_scale,
+       .description = wl_output_handle_description,
+       .done        = wl_output_handle_done,
 };
 
 static void registry_handle_global (void *data, struct wl_registry *registry,
@@ -151,7 +178,7 @@
                        return;
                }
 
-               output->wl_output = wl_registry_bind(registry, name, 
+               output->wl_output = wl_registry_bind(registry, name,
                                &wl_output_interface, 4);
                wl_output_add_listener(output->wl_output, &wl_output_listener, 
output);
                output->wlr_output_power = NULL;
@@ -165,9 +192,15 @@
                                &zwlr_output_power_manager_v1_interface, 
version);
 }
 
+static void registry_handle_global_remove (void *data, struct wl_registry 
*registry,
+    uint32_t name)
+{
+       /* We don't run long enough to care. */
+}
+
 static const struct wl_registry_listener registry_listener = {
        .global        = registry_handle_global,
-       .global_remove = noop, /* We don't run long enough to care. */
+       .global_remove = registry_handle_global_remove,
 };
 
 static void sync_handle_done (void *data, struct wl_callback *wl_callback, 
uint32_t other_data);
@@ -570,4 +603,3 @@
 
        return ret;
 }
-

Reply via email to