[packages/ltunify] Up to 0.3
arekm
arekm at pld-linux.org
Sat Nov 28 17:48:03 CET 2026
commit ca80f631c00cab4de2654b70e5abae274a4d2991
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:17:54 2026 +0100
Up to 0.3
ltunify-ldflags.patch | 22 ++++++++++++++++++++++
ltunify.spec | 11 ++++++-----
2 files changed, 28 insertions(+), 5 deletions(-)
---
diff --git a/ltunify.spec b/ltunify.spec
index b8e0b93..1b77cec 100644
--- a/ltunify.spec
+++ b/ltunify.spec
@@ -1,12 +1,12 @@
Summary: Logitech Unifying for Linux
Name: ltunify
-Version: 0.2
-Release: 2
+Version: 0.3
+Release: 1
License: GPL v2
Group: Applications/System
-# git clone https://git.lekensteyn.nl/ltunify.git
-Source0: %{name}-%{version}.tar.xz
-# Source0-md5: 7f13f1f3b9603f58629e16cfe91bf485
+Source0: https://git.lekensteyn.nl/ltunify/snapshot/%{name}-%{version}.tar.gz
+# Source0-md5: 28544d387d000a728282f8647feb90d6
+Patch0: %{name}-ldflags.patch
URL: https://lekensteyn.nl/logitech-unifying.html
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,6 +20,7 @@ and mice that use the Logitech® Unifying receiver.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__make} \
diff --git a/ltunify-ldflags.patch b/ltunify-ldflags.patch
new file mode 100644
index 0000000..123f511
--- /dev/null
+++ b/ltunify-ldflags.patch
@@ -0,0 +1,22 @@
+# upstream Makefile never passes LDFLAGS to the link command
+diff --git a/Makefile b/Makefile
+index 8116950..042600e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -17,14 +17,14 @@ else
+ endif
+
+ %: %.c
+- $(CC) $(CFLAGS) -o $(OUTDIR)$@ $<
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTDIR)$@ $<
+
+ all: ltunify read-dev-usbmon
+
+ read-dev-usbmon: read-dev-usbmon.c hidraw.c
+
+ ltunify: ltunify.c hidpp20.c
+- $(CC) $(CFLAGS) -o $(OUTDIR)$@ $< -lrt $(LTUNIFY_DEFINES)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(OUTDIR)$@ $< -lrt $(LTUNIFY_DEFINES)
+
+ .PHONY: all clean install-home install install-udevrule uninstall
+ clean:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ltunify.git/commitdiff/ca80f631c00cab4de2654b70e5abae274a4d2991
More information about the pld-cvs-commit
mailing list