public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Akira TAGOH <tagoh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/paps] rawhide: New upstream release
Date: Mon, 05 Oct 2026 02:49:07 GMT	[thread overview]
Message-ID: <179116854710.1.16262189989481448215.rpms-paps-52bd50fb3c0d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/paps
            Branch : rawhide
            Commit : 52bd50fb3c0d8af04a8986bc625a56eed9fca450
            Author : Akira TAGOH <tagoh@redhat.com>
            Date   : 2026-10-05T11:47:41+09:00
            Stats  : +17/-167 in 7 file(s)
            URL    : https://src.fedoraproject.org/rpms/paps/c/52bd50fb3c0d8af04a8986bc625a56eed9fca450?branch=rawhide

            Log:
            New upstream release

- Resolves: rhbz#2545598

---
diff --git a/.gitignore b/.gitignore
index 02bab9d..aedccf5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 *bz2
 paps-0.6.6.tar.gz
 paps-0.6.8.tar.gz
+/paps-0.8.1.tar.xz

diff --git a/paps-fix-build.patch b/paps-fix-build.patch
deleted file mode 100644
index e77f387..0000000
--- a/paps-fix-build.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From e2180b2e1493abc2a8d1165e10bf264d50fac0ae Mon Sep 17 00:00:00 2001
-From: Akira TAGOH <akira@tagoh.org>
-Date: Wed, 1 Mar 2023 15:24:27 +0900
-Subject: [PATCH] Fix the build issue
-
-Some code ignores a return value of g_string_free() and that causes:
-
-ignoring return value of 'gchar* g_string_free_and_steal(GString*)' declared with attribute 'warn_unused_result' [-Wunused-result]
-
-This fixes it.
----
- src/paps.cc | 21 ++++++++++++---------
- 1 file changed, 12 insertions(+), 9 deletions(-)
-
-diff --git a/src/paps.cc b/src/paps.cc
-index cb48ddc..429b764 100644
---- a/src/paps.cc
-+++ b/src/paps.cc
-@@ -368,6 +368,7 @@ copy_pango_parse_enum (GType       type,
- 	{
- 	  int i;
- 	  GString *s = g_string_new (nullptr);
-+	  gchar *gstr;
- 
- 	  for (i = 0, v = g_enum_get_value (klass, i); v;
- 	       i++  , v = g_enum_get_value (klass, i))
-@@ -382,10 +383,10 @@ copy_pango_parse_enum (GType       type,
- 		       G_ENUM_CLASS_TYPE_NAME(klass),
- 		       s->str);
- 
--	  if (possible_values)
--	    *possible_values = s->str;
-+	  gstr = g_string_free (s, possible_values ? false : true);
- 
--	  g_string_free (s, possible_values ? false : true);
-+	  if (possible_values)
-+	    *possible_values = gstr;
- 	}
-     }
- 
-@@ -1001,7 +1002,7 @@ read_file (FILE   *file,
-       if (ferror (file))
-         {
-           fprintf(stderr, _("%s: Error reading file.\n"), g_get_prgname ());
--          g_string_free (inbuf, true);
-+          (void) g_string_free (inbuf, true);
-           exit(1);
-         }
-       else if (bp == nullptr)
-@@ -1043,8 +1044,7 @@ read_file (FILE   *file,
-   if (inbuf->len && inbuf->str[inbuf->len-1] != '\n')
-     g_string_append(inbuf, "\n");
- 
--  text = inbuf->str;
--  g_string_free (inbuf, false);
-+  text = g_string_free (inbuf, false);
- 
-   if (encoding != nullptr && cvh != nullptr)
-     g_iconv_close(cvh);
-@@ -1671,7 +1671,11 @@ get_date()
-       fprintf(stderr, _("%1$s: Error while converting date string from '%2$s' to UTF-8.\n"),
-         g_get_prgname(), get_encoding());
-       /* Return the unconverted string. */
--      g_string_free(inbuf, false);
-+      /*
-+       * inbuf isn't used here, but a few memory is
-+       * allocated by default. so it should be freed anyway.
-+       */
-+      (void) g_string_free(inbuf, true);
-       g_iconv_close(cvh);
-       return date;
-     }
-@@ -1679,8 +1683,7 @@ get_date()
-     obuffer[BUFSIZE * 6 - 1 - oblen] = 0;
-     g_string_append(inbuf, bp);
- 
--    date_utf8 = inbuf->str;
--    g_string_free(inbuf, false);
-+    date_utf8 = g_string_free(inbuf, false);
-     g_iconv_close(cvh);
-   }
- 
--- 
-2.39.2
-

diff --git a/paps-fix-src-to-paps.patch b/paps-fix-src-to-paps.patch
deleted file mode 100644
index d18f8af..0000000
--- a/paps-fix-src-to-paps.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -pruN paps-0.8.0.orig/scripts/src-to-paps paps-0.8.0/scripts/src-to-paps
---- paps-0.8.0.orig/scripts/src-to-paps	2023-02-09 16:27:38.000000000 +0900
-+++ paps-0.8.0/scripts/src-to-paps	2023-03-01 15:00:27.801416563 +0900
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/python3
- 
- ######################################################################
- #  Use GNU source-hightlight to turn source code into pango markup
-@@ -49,7 +49,7 @@ def arg_if_not_none(param_name, val):
- # Defaults
- 
- # TBD - Make this a configuration variable
--pango_outlang_path = '/usr/local/share/paps/pango_markup.outlang'
-+pango_outlang_path = '/usr/share/paps/pango_markup.outlang'
- 
- parser = argparse.ArgumentParser(description='Process a file')
- parser.add_argument('-o', '--output',

diff --git a/paps-fmt12-localtime.patch b/paps-fmt12-localtime.patch
deleted file mode 100644
index d23c812..0000000
--- a/paps-fmt12-localtime.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/src/format_from_dict.cc	2026-04-02 23:01:38.902327393 +0000
-+++ src/format_from_dict.cc	2026-04-02 23:01:38.903008230 +0000
-@@ -54,7 +54,10 @@
-     time_t val = get<time_t>(scalar);
-     if (!spec.length())
-       return to_string(val);
--    return format(runtime(format("{{:{}}}", spec)), fmt::localtime(val));
-+    const auto *tm = std::localtime(&val);
-+    if (tm == nullptr)
-+      return {};
-+    return format(runtime(format("{{:{}}}", spec)), *tm);
-   }
-   throw runtime_error("Unrecognized type!"); // I shouldn't be here!
- }

diff --git a/paps-glib282.patch b/paps-glib282.patch
deleted file mode 100644
index 23bd2b4..0000000
--- a/paps-glib282.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-g_utf8_next_char no longer includes a cast to char* as of 2.81.0:
-
-https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4016
-
-diff -up a/src/paps.cc b/src/paps.cc
---- a/src/paps.cc	2024-09-12 19:21:02.858439427 -0400
-+++ b/src/paps.cc	2024-09-12 21:15:46.905955152 -0400
-@@ -1115,7 +1115,7 @@ split_text_into_paragraphs (PangoContext
-       while (p != nullptr && *p)
-         {
-           wc = g_utf8_get_char (p);
--          next = g_utf8_next_char (p);
-+          next = (char *) g_utf8_next_char (p);
-           if (wc == (gunichar)-1)
-             {
-               fprintf (stderr, _("%s: Invalid character in input\n"), g_get_prgname ());
-@@ -1130,7 +1130,7 @@ split_text_into_paragraphs (PangoContext
-               para->length = p - last_para;
-               /* handle dos line breaks */
-               if (wc == '\r' && *next == '\n')
--                  next = g_utf8_next_char(next);
-+                  next = (char *) g_utf8_next_char(next);
-               para->layout = pango_layout_new (pango_context);
- 
-               if (page_layout->cpi > 0.0L)
-@@ -1201,7 +1201,7 @@ split_text_into_paragraphs (PangoContext
-                       g_free (newtext);
- 
-                       para->length = i;
--                      next = g_utf8_offset_to_pointer (para->text, para->length);
-+                      next = (char *) g_utf8_offset_to_pointer (para->text, para->length);
-                       wc = g_utf8_get_char (g_utf8_prev_char (next));
-                     }
-                   else

diff --git a/paps.spec b/paps.spec
index a88a6b1..f3fe9cd 100644
--- a/paps.spec
+++ b/paps.spec
@@ -1,15 +1,17 @@
 Name:           paps
-Version:        0.8.0
+Version:        0.8.1
 Release:        %autorelease
 
 License:        LGPL-2.0-or-later
 URL:            https://github.com/dov/paps
-Source0:        https://github.com/dov/paps/archive/v%{name}/%{name}-%{version}.tar.gz
+Source0:        https://github.com/dov/paps/archive/v%{name}/%{name}-%{version}.tar.xz
 Source1:        paps.convs
 Source2:        29-paps.conf
 Source3:        http://downloads.sourceforge.net/%{name}/%{name}-0.6.8.tar.gz
 BuildRequires:  make
 BuildRequires:  pango-devel automake autoconf libtool doxygen cups-devel intltool
+BuildRequires:	meson
+BuildRequires:	libpaper-devel
 BuildRequires:  fmt-devel gcc-c++
 ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241
 Patch0:         paps-0.6.8-shared.patch
@@ -46,11 +48,8 @@ Patch61:	%{name}-fix-paper-size-truncate.patch
 Patch62:	paps-c99.patch
 Patch63:	paps-0.6.8-glib282.patch
 Patch64:	paps-0.6.8-ftbfs.patch
-### For paps
-Patch100:	%{name}-fix-src-to-paps.patch
-Patch101:	%{name}-fix-build.patch
-Patch102:	%{name}-glib282.patch
-Patch103:	%{name}-fmt12-localtime.patch
+Patch65:	paps068-fix-glib.patch
+### For paps (100-)
 
 Summary:        Plain Text to PostScript converter
 %description
@@ -70,10 +69,6 @@ This package contains a CUPS filter based on paps.
 
 %prep
 %setup -q -a 3
-%patch 100 -p1 -b .src-to-paps
-%patch 101 -p1 -b .build
-%patch 102 -p1 -b .glib282
-%patch 103 -p1 -b .fmt12
 pushd %{name}-0.6.8
 %patch 0 -p1 -b .shared
 %patch 1 -p1 -b .wordwrap
@@ -96,19 +91,19 @@ pushd %{name}-0.6.8
 %patch 62 -p2 -b .configure-c99
 %patch 63 -p1 -b .glib282
 %patch 64 -p1 -b .ftbfs
+%patch 65 -p1 -b .glib
 libtoolize -f -c
 autoreconf -f -i
 popd
 
 
 %build
-./autogen.sh
 %set_build_flags
 %if 0%{?rhel}
 CXXFLAGS="$CXXFLAGS -DFMT_HEADER_ONLY"
 %endif
-%configure --disable-static
-make %{?_smp_mflags}
+%meson
+%meson_build
 
 pushd %{name}-0.6.8
 %configure --disable-static
@@ -137,7 +132,12 @@ rm -rf $RPM_BUILD_ROOT%{_includedir}
 rm $RPM_BUILD_ROOT%{_libdir}/libpaps.so
 popd
 
-make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p"
+%meson_install
+
+
+%check
+%meson_test
+
 
 %ldconfig_scriptlets libs
 

diff --git a/sources b/sources
index fcb89c4..9de34c0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
 SHA512 (paps-0.6.8.tar.gz) = db657d90179e11fe42bbcdbebe09a84f1927c99d0b539c9e29b66b3cb8ffcf33ff500c9d81835ae5a0880382bf8f24801f04742517b76b8e005b125a139d8bba
-SHA512 (paps-0.8.0.tar.gz) = 33afad0e3dae9cef0fb3afb9994650bf1a7326e72782346e05ab91f7c84f092145247658cdf57868105df47a1bd08e1a961c1ef4c07a2a8fd01eaf8ecd9d948a
+SHA512 (paps-0.8.1.tar.xz) = 2fc4253d8ab95aeb8512e2009a7e7c44c810f219470bfae4ae628ed4295fd9ed35f6ed902377d1c539e265b4d94f681d362a0a9b87067c8ed3625ebd7d7e1b6b

                 reply	other threads:[~2026-10-05  2:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179116854710.1.16262189989481448215.rpms-paps-52bd50fb3c0d@fedoraproject.org \
    --to=tagoh@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