[packages/libinklevel] Up to 0.9.7; fix build
arekm
arekm at pld-linux.org
Mon Aug 25 10:58:20 CEST 2025
commit ca24a272f67792c88c3c4983d74b6367d827e8fa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Aug 25 10:58:13 2025 +0200
Up to 0.9.7; fix build
build.patch | 11 +++++++++++
libinklevel.spec | 8 +++++---
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/libinklevel.spec b/libinklevel.spec
index 81afcf4..dcbfa39 100644
--- a/libinklevel.spec
+++ b/libinklevel.spec
@@ -5,13 +5,14 @@
Summary: Library for checking ink level of a printer
Summary(pl.UTF-8): Biblioteka do sprawdzania poziomu atramentu drukarki
Name: libinklevel
-Version: 0.9.5
-Release: 2
+Version: 0.9.7
+Release: 1
License: GPL v2
Group: Libraries
Source0: https://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz
-# Source0-md5: d08678cdc060fcc0e7c65b3645d03821
+# Source0-md5: feae3695b766e587569bc9acf8753857
Patch0: %{name}-parport.patch
+Patch1: build.patch
URL: https://libinklevel.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -67,6 +68,7 @@ Statyczna biblioteka libinklevel.
%if %{with parport}
%patch -P0 -p1
%endif
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..c0a2112
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,11 @@
+--- libinklevel-0.9.7/bjnp-debug.c~ 2023-01-11 22:32:06.000000000 +0100
++++ libinklevel-0.9.7/bjnp-debug.c 2025-08-25 10:53:19.655285960 +0200
+@@ -67,7 +67,7 @@ void bjnp_get_time (time_t * sec, uint32
+ bjnp_loglevel_t str2level (char *level);
+ char * level2str (bjnp_loglevel_t level);
+
+-#ifndef NDEBUG
++#if 1
+
+ static void
+ u8tohex (uint8_t x, char *str)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libinklevel.git/commitdiff/ca24a272f67792c88c3c4983d74b6367d827e8fa
More information about the pld-cvs-commit
mailing list