From 09a1c90913685e875f2ded997eeb171740035069 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 17 Feb 2010 02:19:22 +0000 Subject: [PATCH 1/4] Initialize branch F-13 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..baa94ef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-13 From 67eb088eda8439d52f4e5ef90c48dd222aa3fd2e Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 12 Mar 2010 05:44:46 +0000 Subject: [PATCH 2/4] - 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 b08d4cac2ae6f2fada5be4ed96578d1cfaa36edd Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Tue, 27 Jul 2010 03:47:58 +0000 Subject: [PATCH 3/4] - 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 224567e2e1cc57da97d8bc2966526145b24bc8f1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 05:31:50 +0000 Subject: [PATCH 4/4] 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 baa94ef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-13