From fbf777aee32a885cbe4b053deee6ab858cc374ea Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 21 Apr 2008 07:09:28 +0000 Subject: [PATCH 01/87] Initialize branch F-9 for paps --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..1c26f78 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-9 From b4b5931a224de4cf9e99cea7eaf35eb58dd0526d Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 16 May 2008 02:43:31 +0000 Subject: [PATCH 02/87] - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) --- paps-cups.patch | 79 ++++++++++--------- ...ompliant.patch => paps-dsc-compliant.patch | 24 +++--- paps.spec | 7 +- 3 files changed, 58 insertions(+), 52 deletions(-) rename paps-0.6.8-dsc-compliant.patch => paps-dsc-compliant.patch (81%) diff --git a/paps-cups.patch b/paps-cups.patch index 88fa9a4..9d00ec6 100644 --- a/paps-cups.patch +++ b/paps-cups.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in --- paps-0.6.8.orig/configure.in 2007-01-19 20:06:10.000000000 +0900 -+++ paps-0.6.8/configure.in 2007-11-30 18:40:32.000000000 +0900 ++++ paps-0.6.8/configure.in 2008-05-15 22:46:49.000000000 +0900 @@ -7,6 +7,19 @@ AC_LANG_C AC_PROG_CC AM_PROG_LIBTOOL @@ -22,8 +22,8 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in DX_CHM_FEATURE(OFF) DX_CHI_FEATURE(OFF) diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am ---- paps-0.6.8.orig/src/Makefile.am 2007-11-30 18:40:15.000000000 +0900 -+++ paps-0.6.8/src/Makefile.am 2007-11-30 18:40:32.000000000 +0900 +--- paps-0.6.8.orig/src/Makefile.am 2008-05-15 22:46:34.000000000 +0900 ++++ paps-0.6.8/src/Makefile.am 2008-05-15 22:46:49.000000000 +0900 @@ -5,10 +5,10 @@ libpapsinc_HEADERS = libpaps.h libpapsincdir = $(includedir) @@ -38,8 +38,8 @@ diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am EXTRA_DIST = test_libpaps.c paps.1 diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2007-11-30 18:40:15.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2007-11-30 18:47:28.000000000 +0900 +--- paps-0.6.8.orig/src/paps.c 2008-05-15 22:46:34.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-05-15 22:48:42.000000000 +0900 @@ -31,6 +31,7 @@ #include #include @@ -80,7 +80,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Set locale from environment. */ setlocale(LC_ALL, ""); -@@ -348,6 +353,134 @@ int main(int argc, char *argv[]) +@@ -348,6 +353,128 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries(ctxt, entries, NULL); #endif @@ -148,14 +148,8 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + if ((val = cupsGetOption("landscape", num_options, options)) != NULL) { + if (g_ascii_strcasecmp(val, "no") && + g_ascii_strcasecmp(val, "off") && -+ g_ascii_strcasecmp(val, "false")) { -+ /* We really need to deal with the landscape orientation because -+ * pstops doesn't deal with the position where it should appears. -+ * However this causes the unnecessary rotation by pstops. so paps -+ * will puts the fake Orientation tag and stop rotating in PS. -+ */ ++ g_ascii_strcasecmp(val, "false")) + do_landscape = TRUE; -+ } + } + /* XXX: need to support orientation-requested? */ + if ((val = cupsGetOption("page-left", num_options, options)) != NULL) { @@ -215,7 +209,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Parse command line */ if (!g_option_context_parse(ctxt, &argc, &argv, &error)) { -@@ -374,6 +507,8 @@ int main(int argc, char *argv[]) +@@ -374,6 +501,8 @@ int main(int argc, char *argv[]) IN = stdin; } title = filename_in; @@ -224,7 +218,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c paps = paps_new(); pango_context = paps_get_pango_context (paps); -@@ -392,8 +527,10 @@ int main(int argc, char *argv[]) +@@ -392,8 +521,10 @@ int main(int argc, char *argv[]) pango_context_set_font_description (pango_context, font_description); /* Page layout */ @@ -237,7 +231,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c if (num_columns == 1) total_gutter_width = 0; -@@ -456,6 +593,8 @@ int main(int argc, char *argv[]) +@@ -456,6 +587,8 @@ int main(int argc, char *argv[]) page_layout.pango_dir = pango_dir; page_layout.filename = filename_in; page_layout.header_font_desc = header_font_desc; @@ -246,7 +240,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) -@@ -756,6 +895,12 @@ split_text_into_paragraphs (PangoContext +@@ -756,6 +889,12 @@ split_text_into_paragraphs (PangoContext if (wc == (gunichar)-1) { fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); @@ -259,15 +253,19 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c wc = 0; } if (!*p || !wc || wc == '\n' || wc == '\f') -@@ -925,6 +1070,7 @@ void print_postscript_header(FILE *OUT, +@@ -925,21 +1064,32 @@ void print_postscript_header(FILE *OUT, int orientation = page_layout->page_width > page_layout->page_height; int bb_page_width = page_layout->page_width; int bb_page_height = page_layout->page_height; + char *owner = NULL; /* Keep bounding box non-rotated to make ggv happy */ - if (orientation) -@@ -934,12 +1080,20 @@ void print_postscript_header(FILE *OUT, +- if (orientation) ++ /* ensure the correct bounding box for CUPS */ ++ if (orientation && !page_layout->cups_mode) + { + int tmp = bb_page_width; + bb_page_width = bb_page_height; bb_page_height = tmp; } @@ -281,6 +279,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + } fprintf(OUT, "%%!PS-Adobe-3.0\n" ++ "%s" "%%%%Title: %s\n" "%%%%Creator: paps version 0.6.7 by Dov Grobgeld\n" "%%%%Pages: (atend)\n" @@ -289,31 +288,35 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%%%%BeginProlog\n" "%%%%Orientation: %s\n" "/papsdict 1 dict def\n" -@@ -989,8 +1143,13 @@ void print_postscript_header(FILE *OUT, +@@ -961,7 +1111,7 @@ void print_postscript_header(FILE *OUT, + " pagewidth\n" + " /pagewidth pageheight def\n" + " /pageheight exch def\n" +- " /orientation 3 def\n" ++ " /orientation %d def\n" + " } if\n" + " 2 dict\n" + " dup /PageSize [pagewidth pageheight] put\n" +@@ -986,11 +1136,21 @@ void print_postscript_header(FILE *OUT, + " 90 rotate\n" + " 0 pageheight neg translate\n" + "} def\n", ++ /* ++ * Put %%cupsRotation tag to prevent the rotation in pstops. ++ * This breaks paps's behavior to make it in landscape say. ++ * (RH#222137) ++ */ ++ (page_layout->cups_mode ? "%cupsRotation: 0\n" : ""), title, bb_page_width, bb_page_height, - orientation_names[orientation] + owner, -+ /* Put the fake orientation tag if paps is currently running under -+ * the CUPS filter mode. (#222137) -+ */ -+ orientation_names[orientation && !page_layout->cups_mode] ++ orientation_names[orientation], ++ /* For landscape, rotate page to portrait orientation for CUPS (RH#222137) */ ++ page_layout->cups_mode ? 2 : 3 ); + g_free(owner); fprintf(OUT, "%% User settings\n" -@@ -1015,7 +1174,11 @@ void print_postscript_header(FILE *OUT, - page_layout->left_margin, - page_layout->page_height - bodytop, - bool_name[page_layout->do_separation_line>0], -- bool_name[page_layout->do_landscape>0], -+ /* just ignore the landscape flag when paps is currently running -+ * under the CUPS filter mode. this will stop rotating in PS that -+ * paps generates. (#222137) -+ */ -+ bool_name[page_layout->do_landscape>0 && !page_layout->cups_mode], - bool_name[page_layout->do_tumble>0], - bool_name[page_layout->do_duplex>0] - ); diff --git a/paps-0.6.8-dsc-compliant.patch b/paps-dsc-compliant.patch similarity index 81% rename from paps-0.6.8-dsc-compliant.patch rename to paps-dsc-compliant.patch index 702d52b..3da5f00 100644 --- a/paps-0.6.8-dsc-compliant.patch +++ b/paps-dsc-compliant.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/src/libpaps.c paps-0.6.8/src/libpaps.c ---- paps-0.6.8.orig/src/libpaps.c 2008-01-15 11:09:30.000000000 +0900 -+++ paps-0.6.8/src/libpaps.c 2008-01-15 11:10:10.000000000 +0900 +--- paps-0.6.8.orig/src/libpaps.c 2008-05-14 23:07:14.000000000 +0900 ++++ paps-0.6.8/src/libpaps.c 2008-05-14 23:11:12.000000000 +0900 @@ -118,7 +118,6 @@ gchar *paps_get_postscript_header_strdup gchar *ret_str; g_string_append_printf(paps->header, @@ -42,9 +42,9 @@ diff -pruN paps-0.6.8.orig/src/libpaps.c paps-0.6.8/src/libpaps.c } diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2008-01-15 11:09:30.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2008-01-15 11:10:46.000000000 +0900 -@@ -665,7 +665,7 @@ int main(int argc, char *argv[]) +--- paps-0.6.8.orig/src/paps.c 2008-05-14 23:07:14.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-05-14 23:12:53.000000000 +0900 +@@ -659,7 +659,7 @@ int main(int argc, char *argv[]) fprintf(OUT, "%s", paps_header); g_free(paps_header); @@ -53,7 +53,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c fprintf(OUT, "%s", ps_pages_string->str); print_postscript_trailer(OUT, num_pages); -@@ -1094,8 +1094,9 @@ void print_postscript_header(FILE *OUT, +@@ -1089,8 +1089,9 @@ void print_postscript_header(FILE *OUT, "%%%%Creator: paps version 0.6.7 by Dov Grobgeld\n" "%%%%Pages: (atend)\n" "%%%%BoundingBox: 0 0 %d %d\n%s" @@ -64,17 +64,17 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "/papsdict 1 dict def\n" "papsdict begin\n" "\n" -@@ -1139,7 +1140,8 @@ void print_postscript_header(FILE *OUT, +@@ -1134,7 +1135,8 @@ void print_postscript_header(FILE *OUT, "/turnpage {\n" " 90 rotate\n" " 0 pageheight neg translate\n" - "} def\n", + "} def\n" + "%%%%EndProlog\n", - title, - bb_page_width, - bb_page_height, -@@ -1152,6 +1154,7 @@ void print_postscript_header(FILE *OUT, + /* + * Put %%cupsRotation tag to prevent the rotation in pstops. + * This breaks paps's behavior to make it in landscape say. +@@ -1150,6 +1152,7 @@ void print_postscript_header(FILE *OUT, g_free(owner); fprintf(OUT, @@ -82,7 +82,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%% User settings\n" "/pagewidth %d def\n" "/pageheight %d def\n" -@@ -1238,8 +1241,8 @@ void print_postscript_trailer(FILE *OUT, +@@ -1232,8 +1235,8 @@ void print_postscript_trailer(FILE *OUT, int num_pages) { fprintf(OUT, diff --git a/paps.spec b/paps.spec index 7dadef4..820707c 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -19,7 +19,7 @@ Patch3: paps-0.6.6-lcnumeric.patch Patch4: paps-0.6.6-exitcode.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch -Patch52: paps-0.6.8-dsc-compliant.patch +Patch52: paps-dsc-compliant.patch Patch61: paps-0.6.6-fix-wcswidth.patch Summary: Plain Text to PostScript converter @@ -98,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri May 16 2008 Akira TAGOH - 0.6.8-6 +- paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) + * Tue Feb 12 2008 Akira TAGOH - 0.6.8-5 - Rebuild for gcc-4.3. From 97572382a39d96f88058da38122e81cb01b1da22 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 16 May 2008 11:45:01 +0000 Subject: [PATCH 03/87] - paps-autoconf262.patch: Fix an error on autoreconf. --- paps-autoconf262.patch | 24 ++++++++++++++++++++++++ paps.spec | 5 +++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 paps-autoconf262.patch diff --git a/paps-autoconf262.patch b/paps-autoconf262.patch new file mode 100644 index 0000000..1a1c16b --- /dev/null +++ b/paps-autoconf262.patch @@ -0,0 +1,24 @@ +diff -pruN paps-0.6.8.orig/acinclude.m4 paps-0.6.8/acinclude.m4 +--- paps-0.6.8.orig/acinclude.m4 2006-11-29 05:11:50.000000000 +0900 ++++ paps-0.6.8/acinclude.m4 2008-05-16 20:36:03.000000000 +0900 +@@ -76,9 +76,9 @@ AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEA + # Require the specified program to be found for the DX_CURRENT_FEATURE to work. + AC_DEFUN([DX_REQUIRE_PROG], [ + AC_PATH_TOOL([$1], [$2]) +-if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then ++if test "$DX_FLAG_DX_CURRENT_FEATURE$$1" = 1; then + AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION]) +- AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++ AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0) + fi + ]) + +@@ -101,7 +101,7 @@ test "$DX_FLAG_$1" = "$2" \ + # ---------------------------------------------------------- + # Turn off the DX_CURRENT_FEATURE if the required feature is off. + AC_DEFUN([DX_CLEAR_DEPEND], [ +-test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0) + ]) + + # DX_FEATURE_ARG(FEATURE, DESCRIPTION, diff --git a/paps.spec b/paps.spec index 820707c..552d3fc 100644 --- a/paps.spec +++ b/paps.spec @@ -20,7 +20,7 @@ Patch4: paps-0.6.6-exitcode.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch Patch52: paps-dsc-compliant.patch -Patch61: paps-0.6.6-fix-wcswidth.patch +Patch53: paps-autoconf262.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -55,7 +55,7 @@ applications using paps API. %patch50 -p1 -b .cups %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc -#%patch11 -p1 -b .wcswidth +%patch53 -p1 -b .autoconf262 autoreconf @@ -100,6 +100,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Fri May 16 2008 Akira TAGOH - 0.6.8-6 - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) +- paps-autoconf262.patch: Fix an error on autoreconf. * Tue Feb 12 2008 Akira TAGOH - 0.6.8-5 - Rebuild for gcc-4.3. From 57239163e279b5795a405a1fa400a9e20816d3e8 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 16 May 2008 12:03:54 +0000 Subject: [PATCH 04/87] clean up --- paps-0.6.6-fix-wcswidth.patch | 47 ----------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 paps-0.6.6-fix-wcswidth.patch diff --git a/paps-0.6.6-fix-wcswidth.patch b/paps-0.6.6-fix-wcswidth.patch deleted file mode 100644 index c6604c2..0000000 --- a/paps-0.6.6-fix-wcswidth.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2006-12-04 20:08:36.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2006-12-04 20:16:59.000000000 +0900 -@@ -712,7 +712,7 @@ - PangoRectangle ink_rect, logical_rect; - wchar_t *wtext, *wnewtext; - gchar *newtext; -- size_t i, len, wwidth = 0, n; -+ int i, len, wwidth = 0, n; - - wtext = (wchar_t *)g_utf8_to_ucs4 (para->text, para->length, NULL, NULL, NULL); - if (wtext == NULL) -@@ -722,11 +722,17 @@ - } - - len = wcswidth (wtext); -+ if (len < 0) -+ { -+ /* assuming that width of all characters in wtext may be 1 */ -+ len = wcslen (wtext); -+ } - /* the amount of characters to be able to put on the line against CPI */ - n = page_layout->column_width / 72.0 * cpi; - if (len > n) - { -- wnewtext = g_new (wchar_t, wcslen (wtext) + 1); -+ len = wcslen (wtext); -+ wnewtext = g_new (wchar_t, len + 1); - if (wnewtext == NULL) - { - fprintf (stderr, "Failed to allocate a memory.\n"); -@@ -735,7 +741,14 @@ - } - for (i = 0; i < len; i++) - { -- wwidth += wcwidth (wtext[i]); -+ int w = wcwidth (wtext[i]); -+ -+ if (w < 0) -+ { -+ /* assuming that a width of this character may be 1 */ -+ w = 1; -+ } -+ wwidth += w; - if (wwidth > n) - break; - wnewtext[i] = wtext[i]; From 7bf71e48b1264524f7d99b12f9339025c9958d7a Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 16 May 2008 12:04:09 +0000 Subject: [PATCH 05/87] - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) - paps-autoconf262.patch: Fix an error on autoreconf. --- paps-0.6.6-fix-wcswidth.patch | 47 ----------- paps-autoconf262.patch | 24 ++++++ paps-cups.patch | 79 ++++++++++--------- ...ompliant.patch => paps-dsc-compliant.patch | 24 +++--- paps.spec | 12 ++- 5 files changed, 85 insertions(+), 101 deletions(-) delete mode 100644 paps-0.6.6-fix-wcswidth.patch create mode 100644 paps-autoconf262.patch rename paps-0.6.8-dsc-compliant.patch => paps-dsc-compliant.patch (81%) diff --git a/paps-0.6.6-fix-wcswidth.patch b/paps-0.6.6-fix-wcswidth.patch deleted file mode 100644 index c6604c2..0000000 --- a/paps-0.6.6-fix-wcswidth.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2006-12-04 20:08:36.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2006-12-04 20:16:59.000000000 +0900 -@@ -712,7 +712,7 @@ - PangoRectangle ink_rect, logical_rect; - wchar_t *wtext, *wnewtext; - gchar *newtext; -- size_t i, len, wwidth = 0, n; -+ int i, len, wwidth = 0, n; - - wtext = (wchar_t *)g_utf8_to_ucs4 (para->text, para->length, NULL, NULL, NULL); - if (wtext == NULL) -@@ -722,11 +722,17 @@ - } - - len = wcswidth (wtext); -+ if (len < 0) -+ { -+ /* assuming that width of all characters in wtext may be 1 */ -+ len = wcslen (wtext); -+ } - /* the amount of characters to be able to put on the line against CPI */ - n = page_layout->column_width / 72.0 * cpi; - if (len > n) - { -- wnewtext = g_new (wchar_t, wcslen (wtext) + 1); -+ len = wcslen (wtext); -+ wnewtext = g_new (wchar_t, len + 1); - if (wnewtext == NULL) - { - fprintf (stderr, "Failed to allocate a memory.\n"); -@@ -735,7 +741,14 @@ - } - for (i = 0; i < len; i++) - { -- wwidth += wcwidth (wtext[i]); -+ int w = wcwidth (wtext[i]); -+ -+ if (w < 0) -+ { -+ /* assuming that a width of this character may be 1 */ -+ w = 1; -+ } -+ wwidth += w; - if (wwidth > n) - break; - wnewtext[i] = wtext[i]; diff --git a/paps-autoconf262.patch b/paps-autoconf262.patch new file mode 100644 index 0000000..1a1c16b --- /dev/null +++ b/paps-autoconf262.patch @@ -0,0 +1,24 @@ +diff -pruN paps-0.6.8.orig/acinclude.m4 paps-0.6.8/acinclude.m4 +--- paps-0.6.8.orig/acinclude.m4 2006-11-29 05:11:50.000000000 +0900 ++++ paps-0.6.8/acinclude.m4 2008-05-16 20:36:03.000000000 +0900 +@@ -76,9 +76,9 @@ AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEA + # Require the specified program to be found for the DX_CURRENT_FEATURE to work. + AC_DEFUN([DX_REQUIRE_PROG], [ + AC_PATH_TOOL([$1], [$2]) +-if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then ++if test "$DX_FLAG_DX_CURRENT_FEATURE$$1" = 1; then + AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION]) +- AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++ AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0) + fi + ]) + +@@ -101,7 +101,7 @@ test "$DX_FLAG_$1" = "$2" \ + # ---------------------------------------------------------- + # Turn off the DX_CURRENT_FEATURE if the required feature is off. + AC_DEFUN([DX_CLEAR_DEPEND], [ +-test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0) ++test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_DX_CURRENT_FEATURE], 0) + ]) + + # DX_FEATURE_ARG(FEATURE, DESCRIPTION, diff --git a/paps-cups.patch b/paps-cups.patch index 88fa9a4..9d00ec6 100644 --- a/paps-cups.patch +++ b/paps-cups.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in --- paps-0.6.8.orig/configure.in 2007-01-19 20:06:10.000000000 +0900 -+++ paps-0.6.8/configure.in 2007-11-30 18:40:32.000000000 +0900 ++++ paps-0.6.8/configure.in 2008-05-15 22:46:49.000000000 +0900 @@ -7,6 +7,19 @@ AC_LANG_C AC_PROG_CC AM_PROG_LIBTOOL @@ -22,8 +22,8 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in DX_CHM_FEATURE(OFF) DX_CHI_FEATURE(OFF) diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am ---- paps-0.6.8.orig/src/Makefile.am 2007-11-30 18:40:15.000000000 +0900 -+++ paps-0.6.8/src/Makefile.am 2007-11-30 18:40:32.000000000 +0900 +--- paps-0.6.8.orig/src/Makefile.am 2008-05-15 22:46:34.000000000 +0900 ++++ paps-0.6.8/src/Makefile.am 2008-05-15 22:46:49.000000000 +0900 @@ -5,10 +5,10 @@ libpapsinc_HEADERS = libpaps.h libpapsincdir = $(includedir) @@ -38,8 +38,8 @@ diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am EXTRA_DIST = test_libpaps.c paps.1 diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2007-11-30 18:40:15.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2007-11-30 18:47:28.000000000 +0900 +--- paps-0.6.8.orig/src/paps.c 2008-05-15 22:46:34.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-05-15 22:48:42.000000000 +0900 @@ -31,6 +31,7 @@ #include #include @@ -80,7 +80,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Set locale from environment. */ setlocale(LC_ALL, ""); -@@ -348,6 +353,134 @@ int main(int argc, char *argv[]) +@@ -348,6 +353,128 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries(ctxt, entries, NULL); #endif @@ -148,14 +148,8 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + if ((val = cupsGetOption("landscape", num_options, options)) != NULL) { + if (g_ascii_strcasecmp(val, "no") && + g_ascii_strcasecmp(val, "off") && -+ g_ascii_strcasecmp(val, "false")) { -+ /* We really need to deal with the landscape orientation because -+ * pstops doesn't deal with the position where it should appears. -+ * However this causes the unnecessary rotation by pstops. so paps -+ * will puts the fake Orientation tag and stop rotating in PS. -+ */ ++ g_ascii_strcasecmp(val, "false")) + do_landscape = TRUE; -+ } + } + /* XXX: need to support orientation-requested? */ + if ((val = cupsGetOption("page-left", num_options, options)) != NULL) { @@ -215,7 +209,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Parse command line */ if (!g_option_context_parse(ctxt, &argc, &argv, &error)) { -@@ -374,6 +507,8 @@ int main(int argc, char *argv[]) +@@ -374,6 +501,8 @@ int main(int argc, char *argv[]) IN = stdin; } title = filename_in; @@ -224,7 +218,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c paps = paps_new(); pango_context = paps_get_pango_context (paps); -@@ -392,8 +527,10 @@ int main(int argc, char *argv[]) +@@ -392,8 +521,10 @@ int main(int argc, char *argv[]) pango_context_set_font_description (pango_context, font_description); /* Page layout */ @@ -237,7 +231,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c if (num_columns == 1) total_gutter_width = 0; -@@ -456,6 +593,8 @@ int main(int argc, char *argv[]) +@@ -456,6 +587,8 @@ int main(int argc, char *argv[]) page_layout.pango_dir = pango_dir; page_layout.filename = filename_in; page_layout.header_font_desc = header_font_desc; @@ -246,7 +240,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) -@@ -756,6 +895,12 @@ split_text_into_paragraphs (PangoContext +@@ -756,6 +889,12 @@ split_text_into_paragraphs (PangoContext if (wc == (gunichar)-1) { fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); @@ -259,15 +253,19 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c wc = 0; } if (!*p || !wc || wc == '\n' || wc == '\f') -@@ -925,6 +1070,7 @@ void print_postscript_header(FILE *OUT, +@@ -925,21 +1064,32 @@ void print_postscript_header(FILE *OUT, int orientation = page_layout->page_width > page_layout->page_height; int bb_page_width = page_layout->page_width; int bb_page_height = page_layout->page_height; + char *owner = NULL; /* Keep bounding box non-rotated to make ggv happy */ - if (orientation) -@@ -934,12 +1080,20 @@ void print_postscript_header(FILE *OUT, +- if (orientation) ++ /* ensure the correct bounding box for CUPS */ ++ if (orientation && !page_layout->cups_mode) + { + int tmp = bb_page_width; + bb_page_width = bb_page_height; bb_page_height = tmp; } @@ -281,6 +279,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + } fprintf(OUT, "%%!PS-Adobe-3.0\n" ++ "%s" "%%%%Title: %s\n" "%%%%Creator: paps version 0.6.7 by Dov Grobgeld\n" "%%%%Pages: (atend)\n" @@ -289,31 +288,35 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%%%%BeginProlog\n" "%%%%Orientation: %s\n" "/papsdict 1 dict def\n" -@@ -989,8 +1143,13 @@ void print_postscript_header(FILE *OUT, +@@ -961,7 +1111,7 @@ void print_postscript_header(FILE *OUT, + " pagewidth\n" + " /pagewidth pageheight def\n" + " /pageheight exch def\n" +- " /orientation 3 def\n" ++ " /orientation %d def\n" + " } if\n" + " 2 dict\n" + " dup /PageSize [pagewidth pageheight] put\n" +@@ -986,11 +1136,21 @@ void print_postscript_header(FILE *OUT, + " 90 rotate\n" + " 0 pageheight neg translate\n" + "} def\n", ++ /* ++ * Put %%cupsRotation tag to prevent the rotation in pstops. ++ * This breaks paps's behavior to make it in landscape say. ++ * (RH#222137) ++ */ ++ (page_layout->cups_mode ? "%cupsRotation: 0\n" : ""), title, bb_page_width, bb_page_height, - orientation_names[orientation] + owner, -+ /* Put the fake orientation tag if paps is currently running under -+ * the CUPS filter mode. (#222137) -+ */ -+ orientation_names[orientation && !page_layout->cups_mode] ++ orientation_names[orientation], ++ /* For landscape, rotate page to portrait orientation for CUPS (RH#222137) */ ++ page_layout->cups_mode ? 2 : 3 ); + g_free(owner); fprintf(OUT, "%% User settings\n" -@@ -1015,7 +1174,11 @@ void print_postscript_header(FILE *OUT, - page_layout->left_margin, - page_layout->page_height - bodytop, - bool_name[page_layout->do_separation_line>0], -- bool_name[page_layout->do_landscape>0], -+ /* just ignore the landscape flag when paps is currently running -+ * under the CUPS filter mode. this will stop rotating in PS that -+ * paps generates. (#222137) -+ */ -+ bool_name[page_layout->do_landscape>0 && !page_layout->cups_mode], - bool_name[page_layout->do_tumble>0], - bool_name[page_layout->do_duplex>0] - ); diff --git a/paps-0.6.8-dsc-compliant.patch b/paps-dsc-compliant.patch similarity index 81% rename from paps-0.6.8-dsc-compliant.patch rename to paps-dsc-compliant.patch index 702d52b..3da5f00 100644 --- a/paps-0.6.8-dsc-compliant.patch +++ b/paps-dsc-compliant.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/src/libpaps.c paps-0.6.8/src/libpaps.c ---- paps-0.6.8.orig/src/libpaps.c 2008-01-15 11:09:30.000000000 +0900 -+++ paps-0.6.8/src/libpaps.c 2008-01-15 11:10:10.000000000 +0900 +--- paps-0.6.8.orig/src/libpaps.c 2008-05-14 23:07:14.000000000 +0900 ++++ paps-0.6.8/src/libpaps.c 2008-05-14 23:11:12.000000000 +0900 @@ -118,7 +118,6 @@ gchar *paps_get_postscript_header_strdup gchar *ret_str; g_string_append_printf(paps->header, @@ -42,9 +42,9 @@ diff -pruN paps-0.6.8.orig/src/libpaps.c paps-0.6.8/src/libpaps.c } diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2008-01-15 11:09:30.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2008-01-15 11:10:46.000000000 +0900 -@@ -665,7 +665,7 @@ int main(int argc, char *argv[]) +--- paps-0.6.8.orig/src/paps.c 2008-05-14 23:07:14.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-05-14 23:12:53.000000000 +0900 +@@ -659,7 +659,7 @@ int main(int argc, char *argv[]) fprintf(OUT, "%s", paps_header); g_free(paps_header); @@ -53,7 +53,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c fprintf(OUT, "%s", ps_pages_string->str); print_postscript_trailer(OUT, num_pages); -@@ -1094,8 +1094,9 @@ void print_postscript_header(FILE *OUT, +@@ -1089,8 +1089,9 @@ void print_postscript_header(FILE *OUT, "%%%%Creator: paps version 0.6.7 by Dov Grobgeld\n" "%%%%Pages: (atend)\n" "%%%%BoundingBox: 0 0 %d %d\n%s" @@ -64,17 +64,17 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "/papsdict 1 dict def\n" "papsdict begin\n" "\n" -@@ -1139,7 +1140,8 @@ void print_postscript_header(FILE *OUT, +@@ -1134,7 +1135,8 @@ void print_postscript_header(FILE *OUT, "/turnpage {\n" " 90 rotate\n" " 0 pageheight neg translate\n" - "} def\n", + "} def\n" + "%%%%EndProlog\n", - title, - bb_page_width, - bb_page_height, -@@ -1152,6 +1154,7 @@ void print_postscript_header(FILE *OUT, + /* + * Put %%cupsRotation tag to prevent the rotation in pstops. + * This breaks paps's behavior to make it in landscape say. +@@ -1150,6 +1152,7 @@ void print_postscript_header(FILE *OUT, g_free(owner); fprintf(OUT, @@ -82,7 +82,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%% User settings\n" "/pagewidth %d def\n" "/pageheight %d def\n" -@@ -1238,8 +1241,8 @@ void print_postscript_trailer(FILE *OUT, +@@ -1232,8 +1235,8 @@ void print_postscript_trailer(FILE *OUT, int num_pages) { fprintf(OUT, diff --git a/paps.spec b/paps.spec index 7dadef4..552d3fc 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -19,8 +19,8 @@ Patch3: paps-0.6.6-lcnumeric.patch Patch4: paps-0.6.6-exitcode.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch -Patch52: paps-0.6.8-dsc-compliant.patch -Patch61: paps-0.6.6-fix-wcswidth.patch +Patch52: paps-dsc-compliant.patch +Patch53: paps-autoconf262.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -55,7 +55,7 @@ applications using paps API. %patch50 -p1 -b .cups %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc -#%patch11 -p1 -b .wcswidth +%patch53 -p1 -b .autoconf262 autoreconf @@ -98,6 +98,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri May 16 2008 Akira TAGOH - 0.6.8-6 +- paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) +- paps-autoconf262.patch: Fix an error on autoreconf. + * Tue Feb 12 2008 Akira TAGOH - 0.6.8-5 - Rebuild for gcc-4.3. From dc38bd42f15b64dd6599dcb0c54989f127ade995 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 1 Sep 2008 08:49:37 +0000 Subject: [PATCH 06/87] - paps-langinfo.patch: Updated. - paps-exitcode.patch: Updated. --- ....6.6-exitcode.patch => paps-exitcode.patch | 22 +++++++++---------- ....6.6-langinfo.patch => paps-langinfo.patch | 18 +++++++-------- paps.spec | 10 ++++++--- 3 files changed, 27 insertions(+), 23 deletions(-) rename paps-0.6.6-exitcode.patch => paps-exitcode.patch (69%) rename paps-0.6.6-langinfo.patch => paps-langinfo.patch (61%) diff --git a/paps-0.6.6-exitcode.patch b/paps-exitcode.patch similarity index 69% rename from paps-0.6.6-exitcode.patch rename to paps-exitcode.patch index 6108798..032b889 100644 --- a/paps-0.6.6-exitcode.patch +++ b/paps-exitcode.patch @@ -1,7 +1,7 @@ -diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2006-09-30 02:51:39.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2006-09-30 03:00:26.000000000 +0900 -@@ -346,7 +346,7 @@ +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-09-01 15:54:11.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-09-01 15:54:47.000000000 +0900 +@@ -365,7 +365,7 @@ int main(int argc, char *argv[]) if (!IN) { fprintf(stderr, "Failed to open %s!\n", filename_in); @@ -10,7 +10,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } } else -@@ -457,7 +457,7 @@ +@@ -499,7 +499,7 @@ int main(int argc, char *argv[]) if (cvh == NULL) { fprintf(stderr, "%s: Invalid encoding: %s\n", g_get_prgname (), encoding); @@ -19,7 +19,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } } -@@ -517,7 +517,7 @@ +@@ -559,7 +559,7 @@ read_file (FILE *file, { fprintf(stderr, "%s: Error reading file.\n", g_get_prgname ()); g_string_free (inbuf, TRUE); @@ -28,7 +28,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } else if (bp == NULL) break; -@@ -531,7 +531,7 @@ +@@ -573,7 +573,7 @@ read_file (FILE *file, if (g_iconv (handle, &ib, &iblen, &ob, &oblen) == -1) { fprintf (stderr, "%s: Error while converting strings.\n", g_get_prgname ()); @@ -37,7 +37,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } obuffer[BUFSIZE * 6 - 1 - oblen] = 0; } -@@ -591,7 +591,7 @@ +@@ -637,7 +637,7 @@ split_text_into_paragraphs (PangoContext if (wtext == NULL) { fprintf (stderr, "Failed to convert UTF-8 to UCS-4.\n"); @@ -45,8 +45,8 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c + exit(1); } - len = wcswidth (wtext); -@@ -604,7 +604,7 @@ + len = g_utf8_strlen (para->text, para->length); +@@ -650,7 +650,7 @@ split_text_into_paragraphs (PangoContext { fprintf (stderr, "Failed to allocate a memory.\n"); g_free (wtext); @@ -55,7 +55,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } for (i = 0; i < len; i++) { -@@ -619,7 +619,7 @@ +@@ -665,7 +665,7 @@ split_text_into_paragraphs (PangoContext if (newtext == NULL) { fprintf (stderr, "Failed to convert UCS-4 to UTF-8.\n"); diff --git a/paps-0.6.6-langinfo.patch b/paps-langinfo.patch similarity index 61% rename from paps-0.6.6-langinfo.patch rename to paps-langinfo.patch index 70f172d..2e5b59f 100644 --- a/paps-0.6.6-langinfo.patch +++ b/paps-langinfo.patch @@ -1,6 +1,6 @@ -diff -pruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2007-01-23 18:56:04.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2007-01-23 18:59:15.000000000 +0900 +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-09-01 15:07:03.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-09-01 15:49:10.000000000 +0900 @@ -25,6 +25,7 @@ #include #include "libpaps.h" @@ -9,19 +9,19 @@ diff -pruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c #include #include #include -@@ -324,6 +325,9 @@ int main(int argc, char *argv[]) - int max_width = 0, w; +@@ -331,6 +332,9 @@ int main(int argc, char *argv[]) GIConv cvh = NULL; + GOptionGroup *options; + /* Set locale from environment. */ + setlocale(LC_ALL, ""); + /* Prerequisite when using glib. */ g_type_init(); - -@@ -451,6 +455,15 @@ int main(int argc, char *argv[]) - g_object_unref (G_OBJECT (fontmap)); - } + +@@ -480,6 +484,15 @@ int main(int argc, char *argv[]) + page_layout.scale_x = page_layout.scale_y = 1.0; + + if (encoding == NULL) + { diff --git a/paps.spec b/paps.spec index 552d3fc..f6d6333 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -12,11 +12,11 @@ Patch0: paps-0.6.8-shared.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 Patch1: paps-0.6.8-wordwrap.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241 -Patch2: paps-0.6.6-langinfo.patch +Patch2: paps-langinfo.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241 Patch3: paps-0.6.6-lcnumeric.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241 -Patch4: paps-0.6.6-exitcode.patch +Patch4: paps-exitcode.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch Patch52: paps-dsc-compliant.patch @@ -98,6 +98,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Mon Sep 1 2008 Akira TAGOH - 0.6.8-7 +- paps-langinfo.patch: Updated. +- paps-exitcode.patch: Updated. + * Fri May 16 2008 Akira TAGOH - 0.6.8-6 - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) - paps-autoconf262.patch: Fix an error on autoreconf. From 3dfbf626fbe00c0d8cf70f68fa58737a51243d67 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 17 Nov 2008 08:44:04 +0000 Subject: [PATCH 07/87] - Courier font to be a default font for texttopaps. (#469325) --- paps-cpilpi.patch | 20 ++++++++++---------- paps-cups.patch | 28 +++++++++++++++------------- paps.spec | 5 ++++- 3 files changed, 29 insertions(+), 24 deletions(-) diff --git a/paps-cpilpi.patch b/paps-cpilpi.patch index f64859a..522bda6 100644 --- a/paps-cpilpi.patch +++ b/paps-cpilpi.patch @@ -1,6 +1,6 @@ -diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2007-11-28 16:20:56.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2007-11-30 17:53:06.000000000 +0900 +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-11-07 08:27:54.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-11-07 08:29:08.000000000 +0900 @@ -92,8 +92,8 @@ typedef struct { gchar *filename; gchar *header_font_desc; @@ -12,15 +12,15 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 } page_layout_t; typedef struct { -@@ -376,6 +376,7 @@ int main(int argc, char *argv[]) - bottom_margin = 36; - page_width = 612; +@@ -378,6 +378,7 @@ int main(int argc, char *argv[]) page_height = 792; + font = g_strdup(MAKE_FONT_NAME ("Courier", DEFAULT_FONT_SIZE)); + header_font_desc = g_strdup(MAKE_FONT_NAME ("Courier", HEADER_FONT_SCALE)); + do_stretch_chars = TRUE; if (argc < 6 || argc > 7) { fprintf(stderr, "ERROR: %s job-id user title copies options [file]\n", prgname); -@@ -596,7 +597,8 @@ int main(int argc, char *argv[]) +@@ -595,7 +596,8 @@ int main(int argc, char *argv[]) /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) { @@ -30,7 +30,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 fontmap = pango_ft2_font_map_new (); fontset = pango_font_map_load_fontset (fontmap, pango_context, font_description, get_language ()); metrics = pango_fontset_get_metrics (fontset); -@@ -608,13 +610,10 @@ int main(int argc, char *argv[]) +@@ -607,13 +609,10 @@ int main(int argc, char *argv[]) pango_font_metrics_unref (metrics); g_object_unref (G_OBJECT (fontmap)); @@ -46,7 +46,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 } page_layout.scale_x = page_layout.scale_y = 1.0; -@@ -1002,6 +1001,7 @@ output_pages(FILE *OUT, +@@ -1001,6 +1000,7 @@ output_pages(FILE *OUT, int column_y_pos = 0; int page_idx = 1; int pango_column_height = page_layout->column_height * page_layout->pt_to_pixel * PANGO_SCALE; @@ -54,7 +54,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 LineLink *prev_line_link = NULL; start_page(OUT, page_idx); -@@ -1039,17 +1039,17 @@ output_pages(FILE *OUT, +@@ -1038,17 +1038,17 @@ output_pages(FILE *OUT, ); } } diff --git a/paps-cups.patch b/paps-cups.patch index 9d00ec6..286ced2 100644 --- a/paps-cups.patch +++ b/paps-cups.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in --- paps-0.6.8.orig/configure.in 2007-01-19 20:06:10.000000000 +0900 -+++ paps-0.6.8/configure.in 2008-05-15 22:46:49.000000000 +0900 ++++ paps-0.6.8/configure.in 2008-11-07 08:21:19.000000000 +0900 @@ -7,6 +7,19 @@ AC_LANG_C AC_PROG_CC AM_PROG_LIBTOOL @@ -22,8 +22,8 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in DX_CHM_FEATURE(OFF) DX_CHI_FEATURE(OFF) diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am ---- paps-0.6.8.orig/src/Makefile.am 2008-05-15 22:46:34.000000000 +0900 -+++ paps-0.6.8/src/Makefile.am 2008-05-15 22:46:49.000000000 +0900 +--- paps-0.6.8.orig/src/Makefile.am 2008-11-07 08:21:05.000000000 +0900 ++++ paps-0.6.8/src/Makefile.am 2008-11-07 08:21:19.000000000 +0900 @@ -5,10 +5,10 @@ libpapsinc_HEADERS = libpaps.h libpapsincdir = $(includedir) @@ -38,8 +38,8 @@ diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am EXTRA_DIST = test_libpaps.c paps.1 diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2008-05-15 22:46:34.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2008-05-15 22:48:42.000000000 +0900 +--- paps-0.6.8.orig/src/paps.c 2008-11-07 08:21:05.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-11-07 08:26:28.000000000 +0900 @@ -31,6 +31,7 @@ #include #include @@ -80,7 +80,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Set locale from environment. */ setlocale(LC_ALL, ""); -@@ -348,6 +353,128 @@ int main(int argc, char *argv[]) +@@ -348,6 +353,130 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries(ctxt, entries, NULL); #endif @@ -107,6 +107,8 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + bottom_margin = 36; + page_width = 612; + page_height = 792; ++ font = g_strdup(MAKE_FONT_NAME ("Courier", DEFAULT_FONT_SIZE)); ++ header_font_desc = g_strdup(MAKE_FONT_NAME ("Courier", HEADER_FONT_SCALE)); + + if (argc < 6 || argc > 7) { + fprintf(stderr, "ERROR: %s job-id user title copies options [file]\n", prgname); @@ -209,7 +211,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Parse command line */ if (!g_option_context_parse(ctxt, &argc, &argv, &error)) { -@@ -374,6 +501,8 @@ int main(int argc, char *argv[]) +@@ -374,6 +503,8 @@ int main(int argc, char *argv[]) IN = stdin; } title = filename_in; @@ -218,7 +220,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c paps = paps_new(); pango_context = paps_get_pango_context (paps); -@@ -392,8 +521,10 @@ int main(int argc, char *argv[]) +@@ -392,8 +523,10 @@ int main(int argc, char *argv[]) pango_context_set_font_description (pango_context, font_description); /* Page layout */ @@ -231,7 +233,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c if (num_columns == 1) total_gutter_width = 0; -@@ -456,6 +587,8 @@ int main(int argc, char *argv[]) +@@ -456,6 +589,8 @@ int main(int argc, char *argv[]) page_layout.pango_dir = pango_dir; page_layout.filename = filename_in; page_layout.header_font_desc = header_font_desc; @@ -240,7 +242,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) -@@ -756,6 +889,12 @@ split_text_into_paragraphs (PangoContext +@@ -756,6 +891,12 @@ split_text_into_paragraphs (PangoContext if (wc == (gunichar)-1) { fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); @@ -253,7 +255,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c wc = 0; } if (!*p || !wc || wc == '\n' || wc == '\f') -@@ -925,21 +1064,32 @@ void print_postscript_header(FILE *OUT, +@@ -925,21 +1066,32 @@ void print_postscript_header(FILE *OUT, int orientation = page_layout->page_width > page_layout->page_height; int bb_page_width = page_layout->page_width; int bb_page_height = page_layout->page_height; @@ -288,7 +290,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%%%%BeginProlog\n" "%%%%Orientation: %s\n" "/papsdict 1 dict def\n" -@@ -961,7 +1111,7 @@ void print_postscript_header(FILE *OUT, +@@ -961,7 +1113,7 @@ void print_postscript_header(FILE *OUT, " pagewidth\n" " /pagewidth pageheight def\n" " /pageheight exch def\n" @@ -297,7 +299,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c " } if\n" " 2 dict\n" " dup /PageSize [pagewidth pageheight] put\n" -@@ -986,11 +1136,21 @@ void print_postscript_header(FILE *OUT, +@@ -986,11 +1138,21 @@ void print_postscript_header(FILE *OUT, " 90 rotate\n" " 0 pageheight neg translate\n" "} def\n", diff --git a/paps.spec b/paps.spec index f6d6333..668544d 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 7%{?dist} +Release: 8%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -98,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Mon Nov 17 2008 Akira TAGOH - 0.6.8-8 +- Courier font to be a default font for texttopaps. (#469325) + * Mon Sep 1 2008 Akira TAGOH - 0.6.8-7 - paps-langinfo.patch: Updated. - paps-exitcode.patch: Updated. From c1c5748df16e2733d43b216fd62a1ea15136265a Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 17 Nov 2008 09:22:31 +0000 Subject: [PATCH 08/87] *** empty log message *** --- paps.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/paps.spec b/paps.spec index 668544d..9532aa5 100644 --- a/paps.spec +++ b/paps.spec @@ -56,6 +56,7 @@ applications using paps API. %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc %patch53 -p1 -b .autoconf262 +libtoolize -f -c autoreconf From 4f440ac67e0105e83fbb0e670be5009766a07ba4 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 17 Nov 2008 09:37:17 +0000 Subject: [PATCH 09/87] - Courier font to be a default font for texttopaps. (#469325) --- paps-cpilpi.patch | 20 ++++++------- paps-cups.patch | 28 ++++++++++--------- ....6.6-exitcode.patch => paps-exitcode.patch | 22 +++++++-------- ....6.6-langinfo.patch => paps-langinfo.patch | 18 ++++++------ paps.spec | 14 ++++++++-- 5 files changed, 56 insertions(+), 46 deletions(-) rename paps-0.6.6-exitcode.patch => paps-exitcode.patch (69%) rename paps-0.6.6-langinfo.patch => paps-langinfo.patch (61%) diff --git a/paps-cpilpi.patch b/paps-cpilpi.patch index f64859a..522bda6 100644 --- a/paps-cpilpi.patch +++ b/paps-cpilpi.patch @@ -1,6 +1,6 @@ -diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2007-11-28 16:20:56.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2007-11-30 17:53:06.000000000 +0900 +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-11-07 08:27:54.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-11-07 08:29:08.000000000 +0900 @@ -92,8 +92,8 @@ typedef struct { gchar *filename; gchar *header_font_desc; @@ -12,15 +12,15 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 } page_layout_t; typedef struct { -@@ -376,6 +376,7 @@ int main(int argc, char *argv[]) - bottom_margin = 36; - page_width = 612; +@@ -378,6 +378,7 @@ int main(int argc, char *argv[]) page_height = 792; + font = g_strdup(MAKE_FONT_NAME ("Courier", DEFAULT_FONT_SIZE)); + header_font_desc = g_strdup(MAKE_FONT_NAME ("Courier", HEADER_FONT_SCALE)); + do_stretch_chars = TRUE; if (argc < 6 || argc > 7) { fprintf(stderr, "ERROR: %s job-id user title copies options [file]\n", prgname); -@@ -596,7 +597,8 @@ int main(int argc, char *argv[]) +@@ -595,7 +596,8 @@ int main(int argc, char *argv[]) /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) { @@ -30,7 +30,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 fontmap = pango_ft2_font_map_new (); fontset = pango_font_map_load_fontset (fontmap, pango_context, font_description, get_language ()); metrics = pango_fontset_get_metrics (fontset); -@@ -608,13 +610,10 @@ int main(int argc, char *argv[]) +@@ -607,13 +609,10 @@ int main(int argc, char *argv[]) pango_font_metrics_unref (metrics); g_object_unref (G_OBJECT (fontmap)); @@ -46,7 +46,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 } page_layout.scale_x = page_layout.scale_y = 1.0; -@@ -1002,6 +1001,7 @@ output_pages(FILE *OUT, +@@ -1001,6 +1000,7 @@ output_pages(FILE *OUT, int column_y_pos = 0; int page_idx = 1; int pango_column_height = page_layout->column_height * page_layout->pt_to_pixel * PANGO_SCALE; @@ -54,7 +54,7 @@ diff -pruN -x .libs -x '*o' -x '*ps' ../paps-0.6.8.orig/src/paps.c ../paps-0.6.8 LineLink *prev_line_link = NULL; start_page(OUT, page_idx); -@@ -1039,17 +1039,17 @@ output_pages(FILE *OUT, +@@ -1038,17 +1038,17 @@ output_pages(FILE *OUT, ); } } diff --git a/paps-cups.patch b/paps-cups.patch index 9d00ec6..286ced2 100644 --- a/paps-cups.patch +++ b/paps-cups.patch @@ -1,6 +1,6 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in --- paps-0.6.8.orig/configure.in 2007-01-19 20:06:10.000000000 +0900 -+++ paps-0.6.8/configure.in 2008-05-15 22:46:49.000000000 +0900 ++++ paps-0.6.8/configure.in 2008-11-07 08:21:19.000000000 +0900 @@ -7,6 +7,19 @@ AC_LANG_C AC_PROG_CC AM_PROG_LIBTOOL @@ -22,8 +22,8 @@ diff -pruN paps-0.6.8.orig/configure.in paps-0.6.8/configure.in DX_CHM_FEATURE(OFF) DX_CHI_FEATURE(OFF) diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am ---- paps-0.6.8.orig/src/Makefile.am 2008-05-15 22:46:34.000000000 +0900 -+++ paps-0.6.8/src/Makefile.am 2008-05-15 22:46:49.000000000 +0900 +--- paps-0.6.8.orig/src/Makefile.am 2008-11-07 08:21:05.000000000 +0900 ++++ paps-0.6.8/src/Makefile.am 2008-11-07 08:21:19.000000000 +0900 @@ -5,10 +5,10 @@ libpapsinc_HEADERS = libpaps.h libpapsincdir = $(includedir) @@ -38,8 +38,8 @@ diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am EXTRA_DIST = test_libpaps.c paps.1 diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c ---- paps-0.6.8.orig/src/paps.c 2008-05-15 22:46:34.000000000 +0900 -+++ paps-0.6.8/src/paps.c 2008-05-15 22:48:42.000000000 +0900 +--- paps-0.6.8.orig/src/paps.c 2008-11-07 08:21:05.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-11-07 08:26:28.000000000 +0900 @@ -31,6 +31,7 @@ #include #include @@ -80,7 +80,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Set locale from environment. */ setlocale(LC_ALL, ""); -@@ -348,6 +353,128 @@ int main(int argc, char *argv[]) +@@ -348,6 +353,130 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries(ctxt, entries, NULL); #endif @@ -107,6 +107,8 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c + bottom_margin = 36; + page_width = 612; + page_height = 792; ++ font = g_strdup(MAKE_FONT_NAME ("Courier", DEFAULT_FONT_SIZE)); ++ header_font_desc = g_strdup(MAKE_FONT_NAME ("Courier", HEADER_FONT_SCALE)); + + if (argc < 6 || argc > 7) { + fprintf(stderr, "ERROR: %s job-id user title copies options [file]\n", prgname); @@ -209,7 +211,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Parse command line */ if (!g_option_context_parse(ctxt, &argc, &argv, &error)) { -@@ -374,6 +501,8 @@ int main(int argc, char *argv[]) +@@ -374,6 +503,8 @@ int main(int argc, char *argv[]) IN = stdin; } title = filename_in; @@ -218,7 +220,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c paps = paps_new(); pango_context = paps_get_pango_context (paps); -@@ -392,8 +521,10 @@ int main(int argc, char *argv[]) +@@ -392,8 +523,10 @@ int main(int argc, char *argv[]) pango_context_set_font_description (pango_context, font_description); /* Page layout */ @@ -231,7 +233,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c if (num_columns == 1) total_gutter_width = 0; -@@ -456,6 +587,8 @@ int main(int argc, char *argv[]) +@@ -456,6 +589,8 @@ int main(int argc, char *argv[]) page_layout.pango_dir = pango_dir; page_layout.filename = filename_in; page_layout.header_font_desc = header_font_desc; @@ -240,7 +242,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) -@@ -756,6 +889,12 @@ split_text_into_paragraphs (PangoContext +@@ -756,6 +891,12 @@ split_text_into_paragraphs (PangoContext if (wc == (gunichar)-1) { fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); @@ -253,7 +255,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c wc = 0; } if (!*p || !wc || wc == '\n' || wc == '\f') -@@ -925,21 +1064,32 @@ void print_postscript_header(FILE *OUT, +@@ -925,21 +1066,32 @@ void print_postscript_header(FILE *OUT, int orientation = page_layout->page_width > page_layout->page_height; int bb_page_width = page_layout->page_width; int bb_page_height = page_layout->page_height; @@ -288,7 +290,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%%%%BeginProlog\n" "%%%%Orientation: %s\n" "/papsdict 1 dict def\n" -@@ -961,7 +1111,7 @@ void print_postscript_header(FILE *OUT, +@@ -961,7 +1113,7 @@ void print_postscript_header(FILE *OUT, " pagewidth\n" " /pagewidth pageheight def\n" " /pageheight exch def\n" @@ -297,7 +299,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c " } if\n" " 2 dict\n" " dup /PageSize [pagewidth pageheight] put\n" -@@ -986,11 +1136,21 @@ void print_postscript_header(FILE *OUT, +@@ -986,11 +1138,21 @@ void print_postscript_header(FILE *OUT, " 90 rotate\n" " 0 pageheight neg translate\n" "} def\n", diff --git a/paps-0.6.6-exitcode.patch b/paps-exitcode.patch similarity index 69% rename from paps-0.6.6-exitcode.patch rename to paps-exitcode.patch index 6108798..032b889 100644 --- a/paps-0.6.6-exitcode.patch +++ b/paps-exitcode.patch @@ -1,7 +1,7 @@ -diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2006-09-30 02:51:39.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2006-09-30 03:00:26.000000000 +0900 -@@ -346,7 +346,7 @@ +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-09-01 15:54:11.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-09-01 15:54:47.000000000 +0900 +@@ -365,7 +365,7 @@ int main(int argc, char *argv[]) if (!IN) { fprintf(stderr, "Failed to open %s!\n", filename_in); @@ -10,7 +10,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } } else -@@ -457,7 +457,7 @@ +@@ -499,7 +499,7 @@ int main(int argc, char *argv[]) if (cvh == NULL) { fprintf(stderr, "%s: Invalid encoding: %s\n", g_get_prgname (), encoding); @@ -19,7 +19,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } } -@@ -517,7 +517,7 @@ +@@ -559,7 +559,7 @@ read_file (FILE *file, { fprintf(stderr, "%s: Error reading file.\n", g_get_prgname ()); g_string_free (inbuf, TRUE); @@ -28,7 +28,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } else if (bp == NULL) break; -@@ -531,7 +531,7 @@ +@@ -573,7 +573,7 @@ read_file (FILE *file, if (g_iconv (handle, &ib, &iblen, &ob, &oblen) == -1) { fprintf (stderr, "%s: Error while converting strings.\n", g_get_prgname ()); @@ -37,7 +37,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } obuffer[BUFSIZE * 6 - 1 - oblen] = 0; } -@@ -591,7 +591,7 @@ +@@ -637,7 +637,7 @@ split_text_into_paragraphs (PangoContext if (wtext == NULL) { fprintf (stderr, "Failed to convert UTF-8 to UCS-4.\n"); @@ -45,8 +45,8 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c + exit(1); } - len = wcswidth (wtext); -@@ -604,7 +604,7 @@ + len = g_utf8_strlen (para->text, para->length); +@@ -650,7 +650,7 @@ split_text_into_paragraphs (PangoContext { fprintf (stderr, "Failed to allocate a memory.\n"); g_free (wtext); @@ -55,7 +55,7 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c } for (i = 0; i < len; i++) { -@@ -619,7 +619,7 @@ +@@ -665,7 +665,7 @@ split_text_into_paragraphs (PangoContext if (newtext == NULL) { fprintf (stderr, "Failed to convert UCS-4 to UTF-8.\n"); diff --git a/paps-0.6.6-langinfo.patch b/paps-langinfo.patch similarity index 61% rename from paps-0.6.6-langinfo.patch rename to paps-langinfo.patch index 70f172d..2e5b59f 100644 --- a/paps-0.6.6-langinfo.patch +++ b/paps-langinfo.patch @@ -1,6 +1,6 @@ -diff -pruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c ---- paps-0.6.6.orig/src/paps.c 2007-01-23 18:56:04.000000000 +0900 -+++ paps-0.6.6/src/paps.c 2007-01-23 18:59:15.000000000 +0900 +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2008-09-01 15:07:03.000000000 +0900 ++++ paps-0.6.8/src/paps.c 2008-09-01 15:49:10.000000000 +0900 @@ -25,6 +25,7 @@ #include #include "libpaps.h" @@ -9,19 +9,19 @@ diff -pruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c #include #include #include -@@ -324,6 +325,9 @@ int main(int argc, char *argv[]) - int max_width = 0, w; +@@ -331,6 +332,9 @@ int main(int argc, char *argv[]) GIConv cvh = NULL; + GOptionGroup *options; + /* Set locale from environment. */ + setlocale(LC_ALL, ""); + /* Prerequisite when using glib. */ g_type_init(); - -@@ -451,6 +455,15 @@ int main(int argc, char *argv[]) - g_object_unref (G_OBJECT (fontmap)); - } + +@@ -480,6 +484,15 @@ int main(int argc, char *argv[]) + page_layout.scale_x = page_layout.scale_y = 1.0; + + if (encoding == NULL) + { diff --git a/paps.spec b/paps.spec index 552d3fc..9532aa5 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 6%{?dist} +Release: 8%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -12,11 +12,11 @@ Patch0: paps-0.6.8-shared.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 Patch1: paps-0.6.8-wordwrap.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241 -Patch2: paps-0.6.6-langinfo.patch +Patch2: paps-langinfo.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241 Patch3: paps-0.6.6-lcnumeric.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241 -Patch4: paps-0.6.6-exitcode.patch +Patch4: paps-exitcode.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch Patch52: paps-dsc-compliant.patch @@ -56,6 +56,7 @@ applications using paps API. %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc %patch53 -p1 -b .autoconf262 +libtoolize -f -c autoreconf @@ -98,6 +99,13 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Mon Nov 17 2008 Akira TAGOH - 0.6.8-8 +- Courier font to be a default font for texttopaps. (#469325) + +* Mon Sep 1 2008 Akira TAGOH - 0.6.8-7 +- paps-langinfo.patch: Updated. +- paps-exitcode.patch: Updated. + * Fri May 16 2008 Akira TAGOH - 0.6.8-6 - paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137) - paps-autoconf262.patch: Fix an error on autoreconf. From 797bc7e5b809a4eb05501eb19a1edaf084f009f4 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 26 Feb 2009 09:48:24 +0000 Subject: [PATCH 10/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 9532aa5..93c81f6 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 8%{?dist} +Release: 9%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -99,6 +99,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Thu Feb 26 2009 Fedora Release Engineering - 0.6.8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + * Mon Nov 17 2008 Akira TAGOH - 0.6.8-8 - Courier font to be a default font for texttopaps. (#469325) From dda512b7b78c9a22fa2e95656cafced7a696d7d6 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Sat, 25 Jul 2009 23:14:11 +0000 Subject: [PATCH 11/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 93c81f6..e1e6d50 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 9%{?dist} +Release: 10%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -99,6 +99,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Sat Jul 25 2009 Fedora Release Engineering - 0.6.8-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Thu Feb 26 2009 Fedora Release Engineering - 0.6.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From 748b9fa1fb8991f7f268cebc1ae3f72ec2452244 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 14 Oct 2009 10:42:42 +0000 Subject: [PATCH 12/87] - Fix code that deal with CPI parameter to be accurate. (#524883) --- paps-fix-cpi.patch | 342 +++++++++++++++++++++++++++++++++++++++++++++ paps.spec | 7 +- 2 files changed, 348 insertions(+), 1 deletion(-) create mode 100644 paps-fix-cpi.patch diff --git a/paps-fix-cpi.patch b/paps-fix-cpi.patch new file mode 100644 index 0000000..460219d --- /dev/null +++ b/paps-fix-cpi.patch @@ -0,0 +1,342 @@ +diff --git a/src/libpaps.c b/src/libpaps.c +index b6363a7..1b80257 100644 +--- a/src/libpaps.c ++++ b/src/libpaps.c +@@ -55,6 +55,9 @@ typedef struct { + double last_pos_x; + double scale_x; + double scale_y; ++ double width; ++ double height; ++ double cpi; + } paps_private_t; + + +@@ -88,6 +91,26 @@ paps_t *paps_new() + } + + void ++paps_set_paper_size(paps_t *paps_, ++ gdouble width, ++ gdouble height) ++{ ++ paps_private_t *paps = (paps_private_t *)paps_; ++ ++ paps->width = width; ++ paps->height = height; ++} ++ ++void ++paps_set_cpi(paps_t *paps_, ++ gdouble cpi) ++{ ++ paps_private_t *paps = (paps_private_t *)paps_; ++ ++ paps->cpi = cpi; ++} ++ ++void + paps_set_scale(paps_t *paps_, + gdouble scale_x, + gdouble scale_y) +@@ -401,7 +424,7 @@ static void draw_contour(paps_private_t *paps, + FT_Face ft_face = pango_ft2_font_get_face(font); + int num_glyphs = glyphs->num_glyphs; + int glyph_idx; +- ++ + for (glyph_idx=0; glyph_idxglyphs[glyph_idx].geometry; +@@ -410,7 +433,11 @@ static void draw_contour(paps_private_t *paps, + glyph_pos_x = x_pos + 1.0*geometry.x_offset * scale; + glyph_pos_y = line_start_pos_y - 1.0*geometry.y_offset * scale; + +- x_pos += geometry.width * scale * paps->scale_x; ++ if (paps->cpi > 0.0L) { ++ x_pos += (1 / paps->cpi * 72.0); ++ } else { ++ x_pos += geometry.width * scale * paps->scale_x; ++ } + + if (glyphs->glyphs[glyph_idx].glyph == PANGO_GLYPH_EMPTY) + continue; +diff --git a/src/libpaps.h b/src/libpaps.h +index 0b74321..cbb4042 100644 +--- a/src/libpaps.h ++++ b/src/libpaps.h +@@ -53,10 +53,16 @@ void paps_free(paps_t *paps); + * @param scale_y y-coordinate scale + * + */ +-void +-paps_set_scale(paps_t *paps, +- gdouble scale_x, +- gdouble scale_y); ++void paps_set_scale(paps_t *paps, ++ gdouble scale_x, ++ gdouble scale_y); ++ ++void paps_set_paper_size(paps_t *paps_, ++ gdouble width, ++ gdouble height); ++ ++void paps_set_cpi(paps_t *paps_, ++ gdouble cpi); + + /** + * libpaps may currently be used only with a PangoContext that it +diff --git a/src/paps.c b/src/paps.c +index 334d547..72dbaad 100644 +--- a/src/paps.c ++++ b/src/paps.c +@@ -32,6 +32,8 @@ + #include + #include + #include ++#include ++#include + + #define BUFSIZE 1024 + #define DEFAULT_FONT_FAMILY "Monospace" +@@ -593,6 +595,8 @@ int main(int argc, char *argv[]) + page_layout.owner = page_owner; + page_layout.cups_mode = cups_mode; + ++ paps_set_paper_size(paps, page_width, page_height); ++ + /* calculate x-coordinate scale */ + if (page_layout.cpi > 0.0L) + { +@@ -605,7 +609,7 @@ int main(int argc, char *argv[]) + w = pango_font_metrics_get_approximate_digit_width (metrics); + if (w > max_width) + max_width = w; +- page_layout.scale_x = 1 / page_layout.cpi * 72.0 * PANGO_SCALE / max_width; ++ page_layout.scale_x = 1 / page_layout.cpi * 72.0 * (gdouble)PANGO_SCALE / (gdouble)max_width; + pango_font_metrics_unref (metrics); + g_object_unref (G_OBJECT (fontmap)); + +@@ -613,6 +617,8 @@ int main(int argc, char *argv[]) + // update the font size to that width + pango_font_description_set_size (font_description, font_size * page_layout.scale_x); + pango_context_set_font_description (pango_context, font_description); ++ ++ paps_set_cpi(paps, page_layout.cpi); + } + + page_layout.scale_x = page_layout.scale_y = 1.0; +@@ -726,119 +732,6 @@ read_file (FILE *file, + return text; + } + +-#if 0 +-/* Take a UTF8 string and break it into paragraphs on \n characters. +- * +- * Sorry. I couldn't figure out what this version was supposed to do +- * +- */ +-static GList * +-split_text_into_paragraphs (PangoContext *pango_context, +- page_layout_t *page_layout, +- int paint_width, /* In pixels */ +- char *text) +-{ +- char *p = text; +- char *next; +- gunichar wc; +- GList *result = NULL; +- char *last_para = text; +- +- while (p != NULL && *p) +- { +- wc = g_utf8_get_char (p); +- next = g_utf8_next_char (p); +- if (wc == (gunichar)-1) +- { +- fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); +- wc = 0; +- } +- if (!*p || !wc || wc == '\n' || wc == '\f') +- { +- Paragraph *para = g_new (Paragraph, 1); +- para->text = last_para; +- para->length = p - last_para; +- para->layout = pango_layout_new (pango_context); +- +- if (cpi > 0.0L && page_layout->do_wordwrap) +- { +- PangoRectangle ink_rect, logical_rect; +- wchar_t *wtext, *wnewtext; +- gchar *newtext; +- size_t i, len, wwidth = 0, n; +- +- wtext = g_utf8_to_ucs4 (para->text, para->length, NULL, NULL, NULL); +- if (wtext == NULL) +- { +- fprintf (stderr, "Failed to convert UTF-8 to UCS-4.\n"); +- exit(1); +- } +- +- len = g_utf8_strlen (para->text, para->length); +- /* the amount of characters to be able to put on the line against CPI */ +- n = page_layout->column_width / 72.0 * cpi; +- if (len > n) +- { +- wnewtext = g_new (wchar_t, wcslen (wtext) + 1); +- if (wnewtext == NULL) +- { +- fprintf (stderr, "Failed to allocate a memory.\n"); +- g_free (wtext); +- exit(1); +- } +- for (i = 0; i < len; i++) +- { +- wwidth += wcwidth (wtext[i]); +- if (wwidth > n) +- break; +- wnewtext[i] = wtext[i]; +- } +- wnewtext[i] = 0L; +- +- newtext = g_ucs4_to_utf8 ((const gunichar *)wnewtext, i, NULL, NULL, NULL); +- if (newtext == NULL) +- { +- fprintf (stderr, "Failed to convert UCS-4 to UTF-8.\n"); +- exit(1); +- } +- +- pango_layout_set_text (para->layout, newtext, -1); +- pango_layout_get_extents (para->layout, &ink_rect, &logical_rect); +- /* update paint_width to wrap_against CPI */ +- paint_width = logical_rect.width / PANGO_SCALE; +- g_free (newtext); +- g_free (wnewtext); +- } +- g_free (wtext); +- } +- pango_layout_set_text (para->layout, para->text, para->length); +- pango_layout_set_justify (para->layout, page_layout->do_justify); +- pango_layout_set_alignment (para->layout, +- page_layout->pango_dir == PANGO_DIRECTION_LTR +- ? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT); +- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE); +- if (page_layout->do_wordwrap) +- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR); +- para->height = 0; +- +- if (wc == '\f') +- para->formfeed = 1; +- else +- para->formfeed = 0; +- +- last_para = next; +- +- result = g_list_prepend (result, para); +- } +- if (!wc) /* incomplete character at end */ +- break; +- p = next; +- } +- +- return g_list_reverse (result); +-} +-#endif +- + /* Take a UTF8 string and break it into paragraphs on \n characters + */ + static GList * +@@ -904,18 +797,85 @@ split_text_into_paragraphs (PangoContext *pango_context, + para->text = last_para; + para->length = p - last_para; + para->layout = pango_layout_new (pango_context); +- // pango_layout_set_font_description (para->layout, font_description); +- pango_layout_set_text (para->layout, para->text, para->length); ++ ++ if (page_layout->cpi > 0.0L && page_layout->do_wordwrap) { ++ /* figuring out the correct width from the pango_font_metrics_get_approximate_width() ++ * is really hard and pango_layout_set_wrap() doesn't work properly then. ++ * Those are not reliable to render the characters exactly according to the given CPI. ++ * So Re-calculate the width to wrap up to be comfortable with CPI. ++ */ ++ wchar_t *wtext = NULL, *wnewtext = NULL; ++ gchar *newtext = NULL; ++ gsize len, col, i, wwidth = 0; ++ PangoRectangle ink_rect, logical_rect; ++ ++ wtext = (wchar_t *)g_utf8_to_ucs4(para->text, para->length, NULL, NULL, NULL); ++ if (wtext == NULL) { ++ fprintf(stderr, "%s: Unable to convert UTF-8 to UCS-4.\n", g_get_prgname()); ++ fail: ++ g_free(wtext); ++ g_free(wnewtext); ++ g_free(newtext); ++ if (page_layout->cups_mode) { ++ /* try to continue parsing text */ ++ p = next; ++ continue; ++ } else { ++ exit(1); ++ } ++ } ++ len = g_utf8_strlen(para->text, para->length); ++ /* the amount of characters that can be put on the line against CPI */ ++ col = page_layout->column_width / 72.0 * page_layout->cpi; ++ if (len > col) { ++ /* need to wrap up them */ ++ wnewtext = g_new(wchar_t, wcslen(wtext) + 1); ++ if (wnewtext == NULL) { ++ fprintf(stderr, "%s: Unable to allocate the memory.\n", g_get_prgname()); ++ goto fail; ++ } ++ for (i = 0; i < len; i++) { ++ wwidth += wcwidth(wtext[i]); ++ if (wwidth > col) ++ break; ++ wnewtext[i] = wtext[i]; ++ } ++ wnewtext[i] = 0L; ++ ++ newtext = g_ucs4_to_utf8((const gunichar *)wnewtext, i, NULL, NULL, NULL); ++ if (newtext == NULL) { ++ fprintf(stderr, "%s: Unable to convert UCS-4 to UTF-8.\n", g_get_prgname()); ++ goto fail; ++ } ++ pango_layout_set_text(para->layout, newtext, -1); ++ pango_layout_get_extents(para->layout, &ink_rect, &logical_rect); ++ paint_width = logical_rect.width / PANGO_SCALE; ++ g_free(wnewtext); ++ g_free(newtext); ++ ++ para->length = i; ++ next = g_utf8_offset_to_pointer(para->text, para->length); ++ wc = g_utf8_prev_char(next); ++ } else { ++ pango_layout_set_text(para->layout, para->text, para->length); ++ } ++ g_free(wtext); ++ ++ pango_layout_set_width(para->layout, -1); ++ } else { ++ pango_layout_set_text (para->layout, para->text, para->length); ++ if (page_layout->do_wordwrap) { ++ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR); ++ pango_layout_set_width (para->layout, paint_width * PANGO_SCALE); ++ } else { ++ pango_layout_set_width (para->layout, -1); ++ } ++ } ++ + pango_layout_set_justify (para->layout, page_layout->do_justify); + pango_layout_set_alignment (para->layout, + page_layout->pango_dir == PANGO_DIRECTION_LTR + ? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT); +- if (page_layout->do_wordwrap) { +- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR); +- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE); +- } else { +- pango_layout_set_width (para->layout, -1); +- } + + para->height = 0; + diff --git a/paps.spec b/paps.spec index e1e6d50..f003605 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 10%{?dist} +Release: 11%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -21,6 +21,7 @@ Patch50: paps-cups.patch Patch51: paps-cpilpi.patch Patch52: paps-dsc-compliant.patch Patch53: paps-autoconf262.patch +Patch54: paps-fix-cpi.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -56,6 +57,7 @@ applications using paps API. %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc %patch53 -p1 -b .autoconf262 +%patch54 -p1 -b .fixcpi libtoolize -f -c autoreconf @@ -99,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Wed Oct 14 2009 Akira TAGOH - 0.6.9-11 +- Fix code that deal with CPI parameter to be accurate. (#524883) + * Sat Jul 25 2009 Fedora Release Engineering - 0.6.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From db1eb5a2292821514a5caf6abb90fd9bb65cb128 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 23:30:19 +0000 Subject: [PATCH 13/87] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2525be0..c2725d6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: paps -# $Id: Makefile,v 1.1 2006/06/27 07:10:51 tagoh Exp $ +# $Id: Makefile,v 1.2 2007/10/15 19:12:57 notting Exp $ NAME := paps SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 3db1da9c27c0bdc9e010ecb52e7112247dae3ee8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:50:45 +0000 Subject: [PATCH 14/87] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2525be0..c2725d6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: paps -# $Id: Makefile,v 1.1 2006/06/27 07:10:51 tagoh Exp $ +# $Id: Makefile,v 1.2 2007/10/15 19:12:57 notting Exp $ NAME := paps SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 1d7b2c794edebe4fa1ffa7d30fcc17ca950e2a03 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 8 Dec 2009 09:35:59 +0000 Subject: [PATCH 15/87] - Add paps.convs to behaves the cups filter without the hardcoded thing in cups. (#545031) --- paps.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index f003605..ec5884a 100644 --- a/paps.spec +++ b/paps.spec @@ -1,10 +1,11 @@ Name: paps Version: 0.6.8 -Release: 11%{?dist} +Release: 12%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/paps/paps-%{version}.tar.gz +Source1: paps.convs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 @@ -79,6 +80,8 @@ rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la %{__mkdir_p} $RPM_BUILD_ROOT/usr/lib/cups/filter # Not libdir ln -s %{_bindir}/paps $RPM_BUILD_ROOT/usr/lib/cups/filter/texttopaps +install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups +install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %clean rm -rf $RPM_BUILD_ROOT @@ -88,6 +91,8 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/paps %{_mandir}/man1/paps.1* /usr/lib/cups/filter/texttopaps +%dir %{_sysconfdir}/cups +%{_sysconfdir}/cups/paps.convs %files libs %defattr(-, root, root, -) @@ -101,7 +106,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog -* Wed Oct 14 2009 Akira TAGOH - 0.6.9-11 +* Tue Dec 8 2009 Akira TAGOH - 0.6.8-12 +- Add paps.convs to behaves the cups filter without the hardcoded thing + in cups. (#545031) + +* Wed Oct 14 2009 Akira TAGOH - 0.6.8-11 - Fix code that deal with CPI parameter to be accurate. (#524883) * Sat Jul 25 2009 Fedora Release Engineering - 0.6.8-10 From a507ea0ba5574205304ffb614598d0cbb57c8c8d Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 8 Dec 2009 09:38:18 +0000 Subject: [PATCH 16/87] missing file --- paps.convs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 paps.convs diff --git a/paps.convs b/paps.convs new file mode 100644 index 0000000..03d406a --- /dev/null +++ b/paps.convs @@ -0,0 +1,8 @@ +# Use the texttopaps filter (from the paps package) in preference to +# the texttops filter shipped as part of CUPS. This is so that we +# have full UTF-8 support. +# +# To use the default CUPS texttops filter instead, remove this file +# (or the package it belongs to). + +text/plain application/postscript 30 texttopaps From 42a36f585702a08bd37bdaef6efa7e76afc1da2f Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 12 Mar 2010 05:04:23 +0000 Subject: [PATCH 17/87] - Fix the directory's group ownership. (#572733) --- paps.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/paps.spec b/paps.spec index ec5884a..b603a2e 100644 --- a/paps.spec +++ b/paps.spec @@ -1,10 +1,10 @@ Name: paps Version: 0.6.8 -Release: 12%{?dist} +Release: 13%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ -Source0: http://prdownloads.sourceforge.net/paps/paps-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: paps.convs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel @@ -91,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/paps %{_mandir}/man1/paps.1* /usr/lib/cups/filter/texttopaps -%dir %{_sysconfdir}/cups +%dir %attr (0755, root, lp) %{_sysconfdir}/cups %{_sysconfdir}/cups/paps.convs %files libs @@ -106,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri Mar 12 2010 Akira TAGOH - 0.6.8-13 +- Fix the directory's group ownership. (#572733) + * Tue Dec 8 2009 Akira TAGOH - 0.6.8-12 - Add paps.convs to behaves the cups filter without the hardcoded thing in cups. (#545031) From bd0b84e12dc93d43e67bf6c9a53a4f20075945e1 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 27 Jul 2010 03:40:55 +0000 Subject: [PATCH 18/87] - Fix the infinite loop in splitting paragraphs (#618483) --- paps-fix-loop-in-split.patch | 31 ++++++++++++++++++++ paps.spec | 57 ++++++++++++++++++++---------------- 2 files changed, 62 insertions(+), 26 deletions(-) create mode 100644 paps-fix-loop-in-split.patch diff --git a/paps-fix-loop-in-split.patch b/paps-fix-loop-in-split.patch new file mode 100644 index 0000000..89bc1fc --- /dev/null +++ b/paps-fix-loop-in-split.patch @@ -0,0 +1,31 @@ +From 6c3fa9959dd454938378ade2fec8e84cee7d6916 Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +Date: Tue, 27 Jul 2010 12:19:30 +0900 +Subject: [PATCH 1/2] Fix rhbz#618483: texttopaps becoms runaway memory hog + + * src/paps.c (split_text_into_paragraphs): fix a infinite loop + when non-printable characters are in the text. +--- + src/paps.c | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + + * paps.c: Erased --justify option since it is not implemented in +diff --git a/src/paps.c b/src/paps.c +index 72dbaad..dcef349 100644 +--- a/src/paps.c ++++ b/src/paps.c +@@ -835,7 +835,10 @@ split_text_into_paragraphs (PangoContext *pango_context, + goto fail; + } + for (i = 0; i < len; i++) { +- wwidth += wcwidth(wtext[i]); ++ gssize w = wcwidth(wtext[i]); ++ ++ if (w >= 0) ++ wwidth += w; + if (wwidth > col) + break; + wnewtext[i] = wtext[i]; +-- +1.7.1.1 + diff --git a/paps.spec b/paps.spec index b603a2e..aad275e 100644 --- a/paps.spec +++ b/paps.spec @@ -1,46 +1,47 @@ -Name: paps -Version: 0.6.8 -Release: 13%{?dist} +Name: paps +Version: 0.6.8 +Release: 14%{?dist} -License: LGPLv2+ -URL: http://paps.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz -Source1: paps.convs -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel +License: LGPLv2+ +URL: http://paps.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source1: paps.convs +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 -Patch0: paps-0.6.8-shared.patch +Patch0: paps-0.6.8-shared.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 -Patch1: paps-0.6.8-wordwrap.patch +Patch1: paps-0.6.8-wordwrap.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241 -Patch2: paps-langinfo.patch +Patch2: paps-langinfo.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241 -Patch3: paps-0.6.6-lcnumeric.patch +Patch3: paps-0.6.6-lcnumeric.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241 -Patch4: paps-exitcode.patch -Patch50: paps-cups.patch -Patch51: paps-cpilpi.patch -Patch52: paps-dsc-compliant.patch -Patch53: paps-autoconf262.patch -Patch54: paps-fix-cpi.patch +Patch4: paps-exitcode.patch +Patch50: paps-cups.patch +Patch51: paps-cpilpi.patch +Patch52: paps-dsc-compliant.patch +Patch53: paps-autoconf262.patch +Patch54: paps-fix-cpi.patch +Patch55: paps-fix-loop-in-split.patch -Summary: Plain Text to PostScript converter -Group: Applications/Publishing +Summary: Plain Text to PostScript converter +Group: Applications/Publishing %description paps is a PostScript converter from plain text file using Pango. %package libs -Summary: Libraries for paps -Group: Development/Libraries +Summary: Libraries for paps +Group: Development/Libraries %description libs paps is a PostScript converter from plain text file using Pango. This package contains the library for paps. %package devel -Summary: Development files for paps -Group: Development/Libraries -Requires: %{name}-libs = %{version}-%{release} +Summary: Development files for paps +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} %description devel paps is a PostScript converter from plain text file using Pango. @@ -59,6 +60,7 @@ applications using paps API. %patch52 -p1 -b .dsc %patch53 -p1 -b .autoconf262 %patch54 -p1 -b .fixcpi +%patch55 -p1 -b .loop libtoolize -f -c autoreconf @@ -106,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Tue Jul 27 2010 Akira TAGOH - 0.6.8-14 +- Fix the infinite loop in splitting paragraphs (#618483) + * Fri Mar 12 2010 Akira TAGOH - 0.6.8-13 - Fix the directory's group ownership. (#572733) From 50c03022fef020c0ec2992954a4f35b396a4284c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 05:31:57 +0000 Subject: [PATCH 19/87] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- 2 files changed, 21 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index c2725d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: paps -# $Id: Makefile,v 1.2 2007/10/15 19:12:57 notting Exp $ -NAME := paps -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attempt a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) From ed42d378d8b3510e65e92674ccce39d34a958c3f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 05:31:58 +0000 Subject: [PATCH 20/87] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index c2725d6..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: paps -# $Id: Makefile,v 1.2 2007/10/15 19:12:57 notting Exp $ -NAME := paps -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attempt a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 1c26f78..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-9 From 21e1a3334d06112b69232bfae4f1c30a7cb44827 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 08:17:24 -0600 Subject: [PATCH 21/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index aad275e..33afd34 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 14%{?dist} +Release: 15%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -108,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 0.6.8-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Tue Jul 27 2010 Akira TAGOH - 0.6.8-14 - Fix the infinite loop in splitting paragraphs (#618483) From 2107e9ac17de75424d06ecaf1e9b6161cc871370 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 24 Jun 2011 19:03:50 +0900 Subject: [PATCH 22/87] Fix FTBFS issue. (#716211) --- paps-cups.patch | 25 +++++++++++++------------ paps-fix-cpi.patch | 14 +++++++------- paps.spec | 5 ++++- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/paps-cups.patch b/paps-cups.patch index 286ced2..acedf48 100644 --- a/paps-cups.patch +++ b/paps-cups.patch @@ -40,15 +40,16 @@ diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c --- paps-0.6.8.orig/src/paps.c 2008-11-07 08:21:05.000000000 +0900 +++ paps-0.6.8/src/paps.c 2008-11-07 08:26:28.000000000 +0900 -@@ -31,6 +31,7 @@ +@@ -31,6 +31,8 @@ #include #include #include +#include ++#include #define BUFSIZE 1024 #define DEFAULT_FONT_FAMILY "Monospace" -@@ -86,9 +87,11 @@ typedef struct { +@@ -86,9 +88,11 @@ typedef struct { gboolean do_wordwrap; gboolean do_use_markup; gboolean do_stretch_chars; @@ -60,7 +61,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c gint lpi; gint cpi; } page_layout_t; -@@ -320,8 +323,8 @@ int main(int argc, char *argv[]) +@@ -320,8 +324,8 @@ int main(int argc, char *argv[]) int num_pages = 1; int gutter_width = 40; int total_gutter_width; @@ -71,7 +72,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c int do_tumble = -1; /* -1 means not initialized */ int do_duplex = -1; gchar *paps_header = NULL; -@@ -331,6 +334,8 @@ int main(int argc, char *argv[]) +@@ -331,6 +335,8 @@ int main(int argc, char *argv[]) int max_width = 0, w; GIConv cvh = NULL; GOptionGroup *options; @@ -80,7 +81,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Set locale from environment. */ setlocale(LC_ALL, ""); -@@ -348,6 +353,130 @@ int main(int argc, char *argv[]) +@@ -348,6 +354,130 @@ int main(int argc, char *argv[]) g_option_context_add_main_entries(ctxt, entries, NULL); #endif @@ -211,7 +212,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* Parse command line */ if (!g_option_context_parse(ctxt, &argc, &argv, &error)) { -@@ -374,6 +503,8 @@ int main(int argc, char *argv[]) +@@ -374,6 +504,8 @@ int main(int argc, char *argv[]) IN = stdin; } title = filename_in; @@ -220,7 +221,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c paps = paps_new(); pango_context = paps_get_pango_context (paps); -@@ -392,8 +523,10 @@ int main(int argc, char *argv[]) +@@ -392,8 +524,10 @@ int main(int argc, char *argv[]) pango_context_set_font_description (pango_context, font_description); /* Page layout */ @@ -233,7 +234,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c if (num_columns == 1) total_gutter_width = 0; -@@ -456,6 +589,8 @@ int main(int argc, char *argv[]) +@@ -456,6 +590,8 @@ int main(int argc, char *argv[]) page_layout.pango_dir = pango_dir; page_layout.filename = filename_in; page_layout.header_font_desc = header_font_desc; @@ -242,7 +243,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) -@@ -756,6 +891,12 @@ split_text_into_paragraphs (PangoContext +@@ -756,6 +892,12 @@ split_text_into_paragraphs (PangoContext if (wc == (gunichar)-1) { fprintf (stderr, "%s: Invalid character in input\n", g_get_prgname ()); @@ -255,7 +256,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c wc = 0; } if (!*p || !wc || wc == '\n' || wc == '\f') -@@ -925,21 +1066,32 @@ void print_postscript_header(FILE *OUT, +@@ -925,21 +1067,32 @@ void print_postscript_header(FILE *OUT, int orientation = page_layout->page_width > page_layout->page_height; int bb_page_width = page_layout->page_width; int bb_page_height = page_layout->page_height; @@ -290,7 +291,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c "%%%%BeginProlog\n" "%%%%Orientation: %s\n" "/papsdict 1 dict def\n" -@@ -961,7 +1113,7 @@ void print_postscript_header(FILE *OUT, +@@ -961,7 +1114,7 @@ void print_postscript_header(FILE *OUT, " pagewidth\n" " /pagewidth pageheight def\n" " /pageheight exch def\n" @@ -299,7 +300,7 @@ diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c " } if\n" " 2 dict\n" " dup /PageSize [pagewidth pageheight] put\n" -@@ -986,11 +1138,21 @@ void print_postscript_header(FILE *OUT, +@@ -986,11 +1139,21 @@ void print_postscript_header(FILE *OUT, " 90 rotate\n" " 0 pageheight neg translate\n" "} def\n", diff --git a/paps-fix-cpi.patch b/paps-fix-cpi.patch index 460219d..f917296 100644 --- a/paps-fix-cpi.patch +++ b/paps-fix-cpi.patch @@ -90,16 +90,16 @@ diff --git a/src/paps.c b/src/paps.c index 334d547..72dbaad 100644 --- a/src/paps.c +++ b/src/paps.c -@@ -32,6 +32,8 @@ - #include +@@ -33,6 +33,8 @@ #include #include + #include +#include +#include #define BUFSIZE 1024 #define DEFAULT_FONT_FAMILY "Monospace" -@@ -593,6 +595,8 @@ int main(int argc, char *argv[]) +@@ -594,6 +596,8 @@ int main(int argc, char *argv[]) page_layout.owner = page_owner; page_layout.cups_mode = cups_mode; @@ -108,7 +108,7 @@ index 334d547..72dbaad 100644 /* calculate x-coordinate scale */ if (page_layout.cpi > 0.0L) { -@@ -605,7 +609,7 @@ int main(int argc, char *argv[]) +@@ -606,7 +610,7 @@ int main(int argc, char *argv[]) w = pango_font_metrics_get_approximate_digit_width (metrics); if (w > max_width) max_width = w; @@ -117,7 +117,7 @@ index 334d547..72dbaad 100644 pango_font_metrics_unref (metrics); g_object_unref (G_OBJECT (fontmap)); -@@ -613,6 +617,8 @@ int main(int argc, char *argv[]) +@@ -614,6 +618,8 @@ int main(int argc, char *argv[]) // update the font size to that width pango_font_description_set_size (font_description, font_size * page_layout.scale_x); pango_context_set_font_description (pango_context, font_description); @@ -126,7 +126,7 @@ index 334d547..72dbaad 100644 } page_layout.scale_x = page_layout.scale_y = 1.0; -@@ -726,119 +732,6 @@ read_file (FILE *file, +@@ -727,119 +733,6 @@ read_file (FILE *file, return text; } @@ -246,7 +246,7 @@ index 334d547..72dbaad 100644 /* Take a UTF8 string and break it into paragraphs on \n characters */ static GList * -@@ -904,18 +797,85 @@ split_text_into_paragraphs (PangoContext *pango_context, +@@ -905,18 +798,85 @@ split_text_into_paragraphs (PangoContext *pango_context, para->text = last_para; para->length = p - last_para; para->layout = pango_layout_new (pango_context); diff --git a/paps.spec b/paps.spec index 33afd34..80945cd 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 15%{?dist} +Release: 16%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -108,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri Jun 24 2011 Akira TAGOH - 0.6.8-16 +- Fix FTBFS issue. (#716211) + * Tue Feb 08 2011 Fedora Release Engineering - 0.6.8-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From e064ed5d96f85103acf3253f15c110c1874c7988 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 5 Dec 2011 12:28:51 +0900 Subject: [PATCH 23/87] Add ldconfig in %post/%postun for paps-libs (#759880) --- paps.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 80945cd..463cb92 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 16%{?dist} +Release: 17%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -87,6 +87,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %clean rm -rf $RPM_BUILD_ROOT +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + %files %defattr(-, root, root, -) %doc AUTHORS COPYING.LIB README TODO @@ -108,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Mon Dec 5 2011 Akira TAGOH - 0.6.8-17 +- Add ldconfig in %%post/%%postun for paps-libs (#759880) + * Fri Jun 24 2011 Akira TAGOH - 0.6.8-16 - Fix FTBFS issue. (#716211) From 78a3b8eafcb3e27321f680a90669d07b24ee9ee3 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 11 Jan 2012 11:28:09 +0900 Subject: [PATCH 24/87] Use %{_cups_serverbin} instead of the hardcoded path. (#772240) --- paps.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/paps.spec b/paps.spec index 463cb92..cdda4eb 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 17%{?dist} +Release: 18%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -79,8 +79,8 @@ make install DESTDIR=$RPM_BUILD_ROOT rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la # make a symlink for CUPS filter -%{__mkdir_p} $RPM_BUILD_ROOT/usr/lib/cups/filter # Not libdir -ln -s %{_bindir}/paps $RPM_BUILD_ROOT/usr/lib/cups/filter/texttopaps +%{__mkdir_p} $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir +ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups @@ -95,7 +95,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING.LIB README TODO %{_bindir}/paps %{_mandir}/man1/paps.1* -/usr/lib/cups/filter/texttopaps +%{_cups_serverbin}/filter/texttopaps %dir %attr (0755, root, lp) %{_sysconfdir}/cups %{_sysconfdir}/cups/paps.convs @@ -111,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Wed Jan 11 2012 Akira TAGOH - 0.6.8-18 +- Use %%{_cups_serverbin} instead of the hardcoded path. (#772240) + * Mon Dec 5 2011 Akira TAGOH - 0.6.8-17 - Add ldconfig in %%post/%%postun for paps-libs (#759880) From 40974b847eec01920af49a314312dae097944f26 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 20 Jul 2012 03:16:14 -0500 Subject: [PATCH 25/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index cdda4eb..f5b8c90 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 18%{?dist} +Release: 19%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -111,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri Jul 20 2012 Fedora Release Engineering - 0.6.8-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Wed Jan 11 2012 Akira TAGOH - 0.6.8-18 - Use %%{_cups_serverbin} instead of the hardcoded path. (#772240) From a013fcef352fe66326bc27fd5cf5b2aff0b766c2 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 6 Sep 2012 18:08:22 +0900 Subject: [PATCH 26/87] Add a missing description of --encoding in manpage. (#854897) --- paps-854897-manpage.patch | 13 +++++++++++++ paps.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 paps-854897-manpage.patch diff --git a/paps-854897-manpage.patch b/paps-854897-manpage.patch new file mode 100644 index 0000000..c841f44 --- /dev/null +++ b/paps-854897-manpage.patch @@ -0,0 +1,13 @@ +diff -pruN paps-0.6.8.orig/src/paps.1 paps-0.6.8/src/paps.1 +--- paps-0.6.8.orig/src/paps.1 2007-01-19 20:05:27.000000000 +0900 ++++ paps-0.6.8/src/paps.1 2012-09-06 18:04:01.000000000 +0900 +@@ -64,6 +64,9 @@ Draw page header for each page. + .B \-\-markup + Interpret the text as pango markup. + .TP ++.B \-\-encoding=ENCODING ++Assume the documentation encoding is ENCODING. ++.TP + .B \-\-lpi + Set the lines per inch. This determines the line spacing. + .TP diff --git a/paps.spec b/paps.spec index f5b8c90..ad6f359 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 19%{?dist} +Release: 20%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -18,6 +18,7 @@ Patch2: paps-langinfo.patch Patch3: paps-0.6.6-lcnumeric.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241 Patch4: paps-exitcode.patch +Patch5: paps-854897-manpage.patch Patch50: paps-cups.patch Patch51: paps-cpilpi.patch Patch52: paps-dsc-compliant.patch @@ -55,6 +56,7 @@ applications using paps API. %patch2 -p1 -b .langinfo %patch3 -p1 -b .lcnumeric %patch4 -p1 -b .exitcode +%patch5 -p1 -b .manpage %patch50 -p1 -b .cups %patch51 -p1 -b .cpilpi %patch52 -p1 -b .dsc @@ -111,6 +113,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Thu Sep 6 2012 Akira TAGOH - 0.6.8-20 +- Add a missing description of --encoding in manpage. (#854897) + * Fri Jul 20 2012 Fedora Release Engineering - 0.6.8-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 28dbd1fc7f71feee95a38383801daa9bc46b2a10 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 21 Sep 2012 16:21:57 +0900 Subject: [PATCH 27/87] Fix wrong width for whitespaces when enabling CPI feature. (#857592) --- paps-fix-tab-width.patch | 86 ++++++++++++++++++++++++++++++++++++++++ paps.spec | 7 +++- 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 paps-fix-tab-width.patch diff --git a/paps-fix-tab-width.patch b/paps-fix-tab-width.patch new file mode 100644 index 0000000..7924e11 --- /dev/null +++ b/paps-fix-tab-width.patch @@ -0,0 +1,86 @@ +From 0b53e86359211b18eb4bb38270324f303920a363 Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +Date: Fri, 21 Sep 2012 16:16:38 +0900 +Subject: [PATCH] Fix tab width issue when enabling CPI + +--- + src/libpaps.c | 40 +++++++++++++++++++++++++++++----------- + 1 file changed, 29 insertions(+), 11 deletions(-) + +diff --git a/src/libpaps.c b/src/libpaps.c +index 1b80257..29d64b0 100644 +--- a/src/libpaps.c ++++ b/src/libpaps.c +@@ -251,7 +251,6 @@ gchar *paps_layout_line_to_postscript_strdup(paps_t *paps_, + { + paps_private_t *paps = (paps_private_t*)paps_; + GString *layout_str = g_string_new(""); +- gchar *ret_str; + + add_line_to_postscript(paps, + layout_str, +@@ -259,10 +258,7 @@ gchar *paps_layout_line_to_postscript_strdup(paps_t *paps_, + pos_y, + layout_line); + +- ret_str = layout_str->str; +- g_string_free(layout_str, FALSE); +- +- return ret_str; ++ return g_string_free(layout_str, FALSE); + } + + static void +@@ -408,9 +404,26 @@ static void draw_contour(paps_private_t *paps, + { + GSList *runs_list; + double scale = 72.0 / PANGO_SCALE / PAPS_DPI; ++ PangoGlyphUnit avg_width = 1; + + g_string_append(layout_str, "("); +- ++ ++ if (paps->cpi > 0.0L) ++ { ++ /* calculate approximate width per a character */ ++ for (runs_list = pango_line->runs; runs_list != NULL; runs_list = g_slist_next(runs_list)) ++ { ++ PangoLayoutRun *run = runs_list->data; ++ PangoGlyphString *glyphs = run->glyphs; ++ int i; ++ ++ for (i = 0; i < glyphs->num_glyphs; i++) ++ { ++ if (glyphs->glyphs[i].glyph != PANGO_GLYPH_EMPTY) ++ avg_width = MAX (avg_width, glyphs->glyphs[i].geometry.width); ++ } ++ } ++ } + /* Loop over the runs and output font info */ + runs_list = pango_line->runs; + double x_pos = line_start_pos_x; +@@ -433,11 +446,16 @@ static void draw_contour(paps_private_t *paps, + glyph_pos_x = x_pos + 1.0*geometry.x_offset * scale; + glyph_pos_y = line_start_pos_y - 1.0*geometry.y_offset * scale; + +- if (paps->cpi > 0.0L) { +- x_pos += (1 / paps->cpi * 72.0); +- } else { +- x_pos += geometry.width * scale * paps->scale_x; +- } ++ if (paps->cpi > 0.0L) ++ { ++ int n = geometry.width / avg_width; ++ ++ x_pos += ((double)n) * (1 / paps->cpi * 72.0); ++ } ++ else ++ { ++ x_pos += geometry.width * scale * paps->scale_x; ++ } + + if (glyphs->glyphs[glyph_idx].glyph == PANGO_GLYPH_EMPTY) + continue; +-- +1.7.11.4 + diff --git a/paps.spec b/paps.spec index ad6f359..259e2f7 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 20%{?dist} +Release: 21%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -25,6 +25,7 @@ Patch52: paps-dsc-compliant.patch Patch53: paps-autoconf262.patch Patch54: paps-fix-cpi.patch Patch55: paps-fix-loop-in-split.patch +Patch56: paps-fix-tab-width.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -63,6 +64,7 @@ applications using paps API. %patch53 -p1 -b .autoconf262 %patch54 -p1 -b .fixcpi %patch55 -p1 -b .loop +%patch56 -p1 -b .tab libtoolize -f -c autoreconf @@ -113,6 +115,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Fri Sep 21 2012 Akira TAGOH - 0.6.8-21 +- Fix wrong width for whitespaces when enabling CPI feature. (#857592) + * Thu Sep 6 2012 Akira TAGOH - 0.6.8-20 - Add a missing description of --encoding in manpage. (#854897) From ee0a9b471841a632692869e17eda9c77b00389d8 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 24 Sep 2012 10:55:10 +0900 Subject: [PATCH 28/87] Ensure the latest version of paps-libs are installed. --- paps.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 259e2f7..fabe980 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 21%{?dist} +Release: 22%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -29,6 +29,7 @@ Patch56: paps-fix-tab-width.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing +Requires: %{name}-libs = %{version}-%{release} %description paps is a PostScript converter from plain text file using Pango. @@ -115,6 +116,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* MOn Sep 24 2012 Akira TAGOH - 0.6.8-22 +- Ensure the latest version of paps-libs are installed. + * Fri Sep 21 2012 Akira TAGOH - 0.6.8-21 - Fix wrong width for whitespaces when enabling CPI feature. (#857592) From 8f2354d8c1b11a751d9d33b184b7014fbf91cffe Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 24 Sep 2012 10:59:11 +0900 Subject: [PATCH 29/87] fix a typo --- paps.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index fabe980..3f020f5 100644 --- a/paps.spec +++ b/paps.spec @@ -116,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog -* MOn Sep 24 2012 Akira TAGOH - 0.6.8-22 +* Mon Sep 24 2012 Akira TAGOH - 0.6.8-22 - Ensure the latest version of paps-libs are installed. * Fri Sep 21 2012 Akira TAGOH - 0.6.8-21 From f446746739e9bb0d329a04115a2a067520c96bc5 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 23 Nov 2012 14:42:36 +0900 Subject: [PATCH 30/87] the spec file cleanup - Fix the undefined symbol issue in libpaps.so.0 - Correct FSF address in the COPYING.LIB --- paps-correct-fsf-address.patch | 77 ++++++++++++++++++++++++++++++++++ paps-fix-non-weak-symbol.patch | 26 ++++++++++++ paps.spec | 36 +++++++++------- 3 files changed, 125 insertions(+), 14 deletions(-) create mode 100644 paps-correct-fsf-address.patch create mode 100644 paps-fix-non-weak-symbol.patch diff --git a/paps-correct-fsf-address.patch b/paps-correct-fsf-address.patch new file mode 100644 index 0000000..5313f85 --- /dev/null +++ b/paps-correct-fsf-address.patch @@ -0,0 +1,77 @@ +diff -pruN paps-0.6.8.orig/COPYING.LIB paps-0.6.8/COPYING.LIB +--- paps-0.6.8.orig/COPYING.LIB 2005-12-21 04:35:27.000000000 +0900 ++++ paps-0.6.8/COPYING.LIB 2012-11-23 14:30:46.297512335 +0900 +@@ -1,16 +1,15 @@ +- GNU LIBRARY GENERAL PUBLIC LICENSE +- Version 2, June 1991 ++ GNU LIBRARY GENERAL PUBLIC LICENSE ++ Version 2, June 1991 + + Copyright (C) 1991 Free Software Foundation, Inc. +- 59 Temple Place - Suite 330 +- Boston, MA 02111-1307, USA. ++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + [This is the first released version of the library GPL. It is + numbered 2 because it goes with version 2 of the ordinary GPL.] + +- Preamble ++ Preamble + + The licenses for most software are designed to take away your + freedom to share and change it. By contrast, the GNU General Public +@@ -100,7 +99,7 @@ works together with the library. + Note that it is possible for a library to be covered by the ordinary + General Public License rather than by this special one. + +- GNU LIBRARY GENERAL PUBLIC LICENSE ++ GNU LIBRARY GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library which +@@ -412,7 +411,7 @@ decision will be guided by the two goals + of all derivatives of our free software and of promoting the sharing + and reuse of software generally. + +- NO WARRANTY ++ NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO + WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +@@ -435,8 +434,9 @@ FAILURE OF THE LIBRARY TO OPERATE WITH A + SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH + DAMAGES. + +- END OF TERMS AND CONDITIONS +- How to Apply These Terms to Your New Libraries ++ END OF TERMS AND CONDITIONS ++ ++ How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest + possible use to the public, we recommend making it free software that +@@ -453,18 +453,18 @@ convey the exclusion of warranty; and ea + Copyright (C) + + This library is free software; you can redistribute it and/or +- modify it under the terms of the GNU Lesser General Public ++ modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +- Lesser General Public License for more details. ++ Library General Public License for more details. + +- You should have received a copy of the GNU Lesser General Public ++ You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free Software +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Also add information on how to contact you by electronic and paper mail. + diff --git a/paps-fix-non-weak-symbol.patch b/paps-fix-non-weak-symbol.patch new file mode 100644 index 0000000..8edf596 --- /dev/null +++ b/paps-fix-non-weak-symbol.patch @@ -0,0 +1,26 @@ +diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am +--- paps-0.6.8.orig/src/Makefile.am 2012-11-23 14:22:51.506176037 +0900 ++++ paps-0.6.8/src/Makefile.am 2012-11-23 14:25:41.828410416 +0900 +@@ -8,13 +8,14 @@ bin_PROGRAMS = paps + paps_CFLAGS = -Wall $(CUPS_CFLAGS) + paps_SOURCES = paps.c + paps_LDADD = $(lib_LTLIBRARIES) $(all_libraries) +-paps_LDFLAGS = `pkg-config --libs pangoft2` $(CUPS_LIBS) ++paps_LDFLAGS = $(CUPS_LIBS) + paps_DEPENDENCIES = $(lib_LTLIBRARIES) + + EXTRA_DIST = test_libpaps.c paps.1 + + # set the include path found by configure + INCLUDES= $(all_includes) `pkg-config --cflags pangoft2` ++LIBS = `pkg-config --libs pangoft2` + + # Test program + noinst_PROGRAMS = test_libpaps +@@ -22,6 +23,5 @@ noinst_PROGRAMS = test_libpaps + + test_libpaps_SOURCES = test_libpaps.c + test_libpaps_LDADD = $(lib_LTLIBRARIES) $(all_libraries) +-test_libpaps_LDFLAGS = `pkg-config --libs pangoft2` + test_libpaps_DEPENDENCIES = $(lib_LTLIBRARIES) + diff --git a/paps.spec b/paps.spec index 3f020f5..525ea12 100644 --- a/paps.spec +++ b/paps.spec @@ -1,12 +1,11 @@ Name: paps Version: 0.6.8 -Release: 22%{?dist} +Release: 23%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: paps.convs -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch @@ -18,18 +17,26 @@ Patch2: paps-langinfo.patch Patch3: paps-0.6.6-lcnumeric.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241 Patch4: paps-exitcode.patch +## rhbz#854897 Patch5: paps-854897-manpage.patch +## Fedora specific patch to integrate with CUPS Patch50: paps-cups.patch Patch51: paps-cpilpi.patch +## rhbz#424951 Patch52: paps-dsc-compliant.patch Patch53: paps-autoconf262.patch +## rhbz#524883 Patch54: paps-fix-cpi.patch -Patch55: paps-fix-loop-in-split.patch -Patch56: paps-fix-tab-width.patch +## rhbz#618483 +Patch55: paps-fix-loop-in-split.patch +## rhbz#857592 +Patch56: paps-fix-tab-width.patch +Patch57: paps-fix-non-weak-symbol.patch +Patch58: paps-correct-fsf-address.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing -Requires: %{name}-libs = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} %description paps is a PostScript converter from plain text file using Pango. @@ -66,6 +73,8 @@ applications using paps API. %patch54 -p1 -b .fixcpi %patch55 -p1 -b .loop %patch56 -p1 -b .tab +%patch57 -p1 -b .weak-symbol +%patch58 -p1 -b .fsf libtoolize -f -c autoreconf @@ -76,27 +85,23 @@ make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - -make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" # remove unnecessary files rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la # make a symlink for CUPS filter -%{__mkdir_p} $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir +install -d $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups -%clean -rm -rf $RPM_BUILD_ROOT + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files -%defattr(-, root, root, -) %doc AUTHORS COPYING.LIB README TODO %{_bindir}/paps %{_mandir}/man1/paps.1* @@ -105,17 +110,20 @@ rm -rf $RPM_BUILD_ROOT %{_sysconfdir}/cups/paps.convs %files libs -%defattr(-, root, root, -) %doc COPYING.LIB %{_libdir}/libpaps.so.* %files devel -%defattr(-, root, root, -) %doc COPYING.LIB %{_includedir}/libpaps.h %{_libdir}/libpaps.so %changelog +* Fri Nov 23 2012 Akira TAGOH - 0.6.8-23 +- the spec file cleanup +- Fix the undefined symbol issue in libpaps.so.0 +- Correct FSF address in the COPYING.LIB + * Mon Sep 24 2012 Akira TAGOH - 0.6.8-22 - Ensure the latest version of paps-libs are installed. From 144452fa0d978df5fad9d56249bfb4228edb214f Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 03:48:36 -0600 Subject: [PATCH 31/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 525ea12..aab4f4d 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 23%{?dist} +Release: 24%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -119,6 +119,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %{_libdir}/libpaps.so %changelog +* Thu Feb 14 2013 Fedora Release Engineering - 0.6.8-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Fri Nov 23 2012 Akira TAGOH - 0.6.8-23 - the spec file cleanup - Fix the undefined symbol issue in libpaps.so.0 From 59749d983ec87e1ffd2d03329815c4055815b45f Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 18 Apr 2013 19:07:20 +0900 Subject: [PATCH 32/87] Rebuilt for aarch64 support. (#926309) --- paps.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index aab4f4d..cfeea06 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 24%{?dist} +Release: 25%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -76,7 +76,7 @@ applications using paps API. %patch57 -p1 -b .weak-symbol %patch58 -p1 -b .fsf libtoolize -f -c -autoreconf +autoreconf -f -i %build @@ -119,6 +119,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %{_libdir}/libpaps.so %changelog +* Thu Apr 18 2013 Akira TAGOH - 0.6.8-25 +- Rebuilt for aarch64 support. (#926309) + * Thu Feb 14 2013 Fedora Release Engineering - 0.6.8-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From 957fbf60ecc9eab901e1f81935172800a2444f28 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 31 Jul 2013 15:45:17 +0900 Subject: [PATCH 33/87] Fix the width calculation with CPI enabled. (#990228) --- paps-fix-tab-width.patch | 19 +++++-------------- paps.spec | 5 ++++- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/paps-fix-tab-width.patch b/paps-fix-tab-width.patch index 7924e11..a1011ee 100644 --- a/paps-fix-tab-width.patch +++ b/paps-fix-tab-width.patch @@ -1,16 +1,9 @@ -From 0b53e86359211b18eb4bb38270324f303920a363 Mon Sep 17 00:00:00 2001 -From: Akira TAGOH -Date: Fri, 21 Sep 2012 16:16:38 +0900 -Subject: [PATCH] Fix tab width issue when enabling CPI - +@@ -, +, @@ --- src/libpaps.c | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) - -diff --git a/src/libpaps.c b/src/libpaps.c -index 1b80257..29d64b0 100644 ---- a/src/libpaps.c -+++ b/src/libpaps.c +--- a/src/libpaps.c ++++ a/src/libpaps.c @@ -251,7 +251,6 @@ gchar *paps_layout_line_to_postscript_strdup(paps_t *paps_, { paps_private_t *paps = (paps_private_t*)paps_; @@ -70,9 +63,9 @@ index 1b80257..29d64b0 100644 - } + if (paps->cpi > 0.0L) + { -+ int n = geometry.width / avg_width; ++ double n = ((double)geometry.width) / avg_width; + -+ x_pos += ((double)n) * (1 / paps->cpi * 72.0); ++ x_pos += n * (1 / paps->cpi * 72.0); + } + else + { @@ -82,5 +75,3 @@ index 1b80257..29d64b0 100644 if (glyphs->glyphs[glyph_idx].glyph == PANGO_GLYPH_EMPTY) continue; -- -1.7.11.4 - diff --git a/paps.spec b/paps.spec index cfeea06..8baca15 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 25%{?dist} +Release: 26%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -119,6 +119,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %{_libdir}/libpaps.so %changelog +* Wed Jul 31 2013 Akira TAGOH - 0.6.8-26 +- Fix the width calculation with CPI enabled. (#990228) + * Thu Apr 18 2013 Akira TAGOH - 0.6.8-25 - Rebuilt for aarch64 support. (#926309) From c0e8fa691f53ef61f31ead8be0486bce4d5baa94 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 16 Dec 2013 18:13:48 +0900 Subject: [PATCH 34/87] Move the place of paps.convs to %{_datadir}/cups/mime. (#1042984) --- paps.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/paps.spec b/paps.spec index 8baca15..e9ee0e4 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 26%{?dist} +Release: 27%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -37,6 +37,7 @@ Patch58: paps-correct-fsf-address.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing Requires: %{name}-libs = %{version}-%{release} +Requires: cups-filesystem %description paps is a PostScript converter from plain text file using Pango. @@ -95,7 +96,7 @@ install -d $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups -install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups +install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %post libs -p /sbin/ldconfig @@ -106,8 +107,7 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %{_bindir}/paps %{_mandir}/man1/paps.1* %{_cups_serverbin}/filter/texttopaps -%dir %attr (0755, root, lp) %{_sysconfdir}/cups -%{_sysconfdir}/cups/paps.convs +%{_datadir}/cups/mime/paps.convs %files libs %doc COPYING.LIB @@ -119,6 +119,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups %{_libdir}/libpaps.so %changelog +* Mon Dec 16 2013 Akira TAGOH - 0.6.8-27 +- Move the place of paps.convs to %%{_datadir}/cups/mime. (#1042984) + * Wed Jul 31 2013 Akira TAGOH - 0.6.8-26 - Fix the width calculation with CPI enabled. (#990228) From f517d0e1fd38ff9be3104ba22042b9c501d6e387 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 16 Dec 2013 18:24:47 +0900 Subject: [PATCH 35/87] Move the place of paps.convs to %{_datadir}/cups/mime. (#1042984) --- paps.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index e9ee0e4..e556e7f 100644 --- a/paps.spec +++ b/paps.spec @@ -95,7 +95,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la install -d $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps -install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups +install -d $RPM_BUILD_ROOT%{_datadir}/cups/mime install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ @@ -235,7 +235,7 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ - Fix PostScript breakage following the non-monetary numeric format from current locale. (#231916) -* Thu Mar 7 2007 Akira TAGOH - 0.6.6-18 +* Wed Mar 7 2007 Akira TAGOH - 0.6.6-18 - default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862) * Tue Jan 23 2007 Akira TAGOH From 207bfd320cae48f34b4be933818a614413bf7bb1 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 20 Mar 2014 12:05:53 +0900 Subject: [PATCH 36/87] Fix FTBFS against freetype's header files location change. (#1078519) --- paps.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index e556e7f..ae2dcec 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 27%{?dist} +Release: 28%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -33,6 +33,8 @@ Patch55: paps-fix-loop-in-split.patch Patch56: paps-fix-tab-width.patch Patch57: paps-fix-non-weak-symbol.patch Patch58: paps-correct-fsf-address.patch +## rhbz#1078519 +Patch59: %{name}-ft-header.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -76,6 +78,7 @@ applications using paps API. %patch56 -p1 -b .tab %patch57 -p1 -b .weak-symbol %patch58 -p1 -b .fsf +%patch59 -p1 -b .ft-header libtoolize -f -c autoreconf -f -i @@ -119,6 +122,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %{_libdir}/libpaps.so %changelog +* Thu Mar 20 2014 Akira TAGOH - 0.6.8-28 +- Fix FTBFS against freetype's header files location change. (#1078519) + * Mon Dec 16 2013 Akira TAGOH - 0.6.8-27 - Move the place of paps.convs to %%{_datadir}/cups/mime. (#1042984) From ff0bbd74c33f06c1d1c59679b16b09893a2bf405 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 20 Mar 2014 12:12:35 +0900 Subject: [PATCH 37/87] Fix FTBFS against freetype's header files location change. (#1078519) --- paps-ft-header.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 paps-ft-header.patch diff --git a/paps-ft-header.patch b/paps-ft-header.patch new file mode 100644 index 0000000..f2d8a2e --- /dev/null +++ b/paps-ft-header.patch @@ -0,0 +1,15 @@ +diff -pruN paps-0.6.8.orig/src/libpaps.c paps-0.6.8/src/libpaps.c +--- paps-0.6.8.orig/src/libpaps.c 2014-03-20 12:10:50.000000000 +0900 ++++ paps-0.6.8/src/libpaps.c 2014-03-20 12:11:54.000000000 +0900 +@@ -25,8 +25,9 @@ + + #include + #include +-#include +-#include ++#include ++#include FT_GLYPH_H ++#include FT_OUTLINE_H + #include + #include + #include From eaf08a4229c087fd30ca12c0e41972fcceb04c8e Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 18:38:56 -0500 Subject: [PATCH 38/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index ae2dcec..c5dee4a 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 28%{?dist} +Release: 29%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -122,6 +122,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %{_libdir}/libpaps.so %changelog +* Fri Jun 06 2014 Fedora Release Engineering - 0.6.8-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Thu Mar 20 2014 Akira TAGOH - 0.6.8-28 - Fix FTBFS against freetype's header files location change. (#1078519) From 44695d1ff650d56b4a5915d10a423bc6b86af497 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sun, 17 Aug 2014 14:49:11 +0000 Subject: [PATCH 39/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index c5dee4a..7724479 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 29%{?dist} +Release: 30%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -122,6 +122,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %{_libdir}/libpaps.so %changelog +* Sun Aug 17 2014 Fedora Release Engineering - 0.6.8-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Fri Jun 06 2014 Fedora Release Engineering - 0.6.8-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From 246be3119f6c29f558963fc460ef6e8885df279f Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 31 Oct 2014 23:47:56 +0900 Subject: [PATCH 40/87] Add a fontconfig config to force the scalable font. --- 29-paps.conf | 21 +++++++++++++++++++++ paps.spec | 12 ++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 29-paps.conf diff --git a/29-paps.conf b/29-paps.conf new file mode 100644 index 0000000..6b3ae52 --- /dev/null +++ b/29-paps.conf @@ -0,0 +1,21 @@ + + + + + + + paps + + + true + + + texttopaps + + + true + + + + + diff --git a/paps.spec b/paps.spec index 7724479..38b872b 100644 --- a/paps.spec +++ b/paps.spec @@ -1,11 +1,12 @@ Name: paps Version: 0.6.8 -Release: 30%{?dist} +Release: 31%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: paps.convs +Source2: 29-paps.conf BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch @@ -39,7 +40,7 @@ Patch59: %{name}-ft-header.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing Requires: %{name}-libs = %{version}-%{release} -Requires: cups-filesystem +Requires: cups-filesystem fontpackages-filesystem %description paps is a PostScript converter from plain text file using Pango. @@ -101,6 +102,9 @@ ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps install -d $RPM_BUILD_ROOT%{_datadir}/cups/mime install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ +install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d +install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig @@ -111,6 +115,7 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %{_mandir}/man1/paps.1* %{_cups_serverbin}/filter/texttopaps %{_datadir}/cups/mime/paps.convs +%{_sysconfdir}/fonts/conf.d/29-paps.conf %files libs %doc COPYING.LIB @@ -122,6 +127,9 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ %{_libdir}/libpaps.so %changelog +* Fri Oct 31 2014 Akira TAGOH - 0.6.8-31 +- Add a fontconfig config to force the scalable font. + * Sun Aug 17 2014 Fedora Release Engineering - 0.6.8-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild From 2c677a105aacec31ffd82ff069db056e4b470d36 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 31 Oct 2014 23:49:03 +0900 Subject: [PATCH 41/87] Add a fontconfig config to force the scalable font. --- 29-paps.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/29-paps.conf b/29-paps.conf index 6b3ae52..1ae98a4 100644 --- a/29-paps.conf +++ b/29-paps.conf @@ -9,6 +9,9 @@ true + + + texttopaps From 64c542c9d3c155c10dd314ac01e5548aac4ce404 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sat, 21 Feb 2015 22:25:10 +0100 Subject: [PATCH 42/87] Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code --- paps.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 38b872b..09721bf 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 31%{?dist} +Release: 32%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -127,6 +127,10 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Sat Feb 21 2015 Till Maas - 0.6.8-32 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + * Fri Oct 31 2014 Akira TAGOH - 0.6.8-31 - Add a fontconfig config to force the scalable font. From 90f158d50e061b8fd2f4e6937adba33acdc71909 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 2 Mar 2015 11:45:50 +0900 Subject: [PATCH 43/87] Support A3 paper size. --- paps-a3.patch | 40 ++++++++++++++++++++++++++++++++++++++++ paps.spec | 10 ++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 paps-a3.patch diff --git a/paps-a3.patch b/paps-a3.patch new file mode 100644 index 0000000..3628b3a --- /dev/null +++ b/paps-a3.patch @@ -0,0 +1,40 @@ +--- paps-0.6.8/src/paps.c.orig 2015-02-26 14:17:29.351338514 +0530 ++++ paps-0.6.8/src/paps.c 2015-02-26 14:17:29.351338514 +0530 +@@ -45,7 +45,8 @@ + typedef enum { + PAPER_TYPE_A4 = 0, + PAPER_TYPE_US_LETTER = 1, +- PAPER_TYPE_US_LEGAL = 2 ++ PAPER_TYPE_US_LEGAL = 2, ++ PAPER_TYPE_A3 = 3 + } paper_type_t ; + + typedef struct { +@@ -56,7 +57,8 @@ + const paper_size_t paper_sizes[] = { + { 595.28, 841.89}, /* A4 */ + { 612, 792}, /* US letter */ +- { 612, 1008} /* US legal */ ++ { 612, 1008}, /* US legal */ ++ { 842, 1190} /* A3 */ + }; + + typedef struct { +@@ -190,6 +192,8 @@ + paper_type = PAPER_TYPE_US_LETTER; + else if (g_ascii_strcasecmp(value, "a4") == 0) + paper_type = PAPER_TYPE_A4; ++ else if (g_ascii_strcasecmp(value, "a3") == 0) ++ paper_type = PAPER_TYPE_A3; + else { + retval = FALSE; + fprintf(stderr, "Unknown page size name: %s.\n", value); +@@ -300,7 +304,7 @@ + {"rtl", 0, 0, G_OPTION_ARG_NONE, &do_rtl, "Do rtl layout.", NULL}, + {"paper", 0, 0, G_OPTION_ARG_CALLBACK, _paps_arg_paper_cb, + "Choose paper size. Known paper sizes are legal,\n" +- " letter, a4. (Default: a4)", "PAPER"}, ++ " letter, a3, a4. (Default: a4)", "PAPER"}, + {"bottom-margin", 0, 0, G_OPTION_ARG_INT, &bottom_margin, "Set bottom margin in postscript point units (1/72inch). (Default: 36)", "NUM"}, + {"top-margin", 0, 0, G_OPTION_ARG_INT, &top_margin, "Set top margin. (Default: 36)", "NUM"}, + {"right-margin", 0, 0, G_OPTION_ARG_INT, &right_margin, "Set right margin. (Default: 36)", "NUM"}, diff --git a/paps.spec b/paps.spec index 09721bf..5c26900 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 32%{?dist} +Release: 33%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -35,7 +35,9 @@ Patch56: paps-fix-tab-width.patch Patch57: paps-fix-non-weak-symbol.patch Patch58: paps-correct-fsf-address.patch ## rhbz#1078519 -Patch59: %{name}-ft-header.patch +Patch59: %{name}-ft-header.patch +## rhbz#1196997 +Patch60: %{name}-a3.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -80,6 +82,7 @@ applications using paps API. %patch57 -p1 -b .weak-symbol %patch58 -p1 -b .fsf %patch59 -p1 -b .ft-header +%patch60 -p1 -b .a3 libtoolize -f -c autoreconf -f -i @@ -127,6 +130,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Mon Mar 2 2015 Akira TAGOH - 0.6.8-33 +- Support A3 paper size. + * Sat Feb 21 2015 Till Maas - 0.6.8-32 - Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code From 86af971b5b24f5a56cdd48713d16bfecbae1e4a6 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 24 Apr 2015 11:53:57 +0900 Subject: [PATCH 44/87] Fix wrong paper size due to the integer cast. --- paps-fix-paper-size-truncate.patch | 15 +++++++++++++++ paps.spec | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 paps-fix-paper-size-truncate.patch diff --git a/paps-fix-paper-size-truncate.patch b/paps-fix-paper-size-truncate.patch new file mode 100644 index 0000000..90e9fcb --- /dev/null +++ b/paps-fix-paper-size-truncate.patch @@ -0,0 +1,15 @@ +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2015-04-24 11:49:53.220718394 +0900 ++++ paps-0.6.8/src/paps.c 2015-04-24 11:51:30.847718394 +0900 +@@ -532,9 +532,9 @@ int main(int argc, char *argv[]) + + /* Page layout */ + if (page_width < 0) +- page_width = paper_sizes[(int)paper_type].width; ++ page_width = (paper_sizes[(int)paper_type].width + 0.5); + if (page_height < 0) +- page_height = paper_sizes[(int)paper_type].height; ++ page_height = (paper_sizes[(int)paper_type].height + 0.5); + + if (num_columns == 1) + total_gutter_width = 0; diff --git a/paps.spec b/paps.spec index 5c26900..674ec11 100644 --- a/paps.spec +++ b/paps.spec @@ -38,6 +38,8 @@ Patch58: paps-correct-fsf-address.patch Patch59: %{name}-ft-header.patch ## rhbz#1196997 Patch60: %{name}-a3.patch +## rhbz#1214939 +Patch61: %{name}-fix-paper-size-truncate.patch Summary: Plain Text to PostScript converter Group: Applications/Publishing @@ -83,6 +85,7 @@ applications using paps API. %patch58 -p1 -b .fsf %patch59 -p1 -b .ft-header %patch60 -p1 -b .a3 +%patch61 -p1 -b .paper-size libtoolize -f -c autoreconf -f -i @@ -130,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Fri Apr 24 2015 Akira TAGOH - 0.6.8-34 +- Fix wrong paper size due to the integer cast. + * Mon Mar 2 2015 Akira TAGOH - 0.6.8-33 - Support A3 paper size. From b580472a5f9b7695bc47a2232cd626ded8c97956 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 24 Apr 2015 11:54:40 +0900 Subject: [PATCH 45/87] Fix wrong paper size due to the integer cast. --- paps.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 674ec11..10f3c98 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 33%{?dist} +Release: 34%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ From ffc85830ded0d7ce2818b6181c7a038d436df93b Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Jun 2015 00:42:42 +0000 Subject: [PATCH 46/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 10f3c98..ca98d0f 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 34%{?dist} +Release: 35%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Thu Jun 18 2015 Fedora Release Engineering - 0.6.8-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Fri Apr 24 2015 Akira TAGOH - 0.6.8-34 - Fix wrong paper size due to the integer cast. From 9e84db2448c8a11cd0a4487d9a9d7a93f3a6aede Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 4 Feb 2016 11:54:44 +0000 Subject: [PATCH 47/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index ca98d0f..e068f39 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 35%{?dist} +Release: 36%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Thu Feb 04 2016 Fedora Release Engineering - 0.6.8-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Thu Jun 18 2015 Fedora Release Engineering - 0.6.8-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 0f1059be4f6d8e5d8e8ee031bb36b507ef505a60 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 01:15:32 +0000 Subject: [PATCH 48/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index e068f39..1a32790 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 36%{?dist} +Release: 37%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 0.6.8-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Thu Feb 04 2016 Fedora Release Engineering - 0.6.8-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From dcb838d3c26fbf0c453eee2e92776c92a9dda33d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 02:10:41 +0000 Subject: [PATCH 49/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 1a32790..9c32e18 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 37%{?dist} +Release: 38%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 0.6.8-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 0.6.8-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 889a9cea96649860ccad6a7e8a76c2660f3727d7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 04:50:19 +0000 Subject: [PATCH 50/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 9c32e18..2fe1377 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 38%{?dist} +Release: 39%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 0.6.8-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 0.6.8-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 13a194266e69cdb5e0fd59ef63b3cfd17da0349f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sat, 20 Jan 2018 23:07:28 +0100 Subject: [PATCH 51/87] Rebuilt for switch to libxcrypt --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 2fe1377..1b5e62b 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 39%{?dist} +Release: 40%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Sat Jan 20 2018 Björn Esser - 0.6.8-40 +- Rebuilt for switch to libxcrypt + * Thu Aug 03 2017 Fedora Release Engineering - 0.6.8-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From e500369a1c7e53f0e1ede28175e3bbba7b26fcb2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 8 Feb 2018 18:17:34 +0000 Subject: [PATCH 52/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 1b5e62b..43e0e94 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 40%{?dist} +Release: 41%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Thu Feb 08 2018 Fedora Release Engineering - 0.6.8-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Sat Jan 20 2018 Björn Esser - 0.6.8-40 - Rebuilt for switch to libxcrypt From 73fe19b3fc6b87250e3f33b45c00816b465779f7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 15:29:15 +0000 Subject: [PATCH 53/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 43e0e94..4c2d970 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 41%{?dist} +Release: 42%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -133,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 0.6.8-42 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Thu Feb 08 2018 Fedora Release Engineering - 0.6.8-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 7d90accb18a06d12ca0e5595350384898b180aaf Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 22 Jan 2019 18:40:39 +0100 Subject: [PATCH 54/87] Remove obsolete ldconfig scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- paps.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index 4c2d970..0fe6336 100644 --- a/paps.spec +++ b/paps.spec @@ -112,8 +112,7 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files %doc AUTHORS COPYING.LIB README TODO From 60bf95094a15415e4fe2c4d16ea0292bb85eff1e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:00 +0100 Subject: [PATCH 55/87] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- paps.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/paps.spec b/paps.spec index 0fe6336..80be0ed 100644 --- a/paps.spec +++ b/paps.spec @@ -42,7 +42,6 @@ Patch60: %{name}-a3.patch Patch61: %{name}-fix-paper-size-truncate.patch Summary: Plain Text to PostScript converter -Group: Applications/Publishing Requires: %{name}-libs = %{version}-%{release} Requires: cups-filesystem fontpackages-filesystem %description @@ -50,7 +49,6 @@ paps is a PostScript converter from plain text file using Pango. %package libs Summary: Libraries for paps -Group: Development/Libraries %description libs paps is a PostScript converter from plain text file using Pango. @@ -58,7 +56,6 @@ This package contains the library for paps. %package devel Summary: Development files for paps -Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel paps is a PostScript converter from plain text file using Pango. From af8c3b19cdf4ce74df459aba7da9abf2f2f37222 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 1 Feb 2019 17:56:53 +0000 Subject: [PATCH 56/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 80be0ed..db610d2 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 42%{?dist} +Release: 43%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -129,6 +129,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Fri Feb 01 2019 Fedora Release Engineering - 0.6.8-43 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jul 13 2018 Fedora Release Engineering - 0.6.8-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 26399c9118394fb02dffb9871558df07edfbf9d3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 00:03:27 +0000 Subject: [PATCH 57/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index db610d2..21c832a 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 43%{?dist} +Release: 44%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -129,6 +129,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 0.6.8-44 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Fri Feb 01 2019 Fedora Release Engineering - 0.6.8-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 42d780bf5004ad873ee6a532ed3875f83de731e5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jan 2020 20:53:10 +0000 Subject: [PATCH 58/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 21c832a..7348927 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 44%{?dist} +Release: 45%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -129,6 +129,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Wed Jan 29 2020 Fedora Release Engineering - 0.6.8-45 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Fri Jul 26 2019 Fedora Release Engineering - 0.6.8-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 979825f6e25ef65c4f0a23e0e1d7ffbf34e67d36 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jul 2020 13:09:52 +0000 Subject: [PATCH 59/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 7348927..8412055 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 45%{?dist} +Release: 46%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -129,6 +129,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ %{_libdir}/libpaps.so %changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.6.8-46 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Wed Jan 29 2020 Fedora Release Engineering - 0.6.8-45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From b2d5a385a23c7b3da502b7b24d5a5840123e9fc8 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 8 Oct 2020 20:12:53 +0900 Subject: [PATCH 60/87] New upstream release. Resolves: rhbz#1254352 Sub-package texttopaps with old code. --- paps.spec | 64 ++++++++++++++++++++++++++++++++----------------------- sources | 3 ++- 2 files changed, 39 insertions(+), 28 deletions(-) diff --git a/paps.spec b/paps.spec index 8412055..46a0d65 100644 --- a/paps.spec +++ b/paps.spec @@ -1,12 +1,13 @@ Name: paps -Version: 0.6.8 -Release: 46%{?dist} +Version: 0.7.1 +Release: 1%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: paps.convs Source2: 29-paps.conf +Source3: http://downloads.sourceforge.net/%{name}/%{name}-0.6.8.tar.gz BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch @@ -42,29 +43,24 @@ Patch60: %{name}-a3.patch Patch61: %{name}-fix-paper-size-truncate.patch Summary: Plain Text to PostScript converter -Requires: %{name}-libs = %{version}-%{release} -Requires: cups-filesystem fontpackages-filesystem %description paps is a PostScript converter from plain text file using Pango. -%package libs -Summary: Libraries for paps -%description libs +%package -n texttopaps +Summary: CUPS filter based on paps +Obsoletes: %{name}-libs < %{version} +Obsoletes: %{name}-devel < %{version} +Requires: cups-filesystem fontpackages-filesystem +%description -n texttopaps + paps is a PostScript converter from plain text file using Pango. -This package contains the library for paps. +This package contains a CUPS filter based on paps. -%package devel -Summary: Development files for paps -Requires: %{name}-libs = %{version}-%{release} -%description devel -paps is a PostScript converter from plain text file using Pango. - -This package contains the development files that is necessary to develop -applications using paps API. %prep -%setup -q +%setup -q -a 3 +pushd %{name}-0.6.8 %patch0 -p1 -b .shared %patch1 -p1 -b .wordwrap %patch2 -p1 -b .langinfo @@ -85,14 +81,20 @@ applications using paps API. %patch61 -p1 -b .paper-size libtoolize -f -c autoreconf -f -i +popd %build %configure --disable-static make %{?_smp_mflags} +pushd %{name}-0.6.8 +%configure --disable-static +make %{?_smp_mflags} +popd %install +pushd %{name}-0.6.8 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" # remove unnecessary files @@ -100,7 +102,8 @@ rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la # make a symlink for CUPS filter install -d $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir -ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps +mv $RPM_BUILD_ROOT%{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps +mv $RPM_BUILD_ROOT%{_mandir}/man1/paps.1 $RPM_BUILD_ROOT%{_mandir}/man1/texttopaps.1 install -d $RPM_BUILD_ROOT%{_datadir}/cups/mime install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ @@ -108,27 +111,34 @@ install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/cups/mime/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/ +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" %ldconfig_scriptlets libs %files -%doc AUTHORS COPYING.LIB README TODO +%doc AUTHORS COPYING.LIB README %{_bindir}/paps %{_mandir}/man1/paps.1* + +%files -n texttopaps +%doc %{name}-0.6.8/COPYING.LIB %{name}-0.6.8/AUTHORS %{name}-0.6.8/README +%{_mandir}/man1/texttopaps.1* +%{_libdir}/libpaps.so.* %{_cups_serverbin}/filter/texttopaps %{_datadir}/cups/mime/paps.convs %{_sysconfdir}/fonts/conf.d/29-paps.conf -%files libs -%doc COPYING.LIB -%{_libdir}/libpaps.so.* - -%files devel -%doc COPYING.LIB -%{_includedir}/libpaps.h -%{_libdir}/libpaps.so %changelog +* Thu Oct 8 2020 Akira TAGOH - 0.7.1-1 +- New upstream release. + Resolves: rhbz#1254352 +- Sub-package texttopaps with old code. + * Tue Jul 28 2020 Fedora Release Engineering - 0.6.8-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index a9fd861..15e8e44 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -e9508132bf27609bf2fded2bfd9cb3f1 paps-0.6.8.tar.gz +SHA512 (paps-0.6.8.tar.gz) = db657d90179e11fe42bbcdbebe09a84f1927c99d0b539c9e29b66b3cb8ffcf33ff500c9d81835ae5a0880382bf8f24801f04742517b76b8e005b125a139d8bba +SHA512 (paps-0.7.1.tar.gz) = a77ed7b5529a7d94fd3c63b272c30e5b5f8af143850ea1ba176e776ad5cc11c27f8b605b95e73cc1ba7c4a1957a444e73c2c9282aa244685f777d1675056d997 From 471e46e91c1721a2aa15149c62a644905c71a041 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 8 Oct 2020 20:23:02 +0900 Subject: [PATCH 61/87] Add intltool to BR --- paps.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 46a0d65..89f52e6 100644 --- a/paps.spec +++ b/paps.spec @@ -8,7 +8,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar. Source1: paps.convs Source2: 29-paps.conf Source3: http://downloads.sourceforge.net/%{name}/%{name}-0.6.8.tar.gz -BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel +BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel intltool ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 From fe8b893b71727f17cb08deac327b3fc6104ae6a7 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 7 Jan 2021 06:57:23 +0000 Subject: [PATCH 62/87] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- paps.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/paps.spec b/paps.spec index 89f52e6..88519d1 100644 --- a/paps.spec +++ b/paps.spec @@ -8,6 +8,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar. 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 ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch From 2b149c37a77718b60e10798f73608ed868a41ca6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 22:57:10 +0000 Subject: [PATCH 63/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 88519d1..3556c81 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.7.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Thu Oct 8 2020 Akira TAGOH - 0.7.1-1 - New upstream release. Resolves: rhbz#1254352 From d2cf9bcc01be91c758b7f50f70faa191c7bb2ec5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 17:42:42 +0000 Subject: [PATCH 64/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 3556c81..bc7f96f 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.7.1 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 0.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 01a8bd986c808369d1bc4562a02fc430635cb0d4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 22:53:10 +0000 Subject: [PATCH 65/87] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index bc7f96f..91feecb 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.7.1 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 4c2e00f6f45c59ea68e6640e83c9398b038f042f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 02:41:01 +0000 Subject: [PATCH 66/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 91feecb..cff2c79 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.7.1 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 0.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 2d429d16f90437f0d59efb9a7f329bdca7d9896c Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 5 Dec 2022 16:20:33 +0900 Subject: [PATCH 67/87] Convert License tag to SPDX. --- paps.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index cff2c79..22cb19c 100644 --- a/paps.spec +++ b/paps.spec @@ -1,8 +1,8 @@ Name: paps Version: 0.7.1 -Release: 5%{?dist} +Release: 6%{?dist} -License: LGPLv2+ +License: LGPL-2.0-or-later URL: http://paps.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: paps.convs @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Mon Dec 5 2022 Akira TAGOH - 0.7.1-6 +- Convert License tag to SPDX. + * Fri Jul 22 2022 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 623777484bf04b13cdd941bcfd5df0b23a6d3480 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 23:21:50 +0000 Subject: [PATCH 68/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 22cb19c..9a112ec 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.7.1 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPL-2.0-or-later URL: http://paps.sourceforge.net/ @@ -135,6 +135,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 0.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Mon Dec 5 2022 Akira TAGOH - 0.7.1-6 - Convert License tag to SPDX. From 276295738e0ba8a405e4d23d1b9f5d1ea29b8509 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 7 Feb 2023 17:41:42 +0900 Subject: [PATCH 69/87] New upstream release. Resolves: rhbz#2164212 --- paps.spec | 18 ++++++++++++------ sources | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/paps.spec b/paps.spec index 9a112ec..ddcd95b 100644 --- a/paps.spec +++ b/paps.spec @@ -1,15 +1,16 @@ Name: paps -Version: 0.7.1 -Release: 7%{?dist} +Version: 0.7.9 +Release: 1%{?dist} License: LGPL-2.0-or-later -URL: http://paps.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +URL: https://github.com/dov/paps +Source0: https://github.com/dov/paps/archive/v%{name}/%{name}-%{version}.tar.gz Source1: paps.convs -Source2: 29-paps.conf +Source2: 29-paps.conf Source3: http://downloads.sourceforge.net/%{name}/%{name}-0.6.8.tar.gz -BuildRequires: make +BuildRequires: make BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel intltool +BuildRequires: fmt-devel ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241 Patch0: paps-0.6.8-shared.patch ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 @@ -86,6 +87,7 @@ popd %build +./autogen.sh %configure --disable-static make %{?_smp_mflags} @@ -135,6 +137,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Tue Feb 7 2023 Akira TAGOH - 0.7.9-1 +- New upstream release. + Resolves: rhbz#2164212 + * Thu Jan 19 2023 Fedora Release Engineering - 0.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 15e8e44..666a683 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (paps-0.6.8.tar.gz) = db657d90179e11fe42bbcdbebe09a84f1927c99d0b539c9e29b66b3cb8ffcf33ff500c9d81835ae5a0880382bf8f24801f04742517b76b8e005b125a139d8bba -SHA512 (paps-0.7.1.tar.gz) = a77ed7b5529a7d94fd3c63b272c30e5b5f8af143850ea1ba176e776ad5cc11c27f8b605b95e73cc1ba7c4a1957a444e73c2c9282aa244685f777d1675056d997 +SHA512 (paps-0.7.9.tar.gz) = 78645535c6948dae9b021143419f4c5dfcdcfa18af5ae4bc8bf615aae4e1aac124c450359483bf027ae45e7b99b25732f62bce67bd575d26fb5e44610a65774b From ed223c61ae54f60dc5798a02d553c83f1bedabd3 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 7 Feb 2023 18:03:42 +0900 Subject: [PATCH 70/87] Add missing dep --- paps.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index ddcd95b..ce85a02 100644 --- a/paps.spec +++ b/paps.spec @@ -10,7 +10,7 @@ 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: fmt-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 ## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241 From 379760d3458c0566cc561d445720e576d24c9016 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 1 Mar 2023 14:19:08 +0900 Subject: [PATCH 71/87] New upstream release. Resolves: rhbz#2168726 --- paps.spec | 6 +++++- sources | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/paps.spec b/paps.spec index ce85a02..3896660 100644 --- a/paps.spec +++ b/paps.spec @@ -1,5 +1,5 @@ Name: paps -Version: 0.7.9 +Version: 0.8.0 Release: 1%{?dist} License: LGPL-2.0-or-later @@ -137,6 +137,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Wed Mar 1 2023 Akira TAGOH - 0.8.0-1 +- New upstream release. + Resolves: rhbz#2168726 + * Tue Feb 7 2023 Akira TAGOH - 0.7.9-1 - New upstream release. Resolves: rhbz#2164212 diff --git a/sources b/sources index 666a683..fcb89c4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (paps-0.6.8.tar.gz) = db657d90179e11fe42bbcdbebe09a84f1927c99d0b539c9e29b66b3cb8ffcf33ff500c9d81835ae5a0880382bf8f24801f04742517b76b8e005b125a139d8bba -SHA512 (paps-0.7.9.tar.gz) = 78645535c6948dae9b021143419f4c5dfcdcfa18af5ae4bc8bf615aae4e1aac124c450359483bf027ae45e7b99b25732f62bce67bd575d26fb5e44610a65774b +SHA512 (paps-0.8.0.tar.gz) = 33afad0e3dae9cef0fb3afb9994650bf1a7326e72782346e05ab91f7c84f092145247658cdf57868105df47a1bd08e1a961c1ef4c07a2a8fd01eaf8ecd9d948a From c702265b939951e7e750e97941396fbf9d510b02 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 1 Mar 2023 15:42:29 +0900 Subject: [PATCH 72/87] New upstream release. Resolves: rhbz#2168726 --- paps-fix-build.patch | 85 ++++++++++++++++++++++++++++++++++++++ paps-fix-src-to-paps.patch | 18 ++++++++ paps.spec | 7 ++++ 3 files changed, 110 insertions(+) create mode 100644 paps-fix-build.patch create mode 100644 paps-fix-src-to-paps.patch diff --git a/paps-fix-build.patch b/paps-fix-build.patch new file mode 100644 index 0000000..e77f387 --- /dev/null +++ b/paps-fix-build.patch @@ -0,0 +1,85 @@ +From e2180b2e1493abc2a8d1165e10bf264d50fac0ae Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +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 new file mode 100644 index 0000000..d18f8af --- /dev/null +++ b/paps-fix-src-to-paps.patch @@ -0,0 +1,18 @@ +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.spec b/paps.spec index 3896660..d92ce8a 100644 --- a/paps.spec +++ b/paps.spec @@ -43,6 +43,9 @@ Patch59: %{name}-ft-header.patch Patch60: %{name}-a3.patch ## rhbz#1214939 Patch61: %{name}-fix-paper-size-truncate.patch +### For paps +Patch100: %{name}-fix-src-to-paps.patch +Patch101: %{name}-fix-build.patch Summary: Plain Text to PostScript converter %description @@ -62,6 +65,8 @@ This package contains a CUPS filter based on paps. %prep %setup -q -a 3 +%patch100 -p1 -b .src-to-paps +%patch101 -p1 -b .build pushd %{name}-0.6.8 %patch0 -p1 -b .shared %patch1 -p1 -b .wordwrap @@ -125,6 +130,8 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %files %doc AUTHORS COPYING.LIB README %{_bindir}/paps +%{_bindir}/src-to-paps +%{_datadir}/paps/pango_markup.outlang %{_mandir}/man1/paps.1* %files -n texttopaps From c2bb76914bf688903a2f3aa3daa76d4730e07784 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 13 Apr 2023 12:17:12 +0200 Subject: [PATCH 73/87] C99 compatibility fixes for paps 0.6.8 Related to: --- paps-c99.patch | 44 ++++++++++++++++++++++++++++++++++++++++++++ paps.spec | 7 ++++++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 paps-c99.patch diff --git a/paps-c99.patch b/paps-c99.patch new file mode 100644 index 0000000..115043e --- /dev/null +++ b/paps-c99.patch @@ -0,0 +1,44 @@ +Use AC_USE_SYSTEM_EXTENSIONS and include , so that +makes a declaration of wcwidth available. Include +for a declaration of g_vasprintf. This avoids implicit function +declarations and build failures with future compilers. + +No need to upstream this because it only impacts the bundled 0.6.8 +sources, the later 0.8.0 version has already been fixed upstream. The +g_vasprintf call was introduced in the paps-0.6.6-lcnumeric.patch +downstream patch. + +diff -ur paps-0.8.0.orig/paps-0.6.8/configure.in paps-0.8.0/paps-0.6.8/configure.in +--- paps-0.8.0.orig/paps-0.6.8/configure.in 2023-04-13 11:56:29.571277839 +0200 ++++ paps-0.8.0/paps-0.6.8/configure.in 2023-04-13 12:00:03.228135149 +0200 +@@ -6,6 +6,7 @@ + AC_LANG_C + AC_PROG_CC + AM_PROG_LIBTOOL ++AC_USE_SYSTEM_EXTENSIONS + + dnl ====================================================== + dnl check for CUPS +diff -ur paps-0.8.0.orig/paps-0.6.8/src/paps.c paps-0.8.0/paps-0.6.8/src/paps.c +--- paps-0.8.0.orig/paps-0.6.8/src/paps.c 2023-04-13 11:56:29.583277719 +0200 ++++ paps-0.8.0/paps-0.6.8/src/paps.c 2023-04-13 12:02:28.958673663 +0200 +@@ -20,7 +20,7 @@ + * + */ + +- ++#include + #include + #include + #include "libpaps.h" +diff -ur paps-0.8.0.orig/paps-0.6.8/src/libpaps.c paps-0.8.0/paps-0.6.8/src/libpaps.c +--- paps-0.8.0.orig/paps-0.6.8/src/libpaps.c 2023-04-13 11:56:29.581277739 +0200 ++++ paps-0.8.0/paps-0.6.8/src/libpaps.c 2023-04-13 12:07:17.504779917 +0200 +@@ -23,6 +23,7 @@ + + #include "libpaps.h" + ++#include + #include + #include + #include diff --git a/paps.spec b/paps.spec index d92ce8a..c028639 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -43,6 +43,7 @@ Patch59: %{name}-ft-header.patch Patch60: %{name}-a3.patch ## rhbz#1214939 Patch61: %{name}-fix-paper-size-truncate.patch +Patch62: paps-c99.patch ### For paps Patch100: %{name}-fix-src-to-paps.patch Patch101: %{name}-fix-build.patch @@ -86,6 +87,7 @@ pushd %{name}-0.6.8 %patch59 -p1 -b .ft-header %patch60 -p1 -b .a3 %patch61 -p1 -b .paper-size +%patch62 -p2 -b .configure-c99 libtoolize -f -c autoreconf -f -i popd @@ -144,6 +146,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Apr 13 2023 Florian Weimer - 0.8.0-2 +- C99 compatibility fixes for paps 0.6.8 + * Wed Mar 1 2023 Akira TAGOH - 0.8.0-1 - New upstream release. Resolves: rhbz#2168726 From b1d34635691c50529c775400fd9c5b4a63fbc22d Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Wed, 28 Jun 2023 11:18:55 +0200 Subject: [PATCH 74/87] Rebuilt due to fmt 10 update. --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index c028639..1f0e06f 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -146,6 +146,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Wed Jun 28 2023 Vitaly Zaitsev - 0.8.0-3 +- Rebuilt due to fmt 10 update. + * Thu Apr 13 2023 Florian Weimer - 0.8.0-2 - C99 compatibility fixes for paps 0.6.8 From cb2b7836e339287223b21a2b422d1406c79d5ad4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jul 2023 18:37:46 +0000 Subject: [PATCH 75/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 1f0e06f..e7e75ff 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -146,6 +146,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jul 20 2023 Fedora Release Engineering - 0.8.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jun 28 2023 Vitaly Zaitsev - 0.8.0-3 - Rebuilt due to fmt 10 update. From 740450aa394ea2dc4f2944cf5fdbb97d82018b6e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 13 Aug 2023 23:25:12 -0400 Subject: [PATCH 76/87] Use fmt in header-only mode in RHEL builds This allows fmt to be buildroot-only and avoids the need to support the fmt runtime library, which frequently breaks ABI and is therefore unwanted, in RHEL. --- paps.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index e7e75ff..db80552 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -95,6 +95,10 @@ popd %build ./autogen.sh +%set_build_flags +%if 0%{?rhel} +CXXFLAGS="$CXXFLAGS -DFMT_HEADER_ONLY" +%endif %configure --disable-static make %{?_smp_mflags} @@ -146,6 +150,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Mon Aug 14 2023 Yaakov Selkowitz - 0.8.0-5 +- Use fmt in header-only mode in RHEL builds + * Thu Jul 20 2023 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 10c01b83d58fa23b9963a904a81b3fd92ae222b8 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 17 Jan 2024 22:30:12 +0900 Subject: [PATCH 77/87] Fix C type error in paps 0.6.8. Resolves: rhbz#2256906 --- paps-fix-cpi.patch | 2 +- paps.spec | 48 +++++++++++++++++++++++++--------------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/paps-fix-cpi.patch b/paps-fix-cpi.patch index f917296..7bc3f61 100644 --- a/paps-fix-cpi.patch +++ b/paps-fix-cpi.patch @@ -310,7 +310,7 @@ index 334d547..72dbaad 100644 + + para->length = i; + next = g_utf8_offset_to_pointer(para->text, para->length); -+ wc = g_utf8_prev_char(next); ++ wc = g_utf8_get_char(g_utf8_prev_char(next)); + } else { + pango_layout_set_text(para->layout, para->text, para->length); + } diff --git a/paps.spec b/paps.spec index db80552..c7b41d2 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -66,28 +66,28 @@ This package contains a CUPS filter based on paps. %prep %setup -q -a 3 -%patch100 -p1 -b .src-to-paps -%patch101 -p1 -b .build +%patch 100 -p1 -b .src-to-paps +%patch 101 -p1 -b .build pushd %{name}-0.6.8 -%patch0 -p1 -b .shared -%patch1 -p1 -b .wordwrap -%patch2 -p1 -b .langinfo -%patch3 -p1 -b .lcnumeric -%patch4 -p1 -b .exitcode -%patch5 -p1 -b .manpage -%patch50 -p1 -b .cups -%patch51 -p1 -b .cpilpi -%patch52 -p1 -b .dsc -%patch53 -p1 -b .autoconf262 -%patch54 -p1 -b .fixcpi -%patch55 -p1 -b .loop -%patch56 -p1 -b .tab -%patch57 -p1 -b .weak-symbol -%patch58 -p1 -b .fsf -%patch59 -p1 -b .ft-header -%patch60 -p1 -b .a3 -%patch61 -p1 -b .paper-size -%patch62 -p2 -b .configure-c99 +%patch 0 -p1 -b .shared +%patch 1 -p1 -b .wordwrap +%patch 2 -p1 -b .langinfo +%patch 3 -p1 -b .lcnumeric +%patch 4 -p1 -b .exitcode +%patch 5 -p1 -b .manpage +%patch 50 -p1 -b .cups +%patch 51 -p1 -b .cpilpi +%patch 52 -p1 -b .dsc +%patch 53 -p1 -b .autoconf262 +%patch 54 -p1 -b .fixcpi +%patch 55 -p1 -b .loop +%patch 56 -p1 -b .tab +%patch 57 -p1 -b .weak-symbol +%patch 58 -p1 -b .fsf +%patch 59 -p1 -b .ft-header +%patch 60 -p1 -b .a3 +%patch 61 -p1 -b .paper-size +%patch 62 -p2 -b .configure-c99 libtoolize -f -c autoreconf -f -i popd @@ -150,6 +150,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Wed Jan 17 2024 Akira TAGOH - 0.8.0-6 +- Fix C type error in paps 0.6.8. + Resolves: rhbz#2256906 + * Mon Aug 14 2023 Yaakov Selkowitz - 0.8.0-5 - Use fmt in header-only mode in RHEL builds From cabf428669f07a8ccddead10c7b2571441458c6f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 21 Jan 2024 11:49:59 +0000 Subject: [PATCH 78/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index c7b41d2..2673057 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -150,6 +150,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Sun Jan 21 2024 Fedora Release Engineering - 0.8.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jan 17 2024 Akira TAGOH - 0.8.0-6 - Fix C type error in paps 0.6.8. Resolves: rhbz#2256906 From 3046fea23374842b2353ba25f9c1697fac9bc173 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jan 2024 11:59:09 +0000 Subject: [PATCH 79/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 2673057..b64bc7e 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 7%{?dist} +Release: 8%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -150,6 +150,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jan 25 2024 Fedora Release Engineering - 0.8.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Jan 21 2024 Fedora Release Engineering - 0.8.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 1994daf88434b6d0eee029bfa0a5162dcf348b10 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 7 Jun 2024 23:47:29 +0900 Subject: [PATCH 80/87] Own /usr/share/paps Resolves: rhbz#2283284 --- paps.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index b64bc7e..1005302 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 8%{?dist} +Release: 9%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -135,6 +135,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %files %doc AUTHORS COPYING.LIB README +%dir %{_datadir}/paps %{_bindir}/paps %{_bindir}/src-to-paps %{_datadir}/paps/pango_markup.outlang @@ -150,6 +151,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Fri Jun 7 2024 Akira TAGOH - 0.8.0-9 +- Own /usr/share/paps + Resolves: rhbz#2283284 + * Thu Jan 25 2024 Fedora Release Engineering - 0.8.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From f245dbf47daeb0230e3ceacbfc62b455155589ce Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 21:27:06 +0000 Subject: [PATCH 81/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 1005302..b2b95df 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 9%{?dist} +Release: 10%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -151,6 +151,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 0.8.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 7 2024 Akira TAGOH - 0.8.0-9 - Own /usr/share/paps Resolves: rhbz#2283284 From 529b6586b2fc3417510d37a4b1dc57092a215c63 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Thu, 25 Jul 2024 20:49:12 +0900 Subject: [PATCH 82/87] ci: Use tmt based test cases --- .fmf/version | 1 + plans/basic.fmf | 5 +++++ tests/basic/main.fmf | 5 +++++ tests/basic/test.sh | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/basic.fmf create mode 100644 tests/basic/main.fmf create mode 100755 tests/basic/test.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/basic.fmf b/plans/basic.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/basic.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/basic/main.fmf b/tests/basic/main.fmf new file mode 100644 index 0000000..d9d7de5 --- /dev/null +++ b/tests/basic/main.fmf @@ -0,0 +1,5 @@ +summary: Basic test +require: + - paps +test: ./test.sh +framework: beakerlib diff --git a/tests/basic/test.sh b/tests/basic/test.sh new file mode 100755 index 0000000..e07c777 --- /dev/null +++ b/tests/basic/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartSetup + rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" + rlRun "pushd $tmp" + rlRun "set -o pipefail" + rlPhaseEnd + + rlPhaseStartTest + rlRun "paps --help | tee output" 0 "Check help message" + rlAssertGrep "paps" "output" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" + rlPhaseEnd +rlJournalEnd From 2728eeda35b15427986d15c70e2d81b300531c0f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 12 Sep 2024 21:33:49 -0400 Subject: [PATCH 83/87] Fix build with glib 2.82 g_utf8_next_char no longer includes a cast to char*: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4016 --- paps-glib282.patch | 34 ++++++++++++++++++++++++++++++++++ paps.spec | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 paps-glib282.patch diff --git a/paps-glib282.patch b/paps-glib282.patch new file mode 100644 index 0000000..23bd2b4 --- /dev/null +++ b/paps-glib282.patch @@ -0,0 +1,34 @@ +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 b2b95df..bfc18b5 100644 --- a/paps.spec +++ b/paps.spec @@ -47,6 +47,7 @@ Patch62: paps-c99.patch ### For paps Patch100: %{name}-fix-src-to-paps.patch Patch101: %{name}-fix-build.patch +Patch102: %{name}-glib282.patch Summary: Plain Text to PostScript converter %description @@ -68,6 +69,7 @@ This package contains a CUPS filter based on paps. %setup -q -a 3 %patch 100 -p1 -b .src-to-paps %patch 101 -p1 -b .build +%patch 102 -p1 -b .glib282 pushd %{name}-0.6.8 %patch 0 -p1 -b .shared %patch 1 -p1 -b .wordwrap From a06bf824ed44485358013afd68e399868182be46 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 13 Sep 2024 21:14:44 +0900 Subject: [PATCH 84/87] Fix build with glib 2.82 Patch from Yaakov Selkowitz --- paps-0.6.8-glib282.patch | 12 ++++++++++++ paps.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 paps-0.6.8-glib282.patch diff --git a/paps-0.6.8-glib282.patch b/paps-0.6.8-glib282.patch new file mode 100644 index 0000000..7d3d165 --- /dev/null +++ b/paps-0.6.8-glib282.patch @@ -0,0 +1,12 @@ +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2024-09-13 21:07:13.225683344 +0900 ++++ paps-0.6.8/src/paps.c 2024-09-13 21:10:24.177041518 +0900 +@@ -784,7 +784,7 @@ split_text_into_paragraphs (PangoContext + while (p != NULL && *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 ()); diff --git a/paps.spec b/paps.spec index bfc18b5..835d60c 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 10%{?dist} +Release: 11%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -44,6 +44,7 @@ Patch60: %{name}-a3.patch ## rhbz#1214939 Patch61: %{name}-fix-paper-size-truncate.patch Patch62: paps-c99.patch +Patch63: paps-0.6.8-glib282.patch ### For paps Patch100: %{name}-fix-src-to-paps.patch Patch101: %{name}-fix-build.patch @@ -90,6 +91,7 @@ pushd %{name}-0.6.8 %patch 60 -p1 -b .a3 %patch 61 -p1 -b .paper-size %patch 62 -p2 -b .configure-c99 +%patch 63 -p1 -b .glib282 libtoolize -f -c autoreconf -f -i popd @@ -153,6 +155,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Fri Sep 13 2024 Akira TAGOH - 0.8.0-11 +- Fix build with glib 2.82 + Patch from Yaakov Selkowitz + * Thu Jul 18 2024 Fedora Release Engineering - 0.8.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 454fff4bc5a65e11d451f0e3202cdcec4afa4bc0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 22:21:37 +0000 Subject: [PATCH 85/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 835d60c..6b1eab0 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 11%{?dist} +Release: 12%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -155,6 +155,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 0.8.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Sep 13 2024 Akira TAGOH - 0.8.0-11 - Fix build with glib 2.82 Patch from Yaakov Selkowitz From efdad73179345079891a5cd18e17c2030490d63b Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 27 Jan 2025 18:49:59 +0900 Subject: [PATCH 86/87] Fix FTBFS Resolves: rhbz#2341001 --- paps-0.6.8-ftbfs.patch | 13 +++++++++++++ paps.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 paps-0.6.8-ftbfs.patch diff --git a/paps-0.6.8-ftbfs.patch b/paps-0.6.8-ftbfs.patch new file mode 100644 index 0000000..01bdb5c --- /dev/null +++ b/paps-0.6.8-ftbfs.patch @@ -0,0 +1,13 @@ +バイナリーファイル paps-0.6.8.orig/src/paps-paps.o とpaps-0.6.8/src/paps-paps.o は異なります +diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c +--- paps-0.6.8.orig/src/paps.c 2025-01-27 18:18:12.130570673 +0900 ++++ paps-0.6.8/src/paps.c 2025-01-27 18:47:05.214883811 +0900 +@@ -515,7 +515,7 @@ int main(int argc, char *argv[]) + } /* if (!cups_mode) */ + + paps = paps_new(); +- pango_context = paps_get_pango_context (paps); ++ pango_context = paps_get_pango_context (); + + /* Setup pango */ + pango_context_set_language (pango_context, get_language ()); diff --git a/paps.spec b/paps.spec index 6b1eab0..164b3e2 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 12%{?dist} +Release: 13%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -45,6 +45,7 @@ Patch60: %{name}-a3.patch 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 @@ -92,6 +93,7 @@ pushd %{name}-0.6.8 %patch 61 -p1 -b .paper-size %patch 62 -p2 -b .configure-c99 %patch 63 -p1 -b .glib282 +%patch 64 -p1 -b .ftbfs libtoolize -f -c autoreconf -f -i popd @@ -155,6 +157,10 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Mon Jan 27 2025 Akira TAGOH - 0.8.0-13 +- Fix FTBFS + Resolves: rhbz#2341001 + * Fri Jan 17 2025 Fedora Release Engineering - 0.8.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 6b8042a73135a3411b9af1b2ec8853eaa4639b4d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 23:56:45 +0000 Subject: [PATCH 87/87] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- paps.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index 164b3e2..2177152 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 13%{?dist} +Release: 14%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -157,6 +157,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 0.8.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jan 27 2025 Akira TAGOH - 0.8.0-13 - Fix FTBFS Resolves: rhbz#2341001