public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/lprint] f45: 1.4.0 (fedora#2548928)
Date: Fri, 27 Nov 2026 10:21:15 GMT [thread overview]
Message-ID: <179577487559.1.11868045105571864150.rpms-lprint-0ef3ffbf787a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/lprint
Branch : f45
Commit : 0ef3ffbf787a8d1d5f9aa75dcd87a8fdb023307c
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date : 2026-11-27T11:19:45+01:00
Stats : +8/-154 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/lprint/c/0ef3ffbf787a8d1d5f9aa75dcd87a8fdb023307c?branch=f45
Log:
1.4.0 (fedora#2548928)
---
diff --git a/.gitignore b/.gitignore
index adad779..85b47d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/lprint-1.1.0.tar.gz
/lprint-1.2.0.tar.gz
/lprint-1.3.1.tar.gz
+/lprint-1.4.0.tar.gz
diff --git a/0001-Update-state-filename-to-current-PAPPL-standard-rena.patch b/0001-Update-state-filename-to-current-PAPPL-standard-rena.patch
deleted file mode 100644
index c675115..0000000
--- a/0001-Update-state-filename-to-current-PAPPL-standard-rena.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-From 648bc2017192fe84c94ab6929c8def982069a8f7 Mon Sep 17 00:00:00 2001
-From: Michael R Sweet <msweet@msweet.org>
-Date: Sun, 18 Feb 2024 19:09:51 -0500
-Subject: [PATCH] Update state filename to current PAPPL standard, rename old
- state filenames (Issue #129)
-
----
- CHANGES.md | 2 +-
- lprint.c | 39 +++++++++++++++++++++++++++++++++------
- 2 files changed, 34 insertions(+), 7 deletions(-)
-
- v1.3.1 - February 9, 2024
-diff --git a/lprint.c b/lprint.c
-index 81c542a..435e9aa 100644
---- a/lprint.c
-+++ b/lprint.c
-@@ -465,6 +465,7 @@ system_cb(
- *logfile, // Log file, if any
- *spooldir, // Spool directory, if any
- *system_name; // System name, if any
-+ char oldfile[1024]; // Old configuration filename
- pappl_loglevel_t loglevel; // Log level
- int port = 0; // Port number, if any
- pappl_soptions_t soptions = PAPPL_SOPTIONS_MULTI_QUEUE | PAPPL_SOPTIONS_WEB_INTERFACE | PAPPL_SOPTIONS_WEB_LOG | PAPPL_SOPTIONS_WEB_SECURITY;
-@@ -554,27 +555,31 @@ system_cb(
- if ((val = getenv("SNAP_DATA")) != NULL)
- {
- snprintf(lprint_spooldir, sizeof(lprint_spooldir), "%s/lprint.d", val);
-- snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/lprint.conf", val);
-+ snprintf(oldfile, sizeof(oldfile), "%s/lprint.conf", val);
-+ snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/lprint.state", val);
-
- if (!spooldir)
- spooldir = lprint_spooldir;
- }
- else if ((val = getenv("XDG_DATA_HOME")) != NULL)
- {
-- snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/.lprint.conf", val);
-+ snprintf(oldfile, sizeof(oldfile), "%s/.lprint.conf", val);
-+ snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/lprint.state", val);
- }
- #ifdef _WIN32
- else if ((val = getenv("USERPROFILE")) != NULL)
- {
- snprintf(lprint_spooldir, sizeof(lprint_spooldir), "%s/AppData/Local/lprint.d", val);
-- snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/AppData/Local/lprint.ini", val);
-+ snprintf(oldfile, sizeof(oldfile), "%s/AppData/Local/lprint.ini", val);
-+ snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/AppData/Local/lprint.state", val);
-
- if (!spooldir)
- spooldir = lprint_spooldir;
- }
- else
- {
-- papplCopyString(lprint_statefile, "/lprint.ini", sizeof(lprint_statefile));
-+ papplCopyString(oldfile, "/lprint.ini", sizeof(oldfile));
-+ papplCopyString(lprint_statefile, "/lprint.state", sizeof(lprint_statefile));
- }
- #else
- else if ((val = getenv("HOME")) != NULL)
-@@ -586,15 +591,37 @@ system_cb(
- if (!spooldir)
- spooldir = lprint_spooldir;
- # else
-- snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/.lprint.conf", val);
-+ snprintf(oldfile, sizeof(oldfile), "%s/.config", val);
-+ if (access(oldfile, 0))
-+ {
-+ if (mkdir(oldfile, 0777))
-+ {
-+ perror(oldfile);
-+ return (NULL);
-+ }
-+ }
-+
-+ snprintf(oldfile, sizeof(oldfile), "%s/.lprint.conf", val);
-+ snprintf(lprint_statefile, sizeof(lprint_statefile), "%s/.config/lprint.state", val);
- # endif // __APPLE__
- }
- else
- {
-- papplCopyString(lprint_statefile, "/etc/lprint.conf", sizeof(lprint_statefile));
-+ papplCopyString(oldfile, "/etc/lprint.conf", sizeof(oldfile));
-+# ifdef __APPLE__
-+ papplCopyString(lprint_statefile, "/private/var/lib/lprint.state", sizeof(lprint_statefile));
-+# else
-+ papplCopyString(lprint_statefile, "/var/lib/lprint.state", sizeof(lprint_statefile));
-+# endif // __APPLE__
- }
- #endif // _WIN32
-
-+ if (!access(oldfile, 0) && access(lprint_statefile, 0))
-+ {
-+ // Move old state file to new name...
-+ rename(oldfile, lprint_statefile);
-+ }
-+
- if (spooldir && access(spooldir, 0))
- {
- if (mkdir(spooldir, 0777))
---
-2.43.2
-
diff --git a/0001-lprint.c-Enable-TLS-support-in-Web-UI.patch b/0001-lprint.c-Enable-TLS-support-in-Web-UI.patch
deleted file mode 100644
index 709bcc7..0000000
--- a/0001-lprint.c-Enable-TLS-support-in-Web-UI.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 641efd2de2c57d06389b869943aaf7517d52645c Mon Sep 17 00:00:00 2001
-From: Zdenek Dohnal <zdohnal@redhat.com>
-Date: Tue, 6 Aug 2024 15:16:27 +0200
-Subject: [PATCH] lprint.c: Enable TLS support in Web UI
-
-Currently (1.3.1) there is no way how to turn TLS web UI pages, because
-system callback does not set WEB_TLS option by default, and checks only
-for `no-tls` when processing server options.
-
-This can be fixed by two way, depending on which default settings we
-prefer. The PR enables TLS pages by default, leaving to user whether he
-wants them to be disabled.
-
-Do let me know if you would prefer the other way around.
----
- lprint.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/lprint.c b/lprint.c
-index 435e9aa..8990379 100644
---- a/lprint.c
-+++ b/lprint.c
-@@ -468,7 +468,7 @@ system_cb(
- char oldfile[1024]; // Old configuration filename
- pappl_loglevel_t loglevel; // Log level
- int port = 0; // Port number, if any
-- pappl_soptions_t soptions = PAPPL_SOPTIONS_MULTI_QUEUE | PAPPL_SOPTIONS_WEB_INTERFACE | PAPPL_SOPTIONS_WEB_LOG | PAPPL_SOPTIONS_WEB_SECURITY;
-+ pappl_soptions_t soptions = PAPPL_SOPTIONS_MULTI_QUEUE | PAPPL_SOPTIONS_WEB_INTERFACE | PAPPL_SOPTIONS_WEB_LOG | PAPPL_SOPTIONS_WEB_SECURITY | PAPPL_SOPTIONS_WEB_TLS;
- // System options
- static pappl_version_t versions[1] = // Software versions
- {
-@@ -527,7 +527,7 @@ system_cb(
- else if (!strcmp(valptr, "web-security") || !strncmp(valptr, "web-security,", 13))
- soptions |= PAPPL_SOPTIONS_WEB_SECURITY;
- else if (!strcmp(valptr, "no-tls") || !strncmp(valptr, "no-tls,", 7))
-- soptions |= PAPPL_SOPTIONS_NO_TLS;
-+ soptions &= (pappl_soptions_t)~PAPPL_SOPTIONS_WEB_TLS;
-
- if ((valptr = strchr(valptr, ',')) != NULL)
- valptr ++;
---
-2.45.2
-
diff --git a/lprint.spec b/lprint.spec
index e2b61d6..1b99700 100644
--- a/lprint.spec
+++ b/lprint.spec
@@ -2,8 +2,8 @@
%global _hardened_build 1
Name: lprint
-Version: 1.3.1
-Release: 15%{?dist}
+Version: 1.4.0
+Release: 1%{?dist}
Summary: A Label Printer Application
License: Apache-2.0
@@ -13,11 +13,7 @@ Source1: lprint.conf
# UPSTREAM PATCHES
-# fix putting state file into correct place
-# https://github.com/michaelrsweet/lprint/commit/648bc20171
-Patch001: 0001-Update-state-filename-to-current-PAPPL-standard-rena.patch
-# https://github.com/michaelrsweet/lprint/pull/151
-Patch002: 0001-lprint.c-Enable-TLS-support-in-Web-UI.patch
+
# uses CUPS API for arrays, options, rastering, HTTP, IPP support
BuildRequires: pkgconfig(cups) >= 2.4.0
@@ -218,6 +214,9 @@ fi
%changelog
+* Fri Nov 27 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.4.0-1
+- 1.4.0 (fedora#2548928)
+
* Mon Nov 23 2026 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-15
- fix the upgrade script, remove auth options
diff --git a/sources b/sources
index fc23a9b..a9b406b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lprint-1.3.1.tar.gz) = 9bb174f8325231cf2fbe194f4d2fca8197aa74f296d7e58b53defe26108bc1aeca7fb73b91634b0e2cf012701f57cd074808fad8472cc5a9878faabefe8c158f
+SHA512 (lprint-1.4.0.tar.gz) = ebece8252cdcb057944e41252e4184a706c8646c574225eda72f682afd772ffd9937049e64af2da5617fd8adda4c5f0cf1d228f1719d6d1f094f632ce2325947
next reply other threads:[~2026-11-27 10:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 10:21 Zdenek Dohnal [this message]
2026-11-27 10:41 [rpms/lprint] f45: 1.4.0 (fedora#2548928) Zdenek Dohnal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179577487559.1.11868045105571864150.rpms-lprint-0ef3ffbf787a@fedoraproject.org \
--to=zdohnal@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox