mirror of
https://git.centos.org/rpms/a2ps.git
synced 2025-02-23 16:22:52 +00:00
import a2ps-4.14-20.el7.src.rpm
This commit is contained in:
parent
c2244b8a22
commit
8f1c6e6be2
33 changed files with 4976 additions and 5 deletions
2
.a2ps.metadata
Normal file
2
.a2ps.metadata
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
0dbd08fd6d2e09b4dde2d681788c081dddfb635c SOURCES/i18n-fonts-0.1.tar.gz
|
||||||
|
365abbbe4b7128bf70dad16d06e23c5701874852 SOURCES/a2ps-4.14.tar.gz
|
|
@ -1,5 +0,0 @@
|
||||||
The master branch has no content
|
|
||||||
|
|
||||||
Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6
|
|
||||||
|
|
||||||
If you find this file in a distro specific branch, it means that no content has been checked in yet
|
|
40
SOURCES/a2ps-4.13-autoenc.patch
Normal file
40
SOURCES/a2ps-4.13-autoenc.patch
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
--- a2ps-4.13.rh/src/main.c Fri Feb 23 17:39:02 2001
|
||||||
|
+++ a2ps-4.13.euc/src/main.c Fri Feb 23 23:07:40 2001
|
||||||
|
@@ -31,6 +31,8 @@
|
||||||
|
/* */
|
||||||
|
/************************************************************************/
|
||||||
|
#include <assert.h>
|
||||||
|
+#include <string.h>
|
||||||
|
+#include <locale.h>
|
||||||
|
|
||||||
|
#include "a2ps.h"
|
||||||
|
#include "argmatch.h"
|
||||||
|
@@ -925,6 +927,7 @@
|
||||||
|
main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
int argn;
|
||||||
|
+ char *locale;
|
||||||
|
|
||||||
|
/* Architecture specific initialization. */
|
||||||
|
#ifdef __EMX__
|
||||||
|
@@ -947,6 +950,9 @@
|
||||||
|
setlocale (LC_CTYPE, "");
|
||||||
|
setlocale (LC_PAPER, "");
|
||||||
|
|
||||||
|
+ locale = setlocale (LC_ALL, "");
|
||||||
|
+ /* fprintf(stderr, "locale : %s\n", locale); */
|
||||||
|
+
|
||||||
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
|
@@ -1013,6 +1019,10 @@
|
||||||
|
yet read sheets. */
|
||||||
|
sheets_map = sheets_map_new ();
|
||||||
|
style_sheets = new_style_sheets ();
|
||||||
|
+
|
||||||
|
+ /* Process special case: Japanese Document */
|
||||||
|
+ if (! strncmp (locale, "ja", 2) )
|
||||||
|
+ job->requested_encoding_name = xstrdup ("euc-jp");
|
||||||
|
|
||||||
|
/* Process the command line options. */
|
||||||
|
argn = a2ps_handle_options (job, argc, argv);
|
35
SOURCES/a2ps-4.13-conf.patch
Normal file
35
SOURCES/a2ps-4.13-conf.patch
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
diff -up a2ps-4.14/configure.conf a2ps-4.14/configure
|
||||||
|
--- a2ps-4.14/configure.conf 2008-04-27 01:01:04.000000000 +0200
|
||||||
|
+++ a2ps-4.14/configure 2008-04-27 01:04:12.000000000 +0200
|
||||||
|
@@ -30758,9 +30758,13 @@ fi
|
||||||
|
echo $ECHO_N "checking for PostScript fonts path... $ECHO_C" >&6; }
|
||||||
|
# Try to find some PostScript fonts.
|
||||||
|
# Find out if ghostscript is installed
|
||||||
|
+# for ac_dir in /usr/local/ghostscript/fonts \
|
||||||
|
+# /usr/local/share/ghostscript/fonts;
|
||||||
|
ac_psfont_path=
|
||||||
|
-for ac_dir in /usr/local/ghostscript/fonts \
|
||||||
|
- /usr/local/share/ghostscript/fonts;
|
||||||
|
+for ac_dir in /usr/share/fonts/default/Type1 \
|
||||||
|
+ /usr/share/fonts/default/ghostscript \
|
||||||
|
+ /usr/share/X11/fonts/Type1 \
|
||||||
|
+ /usr/share/fonts/culmus ;
|
||||||
|
do
|
||||||
|
if test "cd $ac_dir 2>/dev/null && echo *.afm"; then
|
||||||
|
ac_psfont_path="$ac_psfont_path:$ac_dir";
|
||||||
|
diff -up a2ps-4.14/configure.in.conf a2ps-4.14/configure.in
|
||||||
|
--- a2ps-4.14/configure.in.conf 2008-04-27 01:00:54.000000000 +0200
|
||||||
|
+++ a2ps-4.14/configure.in 2008-04-27 01:03:52.000000000 +0200
|
||||||
|
@@ -207,8 +207,10 @@ AC_MSG_CHECKING(for PostScript fonts pat
|
||||||
|
# Try to find some PostScript fonts.
|
||||||
|
# Find out if ghostscript is installed
|
||||||
|
ac_psfont_path=
|
||||||
|
-for ac_dir in /usr/local/ghostscript/fonts \
|
||||||
|
- /usr/local/share/ghostscript/fonts;
|
||||||
|
+for ac_dir in /usr/share/fonts/default/Type1 \
|
||||||
|
+ /usr/share/fonts/default/ghostscript \
|
||||||
|
+ /usr/share/X11/fonts/Type1 \
|
||||||
|
+ /usr/share/fonts/culmus ;
|
||||||
|
do
|
||||||
|
if test "cd $ac_dir 2>/dev/null && echo *.afm"; then
|
||||||
|
ac_psfont_path="$ac_psfont_path:$ac_dir";
|
59
SOURCES/a2ps-4.13-etc.patch
Normal file
59
SOURCES/a2ps-4.13-etc.patch
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
diff -up a2ps-4.14/etc/a2ps_cfg.in.etc a2ps-4.14/etc/a2ps_cfg.in
|
||||||
|
--- a2ps-4.14/etc/a2ps_cfg.in.etc 2007-12-29 02:38:58.000000000 +0100
|
||||||
|
+++ a2ps-4.14/etc/a2ps_cfg.in 2008-04-27 01:27:55.000000000 +0200
|
||||||
|
@@ -73,6 +73,7 @@ LibraryPath: @libpath@
|
||||||
|
# It may be useful to extend it so that a2ps can see some
|
||||||
|
# TeX or X11 resources: it likes AFM files and PF[AB] files.
|
||||||
|
#AppendLibraryPath: foo
|
||||||
|
+AppendLibraryPath: @apppath@
|
||||||
|
|
||||||
|
|
||||||
|
#################################################################
|
||||||
|
diff -up a2ps-4.14/etc/Makefile.am.etc a2ps-4.14/etc/Makefile.am
|
||||||
|
--- a2ps-4.14/etc/Makefile.am.etc 2002-07-19 14:07:27.000000000 +0200
|
||||||
|
+++ a2ps-4.14/etc/Makefile.am 2008-04-27 01:27:55.000000000 +0200
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
## Makefile for a2ps' etc library directory.
|
||||||
|
|
||||||
|
ogonkifydir=$(datadir)/ogonkify
|
||||||
|
-libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir)
|
||||||
|
+libpath = $(sysconfdir)/$(PACKAGE):$(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir)
|
||||||
|
|
||||||
|
pkgdata_DATA = README
|
||||||
|
|
||||||
|
@@ -40,7 +40,9 @@ DISTCLEANFILES = a2ps.cfg README
|
||||||
|
|
||||||
|
# Building the correct a2ps.cfg
|
||||||
|
a2ps.cfg: a2ps_cfg Makefile
|
||||||
|
- sed "s!@libpath@!$(libpath)!" a2ps_cfg > a2ps.cfg
|
||||||
|
+ sed -e "s!@libpath@!$(libpath)!" \
|
||||||
|
+ -e "s!@apppath@!$(PSFONT_PATH)!" \
|
||||||
|
+ a2ps_cfg > a2ps.cfg
|
||||||
|
|
||||||
|
# Building a time stamp to know the version.
|
||||||
|
README: README.in Makefile
|
||||||
|
diff -up a2ps-4.14/etc/Makefile.in.etc a2ps-4.14/etc/Makefile.in
|
||||||
|
--- a2ps-4.14/etc/Makefile.in.etc 2007-12-29 04:28:07.000000000 +0100
|
||||||
|
+++ a2ps-4.14/etc/Makefile.in 2008-04-27 01:30:55.000000000 +0200
|
||||||
|
@@ -262,7 +262,7 @@ sysconfdir = @sysconfdir@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
tex = @tex@
|
||||||
|
ogonkifydir = $(datadir)/ogonkify
|
||||||
|
-libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir)
|
||||||
|
+libpath = $(sysconfdir)/$(PACKAGE):$(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir)
|
||||||
|
pkgdata_DATA = README
|
||||||
|
dsysconf = $(DESTDIR)$(sysconfdir)
|
||||||
|
EXTRA_DIST = README.in
|
||||||
|
@@ -482,7 +482,9 @@ uninstall-local:
|
||||||
|
|
||||||
|
# Building the correct a2ps.cfg
|
||||||
|
a2ps.cfg: a2ps_cfg Makefile
|
||||||
|
- sed "s!@libpath@!$(libpath)!" a2ps_cfg > a2ps.cfg
|
||||||
|
+ sed -e "s!@libpath@!$(libpath)!" \
|
||||||
|
+ -e "s!@apppath@!$(PSFONT_PATH)!" \
|
||||||
|
+ a2ps_cfg > a2ps.cfg
|
||||||
|
|
||||||
|
# Building a time stamp to know the version.
|
||||||
|
README: README.in Makefile
|
||||||
|
diff -up a2ps-4.14/Makefile.am.etc a2ps-4.14/Makefile.am
|
||||||
|
diff -up a2ps-4.14/Makefile.in.etc a2ps-4.14/Makefile.in
|
1417
SOURCES/a2ps-4.13-eucjp.patch
Normal file
1417
SOURCES/a2ps-4.13-eucjp.patch
Normal file
File diff suppressed because it is too large
Load diff
148
SOURCES/a2ps-4.13-euckr.patch
Normal file
148
SOURCES/a2ps-4.13-euckr.patch
Normal file
|
@ -0,0 +1,148 @@
|
||||||
|
diff -up a2ps-4.14/encoding/encoding.map.euckr a2ps-4.14/encoding/encoding.map
|
||||||
|
--- a2ps-4.14/encoding/encoding.map.euckr 2008-04-27 01:46:59.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/encoding.map 2008-04-27 01:46:59.000000000 +0200
|
||||||
|
@@ -100,6 +100,12 @@ japanese euc-jp
|
||||||
|
ja euc-jp
|
||||||
|
jp euc-jp
|
||||||
|
|
||||||
|
+euc-kr euc-kr
|
||||||
|
+euc-kr euc-kr
|
||||||
|
+korean euc-kr
|
||||||
|
+ko euc-kr
|
||||||
|
+kr euc-kr
|
||||||
|
+
|
||||||
|
########################################################################
|
||||||
|
# Some architectures specific char sets
|
||||||
|
########################################################################
|
||||||
|
diff -up /dev/null a2ps-4.14/encoding/euc-kr.edf
|
||||||
|
--- /dev/null 2008-04-26 20:48:40.298012400 +0200
|
||||||
|
+++ a2ps-4.14/encoding/euc-kr.edf 2008-04-27 01:46:59.000000000 +0200
|
||||||
|
@@ -0,0 +1,104 @@
|
||||||
|
+# Description of the EUC-KR encoding
|
||||||
|
+# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
|
||||||
|
+# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
|
||||||
|
+# Copyright (c) 2003 Red Hat Inc.
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+#
|
||||||
|
+# This file is part of a2ps.
|
||||||
|
+#
|
||||||
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
|
+# it under the terms of the GNU General Public License as published by
|
||||||
|
+# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
+# any later version.
|
||||||
|
+#
|
||||||
|
+# This program 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 General Public License for more details.
|
||||||
|
+#
|
||||||
|
+# You should have received a copy of the GNU General Public License
|
||||||
|
+# along with this program; see the file COPYING. If not, write to
|
||||||
|
+# the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||||
|
+# Boston, MA 02111-1307, USA.
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+#
|
||||||
|
+# This file is derived from euc-jp.edf.
|
||||||
|
+# Just font is renamed.
|
||||||
|
+# The bug should go into our bugilla. http://bugzilla.redhat.com/
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+Name: EUC-KR
|
||||||
|
+
|
||||||
|
+Documentation
|
||||||
|
+EUC-KR is Korean charset.
|
||||||
|
+EndDocumentation
|
||||||
|
+
|
||||||
|
+# If there is an unknown font requested, use Courier
|
||||||
|
+Default: Courier
|
||||||
|
+
|
||||||
|
+# Automatic spell checking :)
|
||||||
|
+Substitute: Times Times-Roman
|
||||||
|
+Substitute: Helvetica-Italic Helvetica-Oblique
|
||||||
|
+Substitute: Helvetica-BoldItalic Helvetica-BoldOblique
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+# SlantFont for Korean font
|
||||||
|
+# new font source font value
|
||||||
|
+SlantFont: Baekmuk-Gulim--KSC-EUC-H-Italic Baekmuk-Gulim--KSC-EUC-H 0.2
|
||||||
|
+SlantFont: Baekmuk-Dotum--KSC-EUC-H-Italic Baekmuk-Dotum--KSC-EUC-H 0.2
|
||||||
|
+
|
||||||
|
+# Compose font for Korean EUC code
|
||||||
|
+# target font additional font width size rate
|
||||||
|
+DefaultComposite: Baekmuk-Gulim--KSC-EUC-H 1.0 1.1
|
||||||
|
+
|
||||||
|
+# 1:2 fixed
|
||||||
|
+#DefaultComposite: Baekmuk-Gulim--KSC-EUC-H 1.0 0.8333
|
||||||
|
+
|
||||||
|
+# 1:1 fixed
|
||||||
|
+#DefaultComposite: Baekmuk-Gulim--KSC-EUC-H 1.0 1.6666
|
||||||
|
+
|
||||||
|
+Composite: Helvetica Baekmuk-Dotum--KSC-EUC-H 1.0 1.1
|
||||||
|
+Composite: Helvetica-Oblique Baekmuk-Dotum--KSC-EUC-H-Italic 1.0 1.1
|
||||||
|
+Composite: Helvetica-Bold Baekmuk-Dotum--KSC-EUC-H 1.0 1.1
|
||||||
|
+Composite: Helvetica-BoldOblique Baekmuk-Dotum--KSC-EUC-H-Italic 1.0 1.1
|
||||||
|
+
|
||||||
|
+Composite: Courier-Oblique Baekmuk-Gulim--KSC-EUC-H-Italic 1.0 1.1
|
||||||
|
+Composite: Courier-Bold Baekmuk-Dotum--KSC-EUC-H 1.0 1.1
|
||||||
|
+Composite: Courier-BoldOblique Baekmuk-Dotum--KSC-EUC-H-Italic 1.0 1.1
|
||||||
|
+Composite: Times-Bold Baekmuk-Dotum--KSC-EUC-H 1.0 1.1
|
||||||
|
+
|
||||||
|
+Vector:
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+space exclam quotedbl numbersign dollar percent ampersand quoteright
|
||||||
|
+parenleft parenright asterisk plus comma minus period slash
|
||||||
|
+zero one two three four five six seven
|
||||||
|
+eight nine colon semicolon less equal greater question
|
||||||
|
+at A B C D E F G
|
||||||
|
+H I J K L M N O
|
||||||
|
+P Q R S T U V W
|
||||||
|
+X Y Z bracketleft backslash bracketright asciicircum underscore
|
||||||
|
+quoteleft a b c d e f g
|
||||||
|
+h i j k l m n o
|
||||||
|
+p q r s t u v w
|
||||||
|
+x y z braceleft bar braceright asciitilde .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+space exclamdown cent sterling currency yen brokenbar section
|
||||||
|
+dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron
|
||||||
|
+degree plusminus twosuperior threesuperior acute mu paragraph bullet
|
||||||
|
+cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters questiondown
|
||||||
|
+Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla
|
||||||
|
+Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis
|
||||||
|
+Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis multiply
|
||||||
|
+Oslash Ugrave Uacute Ucircumflex Udieresis Yacute Thorn germandbls
|
||||||
|
+agrave aacute acircumflex atilde adieresis aring ae ccedilla
|
||||||
|
+egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis
|
||||||
|
+eth ntilde ograve oacute ocircumflex otilde odieresis divide
|
||||||
|
+oslash ugrave uacute ucircumflex udieresis yacute thorn ydieresis
|
||||||
|
diff -up a2ps-4.14/encoding/Makefile.am.euckr a2ps-4.14/encoding/Makefile.am
|
||||||
|
--- a2ps-4.14/encoding/Makefile.am.euckr 2008-04-27 01:46:59.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/Makefile.am 2008-04-27 01:47:58.000000000 +0200
|
||||||
|
@@ -16,7 +16,7 @@ major_encodings = ascii.edf iso1.edf
|
||||||
|
minor_encodings = \
|
||||||
|
ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \
|
||||||
|
iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
-iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf
|
||||||
|
+iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf euc-kr.edf
|
||||||
|
|
||||||
|
if EXTENSIONS
|
||||||
|
encodings_DATA = encoding.map $(major_encodings) $(minor_encodings)
|
||||||
|
diff -up a2ps-4.14/encoding/Makefile.in.euckr a2ps-4.14/encoding/Makefile.in
|
||||||
|
--- a2ps-4.14/encoding/Makefile.in.euckr 2008-04-27 01:46:59.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/Makefile.in 2008-04-27 01:48:09.000000000 +0200
|
||||||
|
@@ -270,7 +270,7 @@ major_encodings = ascii.edf iso1.edf
|
||||||
|
minor_encodings = \
|
||||||
|
ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \
|
||||||
|
iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
-iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf
|
||||||
|
+iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf euc-kr.edf
|
||||||
|
|
||||||
|
@EXTENSIONS_FALSE@encodings_DATA = encoding.map $(major_encodings)
|
||||||
|
@EXTENSIONS_TRUE@encodings_DATA = encoding.map $(major_encodings) $(minor_encodings)
|
86
SOURCES/a2ps-4.13-glibcpaper.patch
Normal file
86
SOURCES/a2ps-4.13-glibcpaper.patch
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
--- a2ps-4.13/lib/jobs.c.glibcpaper Sat Jan 15 18:15:07 2000
|
||||||
|
+++ a2ps-4.13/lib/jobs.c Tue Feb 20 18:44:48 2001
|
||||||
|
@@ -138,6 +138,7 @@
|
||||||
|
setlocale (LC_MESSAGES, "");
|
||||||
|
#endif
|
||||||
|
setlocale (LC_CTYPE, "");
|
||||||
|
+ setlocale (LC_PAPER, "");
|
||||||
|
|
||||||
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
|
textdomain (PACKAGE);
|
||||||
|
--- a2ps-4.13/lib/options.c.glibcpaper Tue Aug 31 13:42:41 1999
|
||||||
|
+++ a2ps-4.13/lib/options.c Tue Feb 20 18:44:48 2001
|
||||||
|
@@ -54,6 +54,8 @@
|
||||||
|
#include "argv.h"
|
||||||
|
#include "quotearg.h"
|
||||||
|
#include "filalign.h"
|
||||||
|
+#include <locale.h>
|
||||||
|
+#include <langinfo.h>
|
||||||
|
|
||||||
|
#define MAN_LINES 66 /* no lines for a man */
|
||||||
|
extern char *program_name;
|
||||||
|
@@ -281,7 +283,8 @@
|
||||||
|
struct opt_optarg *opt_optarg_head = NULL;
|
||||||
|
struct opt_optarg *opt_optarg = NULL;
|
||||||
|
int res;
|
||||||
|
-
|
||||||
|
+ unsigned int paper_height=0;
|
||||||
|
+
|
||||||
|
/* Reset optind so that getopt is reinitialized. */
|
||||||
|
optind = 0;
|
||||||
|
|
||||||
|
@@ -545,7 +548,14 @@
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'M': /* select a medium */
|
||||||
|
- xstrcpy (job->medium_request, optarg);
|
||||||
|
+ if(strcasecmp("_glibc",optarg)==0){
|
||||||
|
+ paper_height = ((union { char *string; unsigned int word; })nl_langinfo(_NL_PAPER_HEIGHT)).word;
|
||||||
|
+ if(paper_height==279) /* US Letter */
|
||||||
|
+ strcpy(optarg,"letter");
|
||||||
|
+ else /* Everyone else */
|
||||||
|
+ strcpy(optarg,"a4");
|
||||||
|
+ }
|
||||||
|
+ xstrcpy (job->medium_request, optarg);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'n': /* n copies */
|
||||||
|
--- a2ps-4.13/src/main.c.glibcpaper Wed Jan 26 19:29:15 2000
|
||||||
|
+++ a2ps-4.13/src/main.c Tue Feb 20 18:45:18 2001
|
||||||
|
@@ -945,6 +945,7 @@
|
||||||
|
setlocale (LC_MESSAGES, "");
|
||||||
|
#endif
|
||||||
|
setlocale (LC_CTYPE, "");
|
||||||
|
+ setlocale (LC_PAPER, "");
|
||||||
|
|
||||||
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
|
textdomain (PACKAGE);
|
||||||
|
--- a2ps-4.13/doc/a2ps.texi.glibcpaper Wed Jan 23 12:36:30 2002
|
||||||
|
+++ a2ps-4.13/doc/a2ps.texi Wed Jan 23 12:40:08 2002
|
||||||
|
@@ -1363,6 +1363,12 @@
|
||||||
|
ask the library @code{libpaper} for the medium to use. This choice is
|
||||||
|
valid only if @code{libpaper} was available when @pack{} was configured.
|
||||||
|
See the man page of @code{paperconf} for more information.
|
||||||
|
+
|
||||||
|
+The special @var{medium} @samp{_glibc} (which, in this Red Hat Linux
|
||||||
|
+version of @samp{a2ps}, is the default) means that you want the medium
|
||||||
|
+to be determined by the locale category @samp{LC_PAPER}. Note that this
|
||||||
|
+information is obtained from environment variables which may not be set
|
||||||
|
+up in non-interactive environments (such as in a cron job).
|
||||||
|
@end defvr
|
||||||
|
|
||||||
|
@defvr {Option} -r
|
||||||
|
--- a2ps-4.13/man/a2ps.1.glibcpaper Wed Jan 23 12:42:36 2002
|
||||||
|
+++ a2ps-4.13/man/a2ps.1 Wed Jan 23 12:45:05 2002
|
||||||
|
@@ -60,6 +60,11 @@
|
||||||
|
.TP
|
||||||
|
\fB\-M\fR, \fB\-\-medium\fR=\fINAME\fR
|
||||||
|
use output medium NAME
|
||||||
|
+
|
||||||
|
+The default behaviour is to use the locale category
|
||||||
|
+\fBLC_PAPER\fR to determine the medium to use. Note that this
|
||||||
|
+information is obtained from environment variables which may not be set
|
||||||
|
+up in non-interactive environments (such as in a cron job).
|
||||||
|
.TP
|
||||||
|
\fB\-r\fR, \fB\-\-landscape\fR
|
||||||
|
print in landscape mode
|
18
SOURCES/a2ps-4.13-gnusource.patch
Normal file
18
SOURCES/a2ps-4.13-gnusource.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- a2ps-4.13/src/main.c.gnusource 2003-10-17 17:07:05.000000000 +0100
|
||||||
|
+++ a2ps-4.13/src/main.c 2003-10-17 17:07:17.000000000 +0100
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
/* I n c l u d e f i l e s */
|
||||||
|
/* */
|
||||||
|
/************************************************************************/
|
||||||
|
+#define _GNU_SOURCE
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <langinfo.h>
|
||||||
|
@@ -105,7 +106,6 @@
|
||||||
|
defined twice, see lib/confg.gperf, handling of `Options:'. */
|
||||||
|
|
||||||
|
char *program_name;
|
||||||
|
-const char *program_invocation_name;
|
||||||
|
|
||||||
|
/* Stores the data of liba2ps. */
|
||||||
|
|
118
SOURCES/a2ps-4.13-hebrew.patch
Normal file
118
SOURCES/a2ps-4.13-hebrew.patch
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
diff -up a2ps-4.14/encoding/encoding.map.hebrew a2ps-4.14/encoding/encoding.map
|
||||||
|
--- a2ps-4.14/encoding/encoding.map.hebrew 2008-04-27 01:50:14.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/encoding.map 2008-04-27 01:50:14.000000000 +0200
|
||||||
|
@@ -65,6 +65,9 @@ iso-8859-5 iso5
|
||||||
|
iso7 iso7
|
||||||
|
iso-8859-7 iso7
|
||||||
|
|
||||||
|
+iso8 iso8
|
||||||
|
+iso-8859-8 iso8
|
||||||
|
+
|
||||||
|
# The following lines _are_not_an_error_.
|
||||||
|
# This is the right correspondance between ISO-8859 names
|
||||||
|
# and the Latin n nick name.
|
||||||
|
diff -up /dev/null a2ps-4.14/encoding/iso8.edf
|
||||||
|
--- /dev/null 2008-04-26 20:48:40.298012400 +0200
|
||||||
|
+++ a2ps-4.14/encoding/iso8.edf 2008-04-27 01:50:14.000000000 +0200
|
||||||
|
@@ -0,0 +1,77 @@
|
||||||
|
+# Description of the ISO-8859-8 encoding
|
||||||
|
+# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
|
||||||
|
+# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+#
|
||||||
|
+# This file is part of a2ps.
|
||||||
|
+#
|
||||||
|
+# This program is free software; you can redistribute it and/or modify
|
||||||
|
+# it under the terms of the GNU General Public License as published by
|
||||||
|
+# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
+# any later version.
|
||||||
|
+#
|
||||||
|
+# This program 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 General Public License for more details.
|
||||||
|
+#
|
||||||
|
+# You should have received a copy of the GNU General Public License
|
||||||
|
+# along with this program; see the file COPYING. If not, write to
|
||||||
|
+# the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||||
|
+# Boston, MA 02111-1307, USA.
|
||||||
|
+#
|
||||||
|
+
|
||||||
|
+Name: ISO-8859-8
|
||||||
|
+
|
||||||
|
+# This text is reproduced by a courtesy of Roman Czyborra
|
||||||
|
+# http://czyborra.com/charsets/iso8859.html
|
||||||
|
+Documentation
|
||||||
|
+The Hebrew (8bit) encoding
|
||||||
|
+EndDocumentation
|
||||||
|
+
|
||||||
|
+# This file has been specifically adapted for use with Hebrew Culmus fonts
|
||||||
|
+
|
||||||
|
+# If there is an unknown font requested, use Courier
|
||||||
|
+Default: MiriamMonoCLM-Book
|
||||||
|
+
|
||||||
|
+# Automatic spell checking :)
|
||||||
|
+Substitute: Times DavidCLM-Medium
|
||||||
|
+Substitute: Helvetica NachlieliCLM-Light
|
||||||
|
+Substitute: Helvetica-Bold NachlieliCLM-Bold
|
||||||
|
+Substitute: Courier MiriamMonoCLM-Book
|
||||||
|
+Substitute: Courier-Bold MiriamMonoCLM-Bold
|
||||||
|
+
|
||||||
|
+Vector:
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+space exclam quotedbl numbersign dollar percent ampersand quotesingle
|
||||||
|
+parenleft parenright asterisk plus comma hyphen period slash
|
||||||
|
+zero one two three four five six seven
|
||||||
|
+eight nine colon semicolon less equal greater question
|
||||||
|
+at A B C D E F G
|
||||||
|
+H I J K L M N O
|
||||||
|
+P Q R S T U V W
|
||||||
|
+X Y Z bracketleft backslash bracketright asciicircum underscore
|
||||||
|
+grave a b c d e f g
|
||||||
|
+h i j k l m n o
|
||||||
|
+p q r s t u v w
|
||||||
|
+x y z braceleft bar braceright asciitilde .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+space exclamdown cent sterling currency yen brokenbar section
|
||||||
|
+dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron
|
||||||
|
+degree plusminus twosuperior threesuperior acute mu paragraph bullet
|
||||||
|
+cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
+notdef .notdef .notdef .notdef .notdef .notdef .notdef underscoredbl
|
||||||
|
+afii57664 afii57665 afii57666 afii57667 afii57668 afii57669 afii57670 afii57671
|
||||||
|
+afii57672 afii57673 afii57674 afii57675 afii57676 afii57677 afii57678 afii57679
|
||||||
|
+afii57680 afii57681 afii57682 afii57683 afii57684 afii57685 afii57686 afii57687
|
||||||
|
+afii57688 afii57689 afii57690 .notdef .notdef .notdef .notdef .notdef
|
||||||
|
diff -up a2ps-4.14/encoding/Makefile.am.hebrew a2ps-4.14/encoding/Makefile.am
|
||||||
|
--- a2ps-4.14/encoding/Makefile.am.hebrew 2008-04-27 01:51:14.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/Makefile.am 2008-04-27 01:52:11.000000000 +0200
|
||||||
|
@@ -15,7 +15,7 @@ encodingsdir = $(pkgdatadir)/encoding
|
||||||
|
major_encodings = ascii.edf iso1.edf
|
||||||
|
minor_encodings = \
|
||||||
|
ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \
|
||||||
|
-iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
+iso3.edf iso4.edf iso5.edf iso7.edf iso8.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf euc-kr.edf
|
||||||
|
|
||||||
|
if EXTENSIONS
|
||||||
|
diff -up a2ps-4.14/encoding/Makefile.in.hebrew a2ps-4.14/encoding/Makefile.in
|
||||||
|
--- a2ps-4.14/encoding/Makefile.in.hebrew 2008-04-27 01:50:14.000000000 +0200
|
||||||
|
+++ a2ps-4.14/encoding/Makefile.in 2008-04-27 01:52:01.000000000 +0200
|
||||||
|
@@ -269,7 +269,7 @@ encodingsdir = $(pkgdatadir)/encoding
|
||||||
|
major_encodings = ascii.edf iso1.edf
|
||||||
|
minor_encodings = \
|
||||||
|
ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \
|
||||||
|
-iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
+iso3.edf iso4.edf iso5.edf iso7.edf iso8.edf iso9.edf iso10.edf iso13.edf \
|
||||||
|
iso15.edf koi8.edf ms-cp1251.edf euc-jp.edf euc-kr.edf
|
||||||
|
|
||||||
|
@EXTENSIONS_FALSE@encodings_DATA = encoding.map $(major_encodings)
|
65
SOURCES/a2ps-4.13-security.patch
Normal file
65
SOURCES/a2ps-4.13-security.patch
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
--- a2ps-4.13/lib/routines.c.security Sat Oct 16 05:46:37 1999
|
||||||
|
+++ a2ps-4.13/lib/routines.c Mon Feb 12 17:45:15 2001
|
||||||
|
@@ -242,3 +242,50 @@
|
||||||
|
/* Don't complain if you can't unlink. Who cares of a tmp file? */
|
||||||
|
unlink (filename);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * Securely generate a temp file, and make sure it gets
|
||||||
|
+ * deleted upon exit.
|
||||||
|
+ */
|
||||||
|
+static char ** tempfiles;
|
||||||
|
+static unsigned ntempfiles;
|
||||||
|
+
|
||||||
|
+static void
|
||||||
|
+cleanup_tempfiles()
|
||||||
|
+{
|
||||||
|
+ while (ntempfiles--)
|
||||||
|
+ unlink(tempfiles[ntempfiles]);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+char *
|
||||||
|
+safe_tempnam(const char *pfx)
|
||||||
|
+{
|
||||||
|
+ char *dirname, *filename;
|
||||||
|
+ int fd;
|
||||||
|
+
|
||||||
|
+ if (!(dirname = getenv("TMPDIR")))
|
||||||
|
+ dirname = "/tmp";
|
||||||
|
+
|
||||||
|
+ tempfiles = (char **) realloc(tempfiles,
|
||||||
|
+ (ntempfiles+1) * sizeof(char *));
|
||||||
|
+ if (tempfiles == NULL)
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
+ filename = malloc(strlen(dirname) + strlen(pfx) + sizeof("/XXXXXX"));
|
||||||
|
+ if (!filename)
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
+ sprintf(filename, "%s/%sXXXXXX", dirname, pfx);
|
||||||
|
+
|
||||||
|
+ if ((fd = mkstemp(filename)) < 0) {
|
||||||
|
+ free(filename);
|
||||||
|
+ return NULL;
|
||||||
|
+ }
|
||||||
|
+ close(fd);
|
||||||
|
+
|
||||||
|
+ if (ntempfiles == 0)
|
||||||
|
+ atexit(cleanup_tempfiles);
|
||||||
|
+ tempfiles[ntempfiles++] = filename;
|
||||||
|
+
|
||||||
|
+ return filename;
|
||||||
|
+}
|
||||||
|
--- a2ps-4.13/lib/routines.h.security Mon Oct 18 21:24:41 1999
|
||||||
|
+++ a2ps-4.13/lib/routines.h Mon Feb 12 17:39:30 2001
|
||||||
|
@@ -255,7 +255,8 @@
|
||||||
|
/* If _STR_ is not defined, give it a tempname in _TMPDIR_ */
|
||||||
|
#define tempname_ensure(Str) \
|
||||||
|
do { \
|
||||||
|
- (Str) = (Str) ? (Str) : tempnam (NULL, "a2_"); \
|
||||||
|
+ (Str) = (Str) ? (Str) : safe_tempnam("a2_"); \
|
||||||
|
} while (0)
|
||||||
|
+char * safe_tempnam(const char *);
|
||||||
|
|
||||||
|
#endif
|
92
SOURCES/a2ps-4.13b-attr.patch
Normal file
92
SOURCES/a2ps-4.13b-attr.patch
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
--- a2ps-4.13/lib/fonts.c.attr Wed Jan 9 14:41:27 2002
|
||||||
|
+++ a2ps-4.13/lib/fonts.c Wed Jan 9 14:42:01 2002
|
||||||
|
@@ -2173,7 +2173,7 @@
|
||||||
|
* in the encoding specific dictionary
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
-font_is_to_reencode (PARAM_UNUSED struct a2ps_job * job, const char * key)
|
||||||
|
+font_is_to_reencode (struct a2ps_job * job PARAM_UNUSED, const char * key)
|
||||||
|
{
|
||||||
|
return !strequ (key, "Symbol");
|
||||||
|
}
|
||||||
|
--- a2ps-4.13/lib/lister.c.attr Wed Jan 9 14:41:30 2002
|
||||||
|
+++ a2ps-4.13/lib/lister.c Wed Jan 9 14:42:28 2002
|
||||||
|
@@ -333,7 +333,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
-lister_fprint_vertical (struct lister * lister, PARAM_UNUSED FILE *unused,
|
||||||
|
+lister_fprint_vertical (struct lister * lister, FILE *unused PARAM_UNUSED,
|
||||||
|
void **items, size_t item_number,
|
||||||
|
lister_width_t item_width_fn,
|
||||||
|
lister_print_t item_print_fn)
|
||||||
|
@@ -483,7 +483,7 @@
|
||||||
|
/* FIXME: document */
|
||||||
|
|
||||||
|
void
|
||||||
|
-lister_fprint_horizontal (struct lister * lister, PARAM_UNUSED FILE *unused,
|
||||||
|
+lister_fprint_horizontal (struct lister * lister, FILE *unused PARAM_UNUSED,
|
||||||
|
void **items, size_t item_number,
|
||||||
|
lister_width_t item_width_fn,
|
||||||
|
lister_print_t item_print_fn)
|
||||||
|
@@ -577,7 +577,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
void
|
||||||
|
-lister_fprint_separated (struct lister * lister,PARAM_UNUSED FILE *unused,
|
||||||
|
+lister_fprint_separated (struct lister * lister,FILE *unused PARAM_UNUSED,
|
||||||
|
void **items, size_t item_number,
|
||||||
|
lister_width_t item_width_fn,
|
||||||
|
lister_print_t item_print_fn)
|
||||||
|
--- a2ps-4.13/lib/media.c.attr Wed Jan 9 14:41:33 2002
|
||||||
|
+++ a2ps-4.13/lib/media.c Wed Jan 9 14:42:35 2002
|
||||||
|
@@ -190,7 +190,7 @@
|
||||||
|
|
||||||
|
/* Is libpaper used? */
|
||||||
|
bool
|
||||||
|
-a2ps_medium_libpaper_p (PARAM_UNUSED a2ps_job * job, const char * name)
|
||||||
|
+a2ps_medium_libpaper_p (a2ps_job * job PARAM_UNUSED, const char * name)
|
||||||
|
{
|
||||||
|
return strequ (name, LIBPAPER_MEDIUM) ? true : false;
|
||||||
|
}
|
||||||
|
--- a2ps-4.13/lib/pathwalk.c.attr Wed Jan 9 14:41:38 2002
|
||||||
|
+++ a2ps-4.13/lib/pathwalk.c Wed Jan 9 14:42:47 2002
|
||||||
|
@@ -425,14 +425,14 @@
|
||||||
|
/* Helping functions for pw_glob. */
|
||||||
|
|
||||||
|
static bool
|
||||||
|
-pw_filter_fnmatch (PARAM_UNUSED const char * dir, const char *file,
|
||||||
|
+pw_filter_fnmatch (const char * dir PARAM_UNUSED, const char *file,
|
||||||
|
const char *pattern)
|
||||||
|
{
|
||||||
|
return !fnmatch (pattern, file, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-pw_filter_da_append (PARAM_UNUSED const char * dir, const char *file,
|
||||||
|
+pw_filter_da_append (const char * dir PARAM_UNUSED, const char *file,
|
||||||
|
struct darray *da)
|
||||||
|
{
|
||||||
|
da_append (da, xstrdup (file));
|
||||||
|
--- a2ps-4.13/lib/routines.c.attr Wed Jan 9 14:41:42 2002
|
||||||
|
+++ a2ps-4.13/lib/routines.c Wed Jan 9 14:42:54 2002
|
||||||
|
@@ -235,7 +235,7 @@
|
||||||
|
* Unlink the file FILENAME.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
-unlink2 (PARAM_UNUSED void * dummy, const char * filename)
|
||||||
|
+unlink2 (void * dummy PARAM_UNUSED, const char * filename)
|
||||||
|
{
|
||||||
|
message (msg_tool | msg_file, (stderr, "Unlinking file `%s'\n", filename));
|
||||||
|
|
||||||
|
--- a2ps-4.13/lib/fonts.l.attr Wed Jan 9 14:58:38 2002
|
||||||
|
+++ a2ps-4.13/lib/fonts.l Wed Jan 9 14:58:52 2002
|
||||||
|
@@ -585,7 +585,7 @@
|
||||||
|
* in the encoding specific dictionary
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
-font_is_to_reencode (PARAM_UNUSED struct a2ps_job * job, const char * key)
|
||||||
|
+font_is_to_reencode (struct a2ps_job * job PARAM_UNUSED, const char * key)
|
||||||
|
{
|
||||||
|
return !strequ (key, "Symbol");
|
||||||
|
}
|
50
SOURCES/a2ps-4.13b-encoding.patch
Normal file
50
SOURCES/a2ps-4.13b-encoding.patch
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
--- a2ps-4.13/etc/a2ps-site.cfg.in.encoding 2000-01-15 23:39:36.000000000 +0000
|
||||||
|
+++ a2ps-4.13/etc/a2ps-site.cfg.in 2002-08-05 10:22:20.000000000 +0100
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
#################################################################
|
||||||
|
|
||||||
|
# Default encoding
|
||||||
|
-Options: --encoding=@ENCODING@
|
||||||
|
+#Options: --encoding=@ENCODING@
|
||||||
|
|
||||||
|
# Default medium
|
||||||
|
Options: --medium=@MEDIUM@
|
||||||
|
--- a2ps-4.13/src/main.c.encoding 2002-08-05 10:22:20.000000000 +0100
|
||||||
|
+++ a2ps-4.13/src/main.c 2002-08-05 10:22:20.000000000 +0100
|
||||||
|
@@ -32,6 +32,7 @@
|
||||||
|
/************************************************************************/
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <langinfo.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
|
#include "a2ps.h"
|
||||||
|
@@ -1021,9 +1022,8 @@
|
||||||
|
sheets_map = sheets_map_new ();
|
||||||
|
style_sheets = new_style_sheets ();
|
||||||
|
|
||||||
|
- /* Process special case: Japanese Document */
|
||||||
|
- if (! strncmp (locale, "ja", 2) )
|
||||||
|
- job->requested_encoding_name = xstrdup ("euc-jp");
|
||||||
|
+ /* Use locale to set default encoding. */
|
||||||
|
+ job->requested_encoding_name = xstrdup (nl_langinfo (CODESET));
|
||||||
|
|
||||||
|
/* Process the command line options. */
|
||||||
|
argn = a2ps_handle_options (job, argc, argv);
|
||||||
|
--- a2ps-4.13/encoding/encoding.map.encoding 2002-08-05 10:22:20.000000000 +0100
|
||||||
|
+++ a2ps-4.13/encoding/encoding.map 2002-08-05 10:38:55.000000000 +0100
|
||||||
|
@@ -45,6 +45,7 @@
|
||||||
|
latin1 iso1
|
||||||
|
iso1 iso1
|
||||||
|
iso-8859-1 iso1
|
||||||
|
+ansi_x3.4-1968 iso1
|
||||||
|
|
||||||
|
latin2 iso2
|
||||||
|
iso2 iso2
|
||||||
|
@@ -128,3 +129,6 @@
|
||||||
|
# Apple' Macintosh
|
||||||
|
mac mac
|
||||||
|
macintosh mac
|
||||||
|
+
|
||||||
|
+# We don't handle UTF-8 at all yet. Sometimes latin1 will work...
|
||||||
|
+utf-8 iso1
|
10
SOURCES/a2ps-4.13b-numeric.patch
Normal file
10
SOURCES/a2ps-4.13b-numeric.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- a2ps-4.13/src/main.c.numeric Wed Jan 9 14:59:46 2002
|
||||||
|
+++ a2ps-4.13/src/main.c Wed Jan 9 15:03:52 2002
|
||||||
|
@@ -951,6 +951,7 @@
|
||||||
|
setlocale (LC_PAPER, "");
|
||||||
|
|
||||||
|
locale = setlocale (LC_ALL, "");
|
||||||
|
+ setlocale (LC_NUMERIC, "C");
|
||||||
|
/* fprintf(stderr, "locale : %s\n", locale); */
|
||||||
|
|
||||||
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
11
SOURCES/a2ps-4.13b-tilde.patch
Normal file
11
SOURCES/a2ps-4.13b-tilde.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a2ps-4.13/encoding/koi8.edf.tilde 2002-06-21 12:59:41.000000000 +0100
|
||||||
|
+++ a2ps-4.13/encoding/koi8.edf 2002-06-21 13:00:02.000000000 +0100
|
||||||
|
@@ -60,7 +60,7 @@
|
||||||
|
greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y
|
||||||
|
Z bracketleft backslash bracketright asciicircum underscore quoteleft
|
||||||
|
a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar
|
||||||
|
-braceright tilde .notdef .notdef .notdef .notdef .notdef guillmotleft
|
||||||
|
+braceright asciitilde .notdef .notdef .notdef .notdef .notdef guillmotleft
|
||||||
|
guillmotright afii61352 .notdef .notdef .notdef .notdef .notdef
|
||||||
|
.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
128
SOURCES/a2ps-4.14-texinfo-nodes.patch
Normal file
128
SOURCES/a2ps-4.14-texinfo-nodes.patch
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
diff -up a2ps-4.14/doc/regex.texi_old a2ps-4.14/doc/regex.texi
|
||||||
|
--- a2ps-4.14/doc/regex.texi_old 2002-03-04 19:46:24.000000000 +0100
|
||||||
|
+++ a2ps-4.14/doc/regex.texi 2008-05-16 11:34:42.000000000 +0200
|
||||||
|
@@ -121,7 +121,7 @@ Regular Expression Syntax
|
||||||
|
|
||||||
|
* Syntax Bits::
|
||||||
|
* Predefined Syntaxes::
|
||||||
|
-* Collating Elements vs. Characters::
|
||||||
|
+* Collating Elements vs Characters::
|
||||||
|
* The Backslash Character::
|
||||||
|
|
||||||
|
Common Operators
|
||||||
|
@@ -305,7 +305,7 @@ In the following sections, we describe t
|
||||||
|
@menu
|
||||||
|
* Syntax Bits::
|
||||||
|
* Predefined Syntaxes::
|
||||||
|
-* Collating Elements vs. Characters::
|
||||||
|
+* Collating Elements vs Characters::
|
||||||
|
* The Backslash Character::
|
||||||
|
@end menu
|
||||||
|
|
||||||
|
@@ -470,7 +470,7 @@ operator (based on how @code{RE_NO_BK_PA
|
||||||
|
@end table
|
||||||
|
|
||||||
|
|
||||||
|
-@node Predefined Syntaxes, Collating Elements vs. Characters, Syntax Bits, Regular Expression Syntax
|
||||||
|
+@node Predefined Syntaxes, Collating Elements vs Characters, Syntax Bits, Regular Expression Syntax
|
||||||
|
@section Predefined Syntaxes
|
||||||
|
|
||||||
|
If you're programming with Regex, you can set a pattern buffer's
|
||||||
|
@@ -552,8 +552,8 @@ The predefined syntaxes--taken directly
|
||||||
|
| RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||||
|
@end example
|
||||||
|
|
||||||
|
-@node Collating Elements vs. Characters, The Backslash Character, Predefined Syntaxes, Regular Expression Syntax
|
||||||
|
-@section Collating Elements vs.@: Characters
|
||||||
|
+@node Collating Elements vs Characters, The Backslash Character, Predefined Syntaxes, Regular Expression Syntax
|
||||||
|
+@section Collating Elements vs@: Characters
|
||||||
|
|
||||||
|
@sc{posix} generalizes the notion of a character to that of a
|
||||||
|
collating element. It defines a @dfn{collating element} to be ``a
|
||||||
|
@@ -577,7 +577,7 @@ collating element. For example, the Spa
|
||||||
|
Since @sc{posix}'s ``collating element'' preserves the essential idea of
|
||||||
|
a ``character,'' we use the latter, more familiar, term in this document.
|
||||||
|
|
||||||
|
-@node The Backslash Character, , Collating Elements vs. Characters, Regular Expression Syntax
|
||||||
|
+@node The Backslash Character, , Collating Elements vs Characters, Regular Expression Syntax
|
||||||
|
@section The Backslash Character
|
||||||
|
|
||||||
|
@cindex @samp{\}
|
||||||
|
diff -up a2ps-4.14/doc/a2ps.texi_old a2ps-4.14/doc/a2ps.texi
|
||||||
|
--- a2ps-4.14/doc/a2ps.texi_old 2008-05-16 11:34:21.000000000 +0200
|
||||||
|
+++ a2ps-4.14/doc/a2ps.texi 2008-05-16 11:42:11.000000000 +0200
|
||||||
|
@@ -371,11 +371,11 @@ Contributions
|
||||||
|
|
||||||
|
Frequently asked questions
|
||||||
|
|
||||||
|
-* Why Does ...?:: Questions on Error
|
||||||
|
-* How Can I ...?:: a2ps' How-To
|
||||||
|
-* Please tell me...:: Existential Questions on a2ps
|
||||||
|
+* Why Does?:: Questions on Error
|
||||||
|
+* How Can I?:: a2ps' How-To
|
||||||
|
+* Please tell me:: Existential Questions on a2ps
|
||||||
|
|
||||||
|
-Why Does...?
|
||||||
|
+Why Does?
|
||||||
|
|
||||||
|
* It Prints Nothing:: The printer issues nothing
|
||||||
|
* It Prints in Simplex:: While I asked for Duplex
|
||||||
|
@@ -385,7 +385,7 @@ Why Does...?
|
||||||
|
* It Says my File is Binary:: And refuses to print it
|
||||||
|
* It Refuses to Change the Font Size::
|
||||||
|
|
||||||
|
-How Can I ...?
|
||||||
|
+How Can I?
|
||||||
|
|
||||||
|
* Leave Room for Binding:: Specifying Margins
|
||||||
|
* Print stdin:: Using a2ps in a pipe chain
|
||||||
|
@@ -395,7 +395,7 @@ How Can I ...?
|
||||||
|
* Non PostScript Printers:: Using GhostScript
|
||||||
|
* Man Pages with Underlines:: Now it Prints With Italics
|
||||||
|
|
||||||
|
-Please tell me...
|
||||||
|
+Please tell me
|
||||||
|
|
||||||
|
* Is a2ps Y2K compliant?:: Printing dates in short format
|
||||||
|
* The Options Have Changed:: Respect The Users
|
||||||
|
@@ -6198,13 +6198,13 @@ question about the options, etc. It has
|
||||||
|
suggestions, not to contact the authors.
|
||||||
|
|
||||||
|
@menu
|
||||||
|
-* Why Does ...?:: Questions on Error
|
||||||
|
-* How Can I ...?:: a2ps' How-To
|
||||||
|
-* Please tell me...:: Existential Questions on a2ps
|
||||||
|
+* Why Does?:: Questions on Error
|
||||||
|
+* How Can I?:: a2ps' How-To
|
||||||
|
+* Please tell me:: Existential Questions on a2ps
|
||||||
|
@end menu
|
||||||
|
|
||||||
|
-@node Why Does ...?
|
||||||
|
-@section Why Does...?
|
||||||
|
+@node Why Does?
|
||||||
|
+@section Why Does?
|
||||||
|
|
||||||
|
Error related questions.
|
||||||
|
|
||||||
|
@@ -6426,8 +6426,8 @@ Note that the `pure' options (no side-ef
|
||||||
|
virtual pages are @samp{--columns} and @samp{--rows}.
|
||||||
|
|
||||||
|
@c -----------------------------How can I ? ------------------------------
|
||||||
|
-@node How Can I ...?
|
||||||
|
-@section How Can I ...?
|
||||||
|
+@node How Can I?
|
||||||
|
+@section How Can I?
|
||||||
|
|
||||||
|
A mini how-to on @pack{}.
|
||||||
|
|
||||||
|
@@ -6561,8 +6561,8 @@ Use @samp{a2ps --pro=ul}.
|
||||||
|
|
||||||
|
|
||||||
|
@c -------------------------- Please Tell me ? ------------------------------
|
||||||
|
-@node Please tell me...
|
||||||
|
-@section Please tell me...
|
||||||
|
+@node Please tell me
|
||||||
|
+@section Please tell me
|
||||||
|
|
||||||
|
Wondering something?
|
||||||
|
|
22
SOURCES/a2ps-U.patch
Normal file
22
SOURCES/a2ps-U.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- a2ps-4.13/contrib/pdiff.in.U 2005-05-05 12:46:05.000000000 +0100
|
||||||
|
+++ a2ps-4.13/contrib/pdiff.in 2005-05-05 12:47:34.000000000 +0100
|
||||||
|
@@ -182,7 +182,7 @@
|
||||||
|
# We need the total number of lines
|
||||||
|
lines=`wc -l $file1 $file2 | sed -n 3p`
|
||||||
|
lines=`set -- $lines && echo $1`
|
||||||
|
- $diff_prog $diff_options -$lines $file1 $file2 \
|
||||||
|
+ $diff_prog $diff_options -U$lines $file1 $file2 \
|
||||||
|
| $a2ps -gEudiff $a2ps_options || exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
--- a2ps-4.13/contrib/pdiff.m4.U 2005-05-05 12:47:54.000000000 +0100
|
||||||
|
+++ a2ps-4.13/contrib/pdiff.m4 2005-05-05 12:53:10.000000000 +0100
|
||||||
|
@@ -100,7 +100,7 @@
|
||||||
|
# We need the total number of lines
|
||||||
|
lines=`wc -l $file1 $file2 | sed -n 3p`
|
||||||
|
lines=`set -- $lines && echo $1`
|
||||||
|
- $diff_prog $diff_options -$lines $file1 $file2 \
|
||||||
|
+ $diff_prog $diff_options -U$lines $file1 $file2 \
|
||||||
|
| $a2ps -gEudiff $a2ps_options || exit 1
|
||||||
|
;;
|
||||||
|
esac
|
1629
SOURCES/a2ps-aarch64.patch
Normal file
1629
SOURCES/a2ps-aarch64.patch
Normal file
File diff suppressed because it is too large
Load diff
14
SOURCES/a2ps-bad-free.patch
Normal file
14
SOURCES/a2ps-bad-free.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
diff -up a2ps-4.14/lib/encoding.c.bad-free a2ps-4.14/lib/encoding.c
|
||||||
|
--- a2ps-4.14/lib/encoding.c.bad-free 2013-04-30 11:49:50.511962062 +0100
|
||||||
|
+++ a2ps-4.14/lib/encoding.c 2013-04-30 11:52:18.682573468 +0100
|
||||||
|
@@ -541,7 +541,9 @@ encoding_resolve_font_substitute (struct
|
||||||
|
{
|
||||||
|
/* Find if there is a substitute for that font */
|
||||||
|
res = pair_get (encoding->substitutes, font_name);
|
||||||
|
- if (!res)
|
||||||
|
+ if (res)
|
||||||
|
+ res = xstrdup (res);
|
||||||
|
+ else
|
||||||
|
/* No. Check if this font is supported */
|
||||||
|
if (font_exists (job, font_name))
|
||||||
|
/* Avoid returning sth alloca'd */
|
13
SOURCES/a2ps-external-libtool.patch
Normal file
13
SOURCES/a2ps-external-libtool.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff -up a2ps-4.14/configure.external-libtool a2ps-4.14/configure
|
||||||
|
--- a2ps-4.14/configure.external-libtool 2008-09-24 15:28:13.000000000 +0100
|
||||||
|
+++ a2ps-4.14/configure 2008-09-24 15:28:13.000000000 +0100
|
||||||
|
@@ -21864,7 +21864,8 @@ fi
|
||||||
|
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
||||||
|
|
||||||
|
# Always use our own libtool.
|
||||||
|
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
||||||
|
+#LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
||||||
|
+LIBTOOL='/usr/bin/libtool'
|
||||||
|
|
||||||
|
# Prevent multiple expansion
|
||||||
|
|
19
SOURCES/a2ps-forward-null.patch
Normal file
19
SOURCES/a2ps-forward-null.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
diff -up a2ps-4.14/lib/pathwalk.c.forward-null a2ps-4.14/lib/pathwalk.c
|
||||||
|
--- a2ps-4.14/lib/pathwalk.c.forward-null 2011-08-10 16:06:53.185942197 +0100
|
||||||
|
+++ a2ps-4.14/lib/pathwalk.c 2011-08-10 16:08:36.831030924 +0100
|
||||||
|
@@ -348,12 +348,12 @@ xpw_find_included_file (char * const *pa
|
||||||
|
/* Relative. Give its root. */
|
||||||
|
dir = dir_name (including_file);
|
||||||
|
|
||||||
|
- res = ALLOCA (char, (strlen (dir)
|
||||||
|
+ res = ALLOCA (char, ((dir ? strlen (dir) : 0)
|
||||||
|
+ strlen (name)
|
||||||
|
+ (suffix ? strlen (suffix) : 0)
|
||||||
|
+ 2));
|
||||||
|
- sprintf (res, "%s%c%s%s", dir, DIRECTORY_SEPARATOR,
|
||||||
|
- name, suffix ? suffix : "");
|
||||||
|
+ sprintf (res, "%s%c%s%s", dir ? dir : "", DIRECTORY_SEPARATOR,
|
||||||
|
+ dir ? name : name + 1, suffix ? suffix : "");
|
||||||
|
XFREE (dir);
|
||||||
|
if (stat (res, &statbuf) == 0)
|
||||||
|
return xstrdup (res);
|
12
SOURCES/a2ps-iso5-minus.patch
Normal file
12
SOURCES/a2ps-iso5-minus.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up a2ps-4.13/encoding/iso5.edf.iso5-minus a2ps-4.13/encoding/iso5.edf
|
||||||
|
--- a2ps-4.13/encoding/iso5.edf.iso5-minus 2007-09-25 17:57:32.000000000 +0100
|
||||||
|
+++ a2ps-4.13/encoding/iso5.edf 2007-09-25 17:57:55.000000000 +0100
|
||||||
|
@@ -69,7 +69,7 @@ Vector:
|
||||||
|
.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef
|
||||||
|
.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef space
|
||||||
|
exclam quotedbl numbersign dollar percent ampersand quoteright
|
||||||
|
-parenleft parenright asterisk plus comma minus period slash zero one
|
||||||
|
+parenleft parenright asterisk plus comma hyphen period slash zero one
|
||||||
|
two three four five six seven eight nine colon semicolon less equal
|
||||||
|
greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y
|
||||||
|
Z bracketleft backslash bracketright asciicircum underscore quoteleft
|
25
SOURCES/a2ps-lm.patch
Normal file
25
SOURCES/a2ps-lm.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
diff -up a2ps-4.14/lib/Makefile.am.lm a2ps-4.14/lib/Makefile.am
|
||||||
|
--- a2ps-4.14/lib/Makefile.am.lm 2007-12-29 01:38:03.000000000 +0000
|
||||||
|
+++ a2ps-4.14/lib/Makefile.am 2012-04-04 09:25:00.709845857 +0100
|
||||||
|
@@ -32,7 +32,7 @@ YFLAGS = -dtv
|
||||||
|
GPERFFLAGS = -t -D -L ANSI-C
|
||||||
|
BUILT_SOURCES = parseppd.c parseppd.h liba2ps.h confg.c
|
||||||
|
|
||||||
|
-liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@
|
||||||
|
+liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@ -lm
|
||||||
|
liba2ps_la_LDFLAGS = -version-info @LIBVERSION@
|
||||||
|
|
||||||
|
liba2psheaders = encoding.h media.h jobs.h output.h \
|
||||||
|
diff -up a2ps-4.14/lib/Makefile.in.lm a2ps-4.14/lib/Makefile.in
|
||||||
|
--- a2ps-4.14/lib/Makefile.in.lm 2012-04-04 09:25:25.091842586 +0100
|
||||||
|
+++ a2ps-4.14/lib/Makefile.in 2012-04-04 09:25:32.889841559 +0100
|
||||||
|
@@ -322,7 +322,7 @@ INCLUDES = -I$(top_builddir) -I$(top_bui
|
||||||
|
# Use a struct, handle duplicates, produce ANSI-C
|
||||||
|
GPERFFLAGS = -t -D -L ANSI-C
|
||||||
|
BUILT_SOURCES = parseppd.c parseppd.h liba2ps.h confg.c
|
||||||
|
-liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@
|
||||||
|
+liba2ps_la_LIBADD = @LTALLOCA@ @LTLIBOBJS@ -lm
|
||||||
|
liba2ps_la_LDFLAGS = -version-info @LIBVERSION@
|
||||||
|
liba2psheaders = encoding.h media.h jobs.h output.h \
|
||||||
|
routines.h psgen.h prolog.h faces.h confg.h useropt.h \
|
||||||
|
diff -up a2ps-4.14/Makefile.in.lm a2ps-4.14/Makefile.in
|
29
SOURCES/a2ps-make-fonts-map.patch
Normal file
29
SOURCES/a2ps-make-fonts-map.patch
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- a2ps-4.13/afm/make_fonts_map.sh.make-fonts-map 1999-01-20 14:28:27.000000000 +0000
|
||||||
|
+++ a2ps-4.13/afm/make_fonts_map.sh 2004-12-09 12:34:45.517150083 +0000
|
||||||
|
@@ -58,23 +58,15 @@
|
||||||
|
do
|
||||||
|
# Extract the font name.
|
||||||
|
name=`sed -n -e '/^FontName/{
|
||||||
|
-s/FontName[ ]*\([-a-zA-Z]*\).*/\1/p
|
||||||
|
+s/FontName[ ]*\([-a-zA-Z0-9]*\).*/\1/p
|
||||||
|
q
|
||||||
|
}' $file`
|
||||||
|
shortname=`basename $file | sed -e 's/\.[^\.]*$//g'`
|
||||||
|
if test x$name = x; then :; else
|
||||||
|
- # This is probably not a correct AFM file.
|
||||||
|
+ # If name was empty this is probably not a correct AFM file.
|
||||||
|
# (For instance Ogonkify's pseudo AFMs that define the encodings)
|
||||||
|
# Forget it.
|
||||||
|
- col1=`echo "$name$many_spaces" | sed -e 's/^\('$many_dots'\).*$/\1/g'`
|
||||||
|
- # Make sure the name has not been cut
|
||||||
|
- case "$col1" in
|
||||||
|
- $name*) ;;
|
||||||
|
- *) echo "A name has been cut ($name -> $col1)." 1>&2
|
||||||
|
- exit 1 ;;
|
||||||
|
- esac
|
||||||
|
- col2="$shortname"
|
||||||
|
- echo "$col1$col2" >> fonts.map.new
|
||||||
|
+ printf "%-30s %s\n" $name $shortname >> fonts.map.new
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
24
SOURCES/a2ps-mb.patch
Normal file
24
SOURCES/a2ps-mb.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
diff -up a2ps-4.14/lib/psgen.c.mb a2ps-4.14/lib/psgen.c
|
||||||
|
--- a2ps-4.14/lib/psgen.c.mb 2008-09-24 15:29:30.000000000 +0100
|
||||||
|
+++ a2ps-4.14/lib/psgen.c 2008-09-24 15:29:30.000000000 +0100
|
||||||
|
@@ -96,7 +96,8 @@ ps_escape_char (a2ps_job * job, uchar c,
|
||||||
|
/* Printable, but not 7bit clean caracters */
|
||||||
|
if (encoding_char_exists (job->encoding, job->status->face, c)
|
||||||
|
&& ((0177 < c) || (c < 040))) {
|
||||||
|
- sprintf ((char *)res, "%s\\%o", res, c);
|
||||||
|
+ char *p = res + strlen (res);
|
||||||
|
+ sprintf (p, "\\%o", c);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -893,8 +894,8 @@ ps_print_char (a2ps_job * job, int c, en
|
||||||
|
if (c > 127 && encoding_get_composite_flag (job->encoding) &&
|
||||||
|
job->status->face != Symbol) {
|
||||||
|
if (mb_flag) {
|
||||||
|
- nchars = ps_escape_char (job, mb_flag, buf) +
|
||||||
|
- ps_escape_char (job, c, buf);
|
||||||
|
+ nchars = ps_escape_char (job, mb_flag, buf);
|
||||||
|
+ nchars += ps_escape_char (job, c, buf);
|
||||||
|
job->status->wx += char_composite_WX(job, c);
|
||||||
|
job->status->column += nchars;
|
||||||
|
if (line_full) {
|
21
SOURCES/a2ps-overrun-dynamic.patch
Normal file
21
SOURCES/a2ps-overrun-dynamic.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
diff -up a2ps-4.14/lib/darray.c.overrun-dynamic a2ps-4.14/lib/darray.c
|
||||||
|
--- a2ps-4.14/lib/darray.c.overrun-dynamic 2011-08-10 16:16:49.607014904 +0100
|
||||||
|
+++ a2ps-4.14/lib/darray.c 2011-08-10 16:17:10.965625881 +0100
|
||||||
|
@@ -430,7 +430,7 @@ da_qsort (struct darray * arr)
|
||||||
|
jstack += 2;
|
||||||
|
/* Push pointers to larger subarry on stack.
|
||||||
|
* Process smaller subarrays now */
|
||||||
|
- if (jstack > QSORT_STACK)
|
||||||
|
+ if (jstack >= QSORT_STACK)
|
||||||
|
error (da_exit_error, 0, "da_qsort: QSORT_STACK too small (%d)",
|
||||||
|
QSORT_STACK);
|
||||||
|
if (ir - i + 1 >= j - l) {
|
||||||
|
@@ -509,7 +509,7 @@ da_qsort_with_arg (struct darray * arr,
|
||||||
|
jstack += 2;
|
||||||
|
/* Push pointers to larger subarry on stack.
|
||||||
|
* Process smaller subarrays now */
|
||||||
|
- if (jstack > QSORT_STACK)
|
||||||
|
+ if (jstack >= QSORT_STACK)
|
||||||
|
error (da_exit_error, 0, "da_qsort: QSORT_STACK too small (%d)",
|
||||||
|
QSORT_STACK);
|
||||||
|
if (ir - i + 1 >= j - l) {
|
12
SOURCES/a2ps-overrun-static.patch
Normal file
12
SOURCES/a2ps-overrun-static.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -up a2ps-4.14/lib/metaseq.c.overrun-static a2ps-4.14/lib/metaseq.c
|
||||||
|
--- a2ps-4.14/lib/metaseq.c.overrun-static 2011-08-10 16:18:44.924915695 +0100
|
||||||
|
+++ a2ps-4.14/lib/metaseq.c 2011-08-10 16:19:04.739555258 +0100
|
||||||
|
@@ -334,7 +334,7 @@ grow_user_string_obstack (struct obstack
|
||||||
|
{
|
||||||
|
/* `%D{}' format run date with strftime() */
|
||||||
|
for (j = 0, i += 2;
|
||||||
|
- j < sizeof (buf2) && str[i] && str[i] != '}';
|
||||||
|
+ j < sizeof (buf2) - 1 && str[i] && str[i] != '}';
|
||||||
|
i++, j++)
|
||||||
|
buf2[j] = str[i];
|
||||||
|
if (str[i] != '}')
|
15
SOURCES/a2ps-perl.patch
Normal file
15
SOURCES/a2ps-perl.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff -up a2ps-4.13/sheets/perl.ssh.perl a2ps-4.13/sheets/perl.ssh
|
||||||
|
--- a2ps-4.13/sheets/perl.ssh.perl 2007-09-26 10:30:43.000000000 +0100
|
||||||
|
+++ a2ps-4.13/sheets/perl.ssh 2007-09-26 10:47:47.000000000 +0100
|
||||||
|
@@ -106,9 +106,9 @@ operators are
|
||||||
|
(/(s|tr)/ # 1. The command: `tr' or `s'
|
||||||
|
/(([[:punct:]])/ # 2. The delimiter
|
||||||
|
/(/ # 3. The *two* regexps
|
||||||
|
- /(.|\\\\.)*/ # First regexp
|
||||||
|
+ /(\\\\.)*/ # First regexp
|
||||||
|
/\\3/ # Separator
|
||||||
|
- /(.|\\\\.)*/ # Second Regexp
|
||||||
|
+ /(\\\\.)*/ # Second Regexp
|
||||||
|
/)/ #
|
||||||
|
/\\3)/ # Closer
|
||||||
|
\1 Keyword_strong, \2 Plain),
|
49
SOURCES/a2ps-resource-leak.patch
Normal file
49
SOURCES/a2ps-resource-leak.patch
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
diff -up a2ps-4.14/lib/encoding.c.resource-leak a2ps-4.14/lib/encoding.c
|
||||||
|
--- a2ps-4.14/lib/encoding.c.resource-leak 2011-08-10 16:02:26.244905923 +0100
|
||||||
|
+++ a2ps-4.14/lib/encoding.c 2011-08-10 16:41:39.578353192 +0100
|
||||||
|
@@ -554,7 +554,7 @@ encoding_resolve_font_substitute (struct
|
||||||
|
if (!res)
|
||||||
|
{
|
||||||
|
if (encoding->default_font)
|
||||||
|
- res = encoding->default_font;
|
||||||
|
+ res = xstrdup (encoding->default_font);
|
||||||
|
else
|
||||||
|
error (1, 0, "Cannot find font %s, nor any substitute",
|
||||||
|
font_name);
|
||||||
|
@@ -976,6 +976,7 @@ dump_encoding_setup (FILE * stream,
|
||||||
|
font_names [i]);
|
||||||
|
if (!font_is_to_reencode (job, real_font_name))
|
||||||
|
da_remove_at (encoding->font_names_used, i, (da_map_func_t) free);
|
||||||
|
+ free (real_font_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The number of fonts that, finally, have to be encoded
|
||||||
|
@@ -992,10 +993,16 @@ dump_encoding_setup (FILE * stream,
|
||||||
|
fprintf (stream, "/%sdict %d dict begin\n", encoding->key,
|
||||||
|
(encoding->composite_flag == true)? nb+nb+ns:nb+ns);
|
||||||
|
for (i = 0 ; i < nb ; i++)
|
||||||
|
- fprintf (stream, " /f%s %sEncoding /%s reencode_font\n",
|
||||||
|
- font_names [i],
|
||||||
|
- encoding->name,
|
||||||
|
- encoding_resolve_font_substitute (job, encoding, font_names [i]));
|
||||||
|
+ {
|
||||||
|
+ char *real_font = encoding_resolve_font_substitute (job, encoding,
|
||||||
|
+ font_names [i]);
|
||||||
|
+ fprintf (stream, " /f%s %sEncoding /%s reencode_font\n",
|
||||||
|
+ font_names [i],
|
||||||
|
+ encoding->name,
|
||||||
|
+ real_font);
|
||||||
|
+ free (real_font);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
|
||||||
|
/* Slant font setting */
|
||||||
|
for (i = 0 ; encoding->slantfont[i].name ; i++ )
|
||||||
|
@@ -1166,6 +1173,7 @@ encoding_build_faces_wx (a2ps_job * job,
|
||||||
|
encoding->vector,
|
||||||
|
encoding->faces_wx [face]);
|
||||||
|
|
||||||
|
+ free (true_font_name);
|
||||||
|
if (encoding->composite_flag)
|
||||||
|
{
|
||||||
|
encoding->composite_raito[i] =
|
22
SOURCES/a2ps-sort.patch
Normal file
22
SOURCES/a2ps-sort.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- a2ps-4.13/i18n-fonts-0.1/make_fonts_map.sh.sort 2006-04-04 13:49:44.000000000 +0100
|
||||||
|
+++ a2ps-4.13/i18n-fonts-0.1/make_fonts_map.sh 2006-04-04 13:52:00.000000000 +0100
|
||||||
|
@@ -80,7 +80,7 @@
|
||||||
|
|
||||||
|
# Sort them by name, and keep a unique file for each font
|
||||||
|
echo "Sorting entries..." 1>&2
|
||||||
|
-sort -u -t' ' +0 -1 fonts.map.new > fonts.map.tmp
|
||||||
|
+sort -u -t' ' -k1,2 fonts.map.new > fonts.map.tmp
|
||||||
|
|
||||||
|
echo "Finishing." 1>&2
|
||||||
|
cat > fonts.map.new <<EOF
|
||||||
|
--- a2ps-4.13/afm/make_fonts_map.sh.sort 2006-04-04 13:52:32.000000000 +0100
|
||||||
|
+++ a2ps-4.13/afm/make_fonts_map.sh 2006-04-04 13:52:40.000000000 +0100
|
||||||
|
@@ -72,7 +72,7 @@
|
||||||
|
|
||||||
|
# Sort them by name, and keep a unique file for each font
|
||||||
|
echo "Sorting entries..." 1>&2
|
||||||
|
-sort -u -t' ' +0 -1 fonts.map.new > fonts.map.tmp
|
||||||
|
+sort -u -t' ' -k1,2 fonts.map.new > fonts.map.tmp
|
||||||
|
|
||||||
|
echo "Finishing." 1>&2
|
||||||
|
cat > fonts.map.new <<EOF
|
17
SOURCES/a2ps-texi-comments.patch
Normal file
17
SOURCES/a2ps-texi-comments.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- a2ps-4.14/doc/a2ps.texi.texifail 2013-03-26 12:50:06.624762058 +0000
|
||||||
|
+++ a2ps-4.14/doc/a2ps.texi 2013-03-26 14:44:10.204929702 +0000
|
||||||
|
@@ -22,12 +22,12 @@
|
||||||
|
@c `a2ps'. Avoid those quotes.
|
||||||
|
@iftex
|
||||||
|
@macro pack
|
||||||
|
-@code{@value{PACKAGE}}@c
|
||||||
|
+@code{@value{PACKAGE}}
|
||||||
|
@end macro
|
||||||
|
@end iftex
|
||||||
|
@ifnottex
|
||||||
|
@macro pack
|
||||||
|
-@value{PACKAGE}@c
|
||||||
|
+@value{PACKAGE}
|
||||||
|
@end macro
|
||||||
|
@end ifnottex
|
||||||
|
|
40
SOURCES/a2ps-wdiff.patch
Normal file
40
SOURCES/a2ps-wdiff.patch
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
--- a2ps-4.13/contrib/pdiff.m4.wdiff 2005-03-23 15:43:47.000000000 +0000
|
||||||
|
+++ a2ps-4.13/contrib/pdiff.m4 2005-03-23 15:46:13.000000000 +0000
|
||||||
|
@@ -15,7 +15,7 @@
|
||||||
|
a2ps=${A2PS:-a2ps}
|
||||||
|
a2ps_options=
|
||||||
|
debug=
|
||||||
|
-diff_on=words
|
||||||
|
+diff_on=lines
|
||||||
|
diff_prog=${DIFF:-diff}
|
||||||
|
diff_options='-u'
|
||||||
|
file=
|
||||||
|
@@ -40,8 +40,6 @@
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version display version information and exit
|
||||||
|
-q, --quiet don't print informational messages
|
||||||
|
- -l, --lines search for line differences (\`diff')
|
||||||
|
- -w, --words search for word differences (\`wdiff')
|
||||||
|
-o, --output=FILE save the output in FILE
|
||||||
|
|
||||||
|
Options for a2ps are given after \`--', for instance
|
||||||
|
--- a2ps-4.13/contrib/pdiff.in.wdiff 2005-03-23 15:43:50.000000000 +0000
|
||||||
|
+++ a2ps-4.13/contrib/pdiff.in 2005-03-23 15:46:16.000000000 +0000
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
a2ps=${A2PS:-a2ps}
|
||||||
|
a2ps_options=
|
||||||
|
debug=
|
||||||
|
-diff_on=words
|
||||||
|
+diff_on=lines
|
||||||
|
diff_prog=${DIFF:-diff}
|
||||||
|
diff_options='-u'
|
||||||
|
file=
|
||||||
|
@@ -54,8 +54,6 @@
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version display version information and exit
|
||||||
|
-q, --quiet don't print informational messages
|
||||||
|
- -l, --lines search for line differences (\`diff')
|
||||||
|
- -w, --words search for word differences (\`wdiff')
|
||||||
|
-o, --output=FILE save the output in FILE
|
||||||
|
|
||||||
|
Options for a2ps are given after \`--', for instance
|
734
SPECS/a2ps.spec
Normal file
734
SPECS/a2ps.spec
Normal file
|
@ -0,0 +1,734 @@
|
||||||
|
Summary: Converts text and other types of files to PostScript
|
||||||
|
Name: a2ps
|
||||||
|
Version: 4.14
|
||||||
|
Release: 20%{?dist}
|
||||||
|
License: GPLv3+
|
||||||
|
Group: Applications/Publishing
|
||||||
|
Source0: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
|
||||||
|
Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
|
||||||
|
Patch0: a2ps-4.13-conf.patch
|
||||||
|
Patch1: a2ps-4.13-etc.patch
|
||||||
|
Patch2: a2ps-lm.patch
|
||||||
|
Patch3: a2ps-4.13-security.patch
|
||||||
|
Patch4: a2ps-4.13-glibcpaper.patch
|
||||||
|
Patch5: a2ps-texi-comments.patch
|
||||||
|
Patch6: a2ps-aarch64.patch
|
||||||
|
Patch7: a2ps-sort.patch
|
||||||
|
Patch8: a2ps-iso5-minus.patch
|
||||||
|
Patch9: a2ps-perl.patch
|
||||||
|
# EUC-JP support
|
||||||
|
Patch10: a2ps-4.13-eucjp.patch
|
||||||
|
Patch11: a2ps-4.13-autoenc.patch
|
||||||
|
Patch12: a2ps-4.13b-attr.patch
|
||||||
|
Patch13: a2ps-4.13b-numeric.patch
|
||||||
|
Patch14: a2ps-4.13b-encoding.patch
|
||||||
|
Patch15: a2ps-4.13b-tilde.patch
|
||||||
|
Patch16: a2ps-bad-free.patch
|
||||||
|
Patch17: a2ps-4.13-euckr.patch
|
||||||
|
Patch18: a2ps-4.13-gnusource.patch
|
||||||
|
Patch20: a2ps-4.13-hebrew.patch
|
||||||
|
Patch26: a2ps-make-fonts-map.patch
|
||||||
|
Patch28: a2ps-wdiff.patch
|
||||||
|
Patch29: a2ps-U.patch
|
||||||
|
Patch31: a2ps-mb.patch
|
||||||
|
Patch34: a2ps-external-libtool.patch
|
||||||
|
Patch35: a2ps-4.14-texinfo-nodes.patch
|
||||||
|
Patch36: a2ps-forward-null.patch
|
||||||
|
Patch37: a2ps-overrun-dynamic.patch
|
||||||
|
Patch38: a2ps-overrun-static.patch
|
||||||
|
Patch39: a2ps-resource-leak.patch
|
||||||
|
Requires: fileutils sh-utils info
|
||||||
|
BuildRequires: gperf
|
||||||
|
BuildRequires: emacs, flex, libtool, texinfo, groff
|
||||||
|
BuildRequires: ImageMagick
|
||||||
|
BuildRequires: groff-perl
|
||||||
|
BuildRequires: cups
|
||||||
|
BuildRequires: gettext, bison
|
||||||
|
BuildRequires: psutils, tetex-dvips, texinfo, tetex-latex, html2ps
|
||||||
|
# instead of gv, xdg-open should certainly be used
|
||||||
|
#BuildRequires: gv
|
||||||
|
Url: http://www.gnu.org/software/a2ps/
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
Requires: psutils, ImageMagick, texinfo-tex, gzip, bzip2, groff-perl
|
||||||
|
Requires: tetex-dvips, tetex-latex, tetex-fonts, file, html2ps, psutils-perl
|
||||||
|
# for hebrew support, path set.
|
||||||
|
# culmus-fonts
|
||||||
|
# And certainly other font sets for other languages may be needed
|
||||||
|
Requires(post): coreutils
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
Obsoletes: a2ps-i18n <= 0.1-1
|
||||||
|
Provides: a2ps-i18n = 0.1-2
|
||||||
|
|
||||||
|
|
||||||
|
%package -n emacs-%{name}
|
||||||
|
Summary: Emacs bindings for a2ps files
|
||||||
|
Group: Applications/Editors
|
||||||
|
Requires: emacs(bin) >= %{_emacs_version}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n emacs-%{name}-el
|
||||||
|
Summary: Elisp source files for emacs-%{name} under GNU Emacs
|
||||||
|
Group: Applications/Editors
|
||||||
|
Requires: emacs-%{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
The a2ps filter converts text and other types of files to PostScript.
|
||||||
|
A2ps has pretty-printing capabilities and includes support for a wide
|
||||||
|
number of programming languages, encodings (ISO Latins, Cyrillic, etc.),
|
||||||
|
and medias.
|
||||||
|
|
||||||
|
|
||||||
|
%description -n emacs-%{name}
|
||||||
|
Postscript printing hook for a2ps and major mode for a2ps style sheets
|
||||||
|
for emacs.
|
||||||
|
|
||||||
|
|
||||||
|
%description -n emacs-%{name}-el
|
||||||
|
This package contains the elisp source files for emacs-%{name} under GNU
|
||||||
|
Emacs. You do not need to install this package to run emacs-%{name}. Install
|
||||||
|
the emacs-%{name} package to use emacs-%{name} with GNU Emacs.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -a 1
|
||||||
|
|
||||||
|
# use fedora postscript font paths
|
||||||
|
%patch0 -p1 -b .conf
|
||||||
|
|
||||||
|
# add /etc/a2ps in directories searched for config files
|
||||||
|
%patch1 -p1 -b .etc
|
||||||
|
|
||||||
|
# Link to libm in liba2ps (bug #809673).
|
||||||
|
%patch2 -p1 -b .lm
|
||||||
|
|
||||||
|
%patch3 -p1 -b .security
|
||||||
|
%patch4 -p1 -b .glibcpaper
|
||||||
|
|
||||||
|
# Fix texi build failure (bug #927633).
|
||||||
|
%patch5 -p1 -b .texi-comments
|
||||||
|
%patch6 -p1 -b .aarch64
|
||||||
|
|
||||||
|
%patch7 -p1 -b .sort
|
||||||
|
%patch8 -p1 -b .iso5-minus
|
||||||
|
%patch9 -p1 -b .perl
|
||||||
|
|
||||||
|
%patch10 -p1 -b .euc
|
||||||
|
%patch11 -p1 -b .ae
|
||||||
|
%patch12 -p1 -b .attr
|
||||||
|
|
||||||
|
# Use C locale's decimal point style (bug #53715).
|
||||||
|
%patch13 -p1 -b .numeric
|
||||||
|
|
||||||
|
# Use locale to determine a sensible default encoding (bug #64584).
|
||||||
|
%patch14 -p1 -b .encoding
|
||||||
|
|
||||||
|
# Fix koi8 tilde (bug #66393).
|
||||||
|
%patch15 -p1 -b .tilde
|
||||||
|
|
||||||
|
# Avoid a bad free in the encoding handling logic (bug #954104).
|
||||||
|
%patch16 -p1 -b .bad-free
|
||||||
|
|
||||||
|
# Add Korean resource file (bug #81421).
|
||||||
|
%patch17 -p1 -b .euckr
|
||||||
|
|
||||||
|
# Prevent strsignal segfaulting (bug #104970).
|
||||||
|
%patch18 -p1 -b .gnusource
|
||||||
|
|
||||||
|
# Hebrew support (bug #113191).
|
||||||
|
%patch20 -p1 -b .hebrew
|
||||||
|
|
||||||
|
# Use external libtool (bug #225235).
|
||||||
|
%patch34 -p1 -b .external-libtool
|
||||||
|
|
||||||
|
# Fix problems in make_fonts_map script (bug #142299). Patch from
|
||||||
|
# Michal Jaegermann.
|
||||||
|
%patch26 -p1 -b .make-fonts-map
|
||||||
|
|
||||||
|
# Make pdiff default to not requiring wdiff (bug #68537).
|
||||||
|
%patch28 -p1 -b .wdiff
|
||||||
|
|
||||||
|
# Make pdiff use diff(1) properly (bug #156916).
|
||||||
|
%patch29 -p1 -b .U
|
||||||
|
|
||||||
|
# Fixed multibyte handling (bug #212154).
|
||||||
|
%patch31 -p1 -b .mb
|
||||||
|
|
||||||
|
# Remove dots in node names, patch from Vitezslav Crhonek (Bug #445971)
|
||||||
|
%patch35 -p1 -b .nodes
|
||||||
|
|
||||||
|
# Coverity fix (forward-null).
|
||||||
|
%patch36 -p1 -b .forward-null
|
||||||
|
|
||||||
|
# Coverity fix (overrun-dynamic).
|
||||||
|
%patch37 -p1 -b .overrun-dynamic
|
||||||
|
|
||||||
|
# Coverity fix (overrun-static).
|
||||||
|
%patch38 -p1 -b .overrun-static
|
||||||
|
|
||||||
|
# Coverity fix (resource-leak).
|
||||||
|
%patch39 -p1 -b .resource-leak
|
||||||
|
|
||||||
|
for file in AUTHORS ChangeLog; do
|
||||||
|
iconv -f latin1 -t UTF-8 < $file > $file.utf8
|
||||||
|
touch -c -r $file $file.utf8
|
||||||
|
mv $file.utf8 $file
|
||||||
|
done
|
||||||
|
|
||||||
|
mv doc/encoding.texi doc/encoding.texi.utf8
|
||||||
|
iconv -f KOI-8 -t UTF-8 doc/encoding.texi.utf8 -o doc/encoding.texi
|
||||||
|
|
||||||
|
# Fix reference to a2ps binary (bug #112930).
|
||||||
|
sed -i -e "s,/usr/local/bin,%{_bindir}," contrib/emacs/a2ps.el
|
||||||
|
|
||||||
|
chmod -x lib/basename.c lib/xmalloc.c
|
||||||
|
|
||||||
|
# restore timestamps of patched files
|
||||||
|
touch -c -r configure.in.conf configure.in
|
||||||
|
touch -c -r config.h.in.euc config.h.in
|
||||||
|
touch -c -r configure.conf configure
|
||||||
|
touch -c -r src/Makefile.am.euc src/Makefile.am
|
||||||
|
touch -c -r etc/Makefile.am.etc etc/Makefile.am
|
||||||
|
#touch -c -r fonts/Makefile.in src/Makefile.in lib/Makefile.in
|
||||||
|
touch -c -r etc/Makefile.in.etc etc/Makefile.in
|
||||||
|
|
||||||
|
chmod 644 encoding/iso8.edf.hebrew
|
||||||
|
chmod 644 encoding/euc-kr.edf.euckr
|
||||||
|
|
||||||
|
%build
|
||||||
|
# preset the date in README.in to avoid the timestamp of the build time
|
||||||
|
sed -e "s!@date@!`date -r NEWS`!" etc/README.in > etc/README.in.tmp
|
||||||
|
touch -c -r etc/README.in etc/README.in.tmp
|
||||||
|
mv etc/README.in.tmp etc/README.in
|
||||||
|
|
||||||
|
EMACS=emacs %configure \
|
||||||
|
--with-medium=_glibc \
|
||||||
|
--enable-kanji \
|
||||||
|
--with-lispdir=%{_emacs_sitelispdir}/%{name}
|
||||||
|
|
||||||
|
# Remove prebuilt info files to force regeneration at build time
|
||||||
|
find . -name "*.info*" -exec rm -f {} \;
|
||||||
|
# force rebuilding scanners by flex - patched or not
|
||||||
|
find src lib -name '*.l' -exec touch {} \;
|
||||||
|
# these scanners use 'lineno' - incompatible with -CFe flex flags
|
||||||
|
#(
|
||||||
|
# cd src
|
||||||
|
# /bin/sh ../auxdir/ylwrap "flex" sheets-map.l lex.yy.c sheets-map.c --
|
||||||
|
# /bin/sh ../auxdir/ylwrap "flex" lexssh.l lex.yy.c lexssh.c --
|
||||||
|
# cd ../lib
|
||||||
|
# /bin/sh ../auxdir/ylwrap "flex" lexppd.l lex.yy.c lexppd.c --
|
||||||
|
#)
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make DESTDIR=%{buildroot} install INSTALL='install -p'
|
||||||
|
|
||||||
|
# reset the timestamp for the generated etc/README file
|
||||||
|
touch -r etc/README.in %{buildroot}%{_datadir}/a2ps/README
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/a2ps
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/a2ps/{afm,fonts}
|
||||||
|
pushd i18n-fonts-0.1/afm
|
||||||
|
install -p -m 0644 *.afm %{buildroot}%{_datadir}/a2ps/afm
|
||||||
|
pushd ../fonts
|
||||||
|
install -p -m 0644 *.pfb %{buildroot}%{_datadir}/a2ps/fonts
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Don't ship the library file or header (bug #203536).
|
||||||
|
rm %{buildroot}%{_libdir}/*.{so,a,la}
|
||||||
|
rm %{buildroot}%{_includedir}/*
|
||||||
|
|
||||||
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
|
|
||||||
|
%find_lang %name
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||||
|
/sbin/install-info %{_infodir}/ogonkify.info %{_infodir}/dir || :
|
||||||
|
/sbin/install-info %{_infodir}/regex.info %{_infodir}/dir || :
|
||||||
|
(cd %{_datadir}/a2ps/afm;
|
||||||
|
./make_fonts_map.sh > /dev/null 2>&1 || /bin/true
|
||||||
|
if [ -f fonts.map.new ]; then
|
||||||
|
mv fonts.map.new fonts.map
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||||
|
/sbin/install-info --delete %{_infodir}/ogonkify.info %{_infodir}/dir || :
|
||||||
|
/sbin/install-info --delete %{_infodir}/regex.info %{_infodir}/dir || :
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_sysconfdir}/a2ps
|
||||||
|
%config %{_sysconfdir}/a2ps.cfg
|
||||||
|
%config(noreplace) %{_sysconfdir}/a2ps-site.cfg
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO THANKS
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_infodir}/a2ps.info*
|
||||||
|
%{_infodir}/ogonkify.info*
|
||||||
|
%{_infodir}/regex.info*
|
||||||
|
%{_mandir}/*/*
|
||||||
|
# automatically regenerated at install and update time
|
||||||
|
%verify(not size mtime md5) %{_datadir}/a2ps/afm/fonts.map
|
||||||
|
%{_datadir}/a2ps/afm/*.afm
|
||||||
|
%{_datadir}/a2ps/afm/make_fonts_map.sh
|
||||||
|
%{_datadir}/a2ps/README
|
||||||
|
%{_datadir}/a2ps/encoding
|
||||||
|
%{_datadir}/a2ps/fonts
|
||||||
|
%{_datadir}/a2ps/ppd
|
||||||
|
%{_datadir}/a2ps/ps
|
||||||
|
%{_datadir}/a2ps/sheets
|
||||||
|
%{_datadir}/ogonkify/
|
||||||
|
%dir %{_datadir}/a2ps/afm
|
||||||
|
%dir %{_datadir}/a2ps
|
||||||
|
%{_libdir}/*.so*
|
||||||
|
|
||||||
|
%files -n emacs-%{name}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_emacs_sitelispdir}/%{name}
|
||||||
|
%{_emacs_sitelispdir}/%{name}/*.elc
|
||||||
|
|
||||||
|
%files -n emacs-%{name}-el
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_emacs_sitelispdir}/%{name}/*.el
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Apr 30 2013 Tim Waugh <twaugh@redhat.com> - 4.14-20
|
||||||
|
- Avoid a bad free in the encoding handling logic (bug #954104).
|
||||||
|
|
||||||
|
* Mon Apr 29 2013 Tim Waugh <twaugh@redhat.com> - 4.14-19
|
||||||
|
- Support for building on aarch64 (bug #924962).
|
||||||
|
|
||||||
|
* Tue Mar 26 2013 Tim Waugh <twaugh@redhat.com> - 4.14-18
|
||||||
|
- Fixed texi build failure (bug #927633).
|
||||||
|
|
||||||
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Apr 4 2012 Tim Waugh <twaugh@redhat.com> - 4.14-15
|
||||||
|
- Link to libm in liba2ps (bug #809673).
|
||||||
|
|
||||||
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 10 2011 Tim Waugh <twaugh@redhat.com> - 4.14-13
|
||||||
|
- Coverity fixes (resource-leak, overrun-static, overrun-dynamic,
|
||||||
|
forward-null).
|
||||||
|
|
||||||
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Mar 14 2010 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 4.14-11
|
||||||
|
- Spec file fixes for Emacs add-on guideline compliance
|
||||||
|
- Move *.el(c) files to their own directory
|
||||||
|
- Use Emacs packaging macros
|
||||||
|
- Remove unneeded pkgconfig macros
|
||||||
|
|
||||||
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 22 2009 Adam Jackson <ajax@redhat.com> 4.14-9
|
||||||
|
- Requires: psutils-perl for fixps
|
||||||
|
|
||||||
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.14-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 30 2009 Tim Waugh <twaugh@redhat.com> 4.14-7
|
||||||
|
- Removed trade marks to avoid potential confusion.
|
||||||
|
|
||||||
|
* Wed Sep 24 2008 Tim Waugh <twaugh@redhat.com> 4.14-6
|
||||||
|
- Removed patch fuzz.
|
||||||
|
|
||||||
|
* Thu May 29 2008 Tim Waugh <twaugh@redhat.com> 4.14-5
|
||||||
|
- Removed old patches.
|
||||||
|
|
||||||
|
* Sun May 18 2008 Patrice Dumas <pertusus@free.fr> 4.14-4
|
||||||
|
- remove dots in node names, patch from Vitezslav Crhonek (bug #445971)
|
||||||
|
|
||||||
|
* Wed May 14 2008 Patrice Dumas <pertusus@free.fr> 4.14-3
|
||||||
|
- %%{_datadir}/a2ps/afm/fonts.map is dynamically generated, mark it
|
||||||
|
as such in %%files (bug #70919)
|
||||||
|
|
||||||
|
* Sun Apr 27 2008 Patrice Dumas <pertusus@free.fr> 4.14-2
|
||||||
|
- update to 4.14
|
||||||
|
- don't obsolete the provided version of a2ps-i18n
|
||||||
|
- use html2ps for the html delegation
|
||||||
|
- BuildRequires gperf
|
||||||
|
|
||||||
|
* Tue Feb 12 2008 Patrice Dumas <pertusus@free.fr> 4.13b-71
|
||||||
|
- use a predictable stamp inside the etc/README file
|
||||||
|
- follow emacs packaging guidelines
|
||||||
|
|
||||||
|
* Tue Feb 12 2008 Tim Waugh <twaugh@redhat.com> 4.13b-70
|
||||||
|
- Separate out libs sub-package for multilib (bug #340571).
|
||||||
|
|
||||||
|
* Wed Sep 26 2007 Tim Waugh <twaugh@redhat.com> 4.13b-69
|
||||||
|
- Try out a perl stylesheet speed improvement (bug #252183).
|
||||||
|
|
||||||
|
* Tue Sep 25 2007 Tim Waugh <twaugh@redhat.com> 4.13b-68
|
||||||
|
- Make minus sign work in ISO-8859-5 (bug #252314).
|
||||||
|
|
||||||
|
* Thu Aug 23 2007 Tim Waugh <twaugh@redhat.com> 4.13b-67
|
||||||
|
- More specific license tag.
|
||||||
|
|
||||||
|
* Fri Jul 13 2007 Tim Waugh <twaugh@redhat.com> 4.13b-66
|
||||||
|
- Change build requirement from /usr/bin/emacs to emacs to fix build.
|
||||||
|
- Hebrew fix (bug #247999).
|
||||||
|
|
||||||
|
* Wed Mar 14 2007 Tim Waugh <twaugh@redhat.com> 4.13b-65
|
||||||
|
- Fix encoding of encoding.texi (bug #225235).
|
||||||
|
- Make a2ps.cfg %%config again, but not noreplace (bug #225235).
|
||||||
|
- Added post/postun ldconfig (bug #225235).
|
||||||
|
|
||||||
|
* Mon Mar 12 2007 Tim Waugh <twaugh@redhat.com> 4.13b-64
|
||||||
|
- Renamed tarball generation script (bug #225235).
|
||||||
|
|
||||||
|
* Fri Mar 9 2007 Tim Waugh <twaugh@redhat.com> 4.13b-63
|
||||||
|
- Removed bad files (bug #225235).
|
||||||
|
- Add sysconfdir/a2ps to search path (bug #225235).
|
||||||
|
- Build does not require gperf after all (bug #225235).
|
||||||
|
- Don't remove needed library (bug #225235).
|
||||||
|
|
||||||
|
* Thu Mar 8 2007 Tim Waugh <twaugh@redhat.com> 4.13b-62
|
||||||
|
- Build requires bison.
|
||||||
|
- Use sed instead of perl for string replacement (bug #225235).
|
||||||
|
- Better install-info scriptlets (bug #225235).
|
||||||
|
- Added BuildRequires and Requires for more packages (bug #225235).
|
||||||
|
- a2ps.cfg needn't be %%config (bug #225235).
|
||||||
|
- No need to gzip the info files (bug #225235).
|
||||||
|
- Use external libtool and don't run the autotools (bug #225235).
|
||||||
|
|
||||||
|
* Wed Feb 28 2007 Tim Waugh <twaugh@redhat.com> 4.13b-61
|
||||||
|
- Clean up tmpdir in pdiff (bug #214400).
|
||||||
|
- Fixed permissions on C source files (bug #225235).
|
||||||
|
- Use %%configure (bug #225235).
|
||||||
|
- Preserve timestamps (bug #225235).
|
||||||
|
- Use smp_mflags (bug #225235).
|
||||||
|
- Requires install-info for post and preun scriptlets (bug #225235).
|
||||||
|
- Avoid tabs (bug #225235).
|
||||||
|
- Explicity versioning for obsoletes/provides (bug #225235).
|
||||||
|
- PreReq->Requires(post) (bug #225235).
|
||||||
|
- Fixed macros in changelog (bug #225235).
|
||||||
|
- Fixed summary (bug #225235).
|
||||||
|
- Converted spec file to UTF-8 (bug #225235).
|
||||||
|
- Fixed build root (bug #225235).
|
||||||
|
- Remove ExcludeArch (bug #225235).
|
||||||
|
- Use buildroot macro consistently (bug #225235).
|
||||||
|
- Don't ship the library file or header (bug #203536).
|
||||||
|
|
||||||
|
* Tue Jan 23 2007 Tim Waugh <twaugh@redhat.com> 4.13b-60
|
||||||
|
- Force it to build by hacking the configure script.
|
||||||
|
- Don't need rm patch.
|
||||||
|
- Make scriptlets unconditionally succeed (bug #223674).
|
||||||
|
|
||||||
|
* Fri Oct 27 2006 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Build requires cups (bug #204119).
|
||||||
|
|
||||||
|
* Wed Oct 25 2006 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Make ogonkify build.
|
||||||
|
|
||||||
|
* Wed Oct 25 2006 Tim Waugh <twaugh@redhat.com> 4.13b-59
|
||||||
|
- Fixed multibyte handling (bug #212154).
|
||||||
|
|
||||||
|
* Tue Oct 17 2006 Tim Waugh <twaugh@redhat.com> 4.13b-58
|
||||||
|
- Fixed psset sed expression (bug #209613).
|
||||||
|
|
||||||
|
* Mon Oct 9 2006 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Build requires ImageMagick for a2ps.cfg to use convert(1).
|
||||||
|
- Build requires groff-perl for a2ps.cfg to use grog(1).
|
||||||
|
|
||||||
|
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 4.13b-57
|
||||||
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
||||||
|
|
||||||
|
* Tue Sep 26 2006 Tim Waugh <twaugh@redhat.com> 4.13b-56
|
||||||
|
- Fixed build (bug #188156).
|
||||||
|
|
||||||
|
* Fri Aug 25 2006 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Build requires groff.
|
||||||
|
|
||||||
|
* Fri Aug 25 2006 Tim Waugh <twaugh@redhat.com> 4.13b-55
|
||||||
|
- Use better manifest flags for fonts.map.
|
||||||
|
|
||||||
|
* Tue Aug 8 2006 Tim Waugh <twaugh@redhat.com> 4.13b-54
|
||||||
|
- Prevent fixps tmpdir problem (bug #188156).
|
||||||
|
|
||||||
|
* Fri Jul 14 2006 Tim Waugh <twaugh@redhat.com> 4.13b-53
|
||||||
|
- Fixed Hebrew font names (bug #174304).
|
||||||
|
|
||||||
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.13b-52
|
||||||
|
- rebuild
|
||||||
|
- exclude ppc64 as no emacs there right now.
|
||||||
|
- get rid of stupid ver and rel defines.
|
||||||
|
|
||||||
|
* Tue May 30 2006 Tim Waugh <twaugh@redhat.com> 4.13b-51
|
||||||
|
- Build requires gettext (bug #193346).
|
||||||
|
|
||||||
|
* Tue Apr 4 2006 Tim Waugh <twaugh@redhat.com> 4.13b-50
|
||||||
|
- Use sort correctly in make_font_map.sh (bug #187884).
|
||||||
|
|
||||||
|
* Wed Feb 15 2006 Tim Waugh <twaugh@redhat.com> 4.13b-49
|
||||||
|
- Use mktemp in scripts.
|
||||||
|
|
||||||
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.13b-48.3
|
||||||
|
- bump again for double-long bug on ppc(64)
|
||||||
|
|
||||||
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.13b-48.2.2
|
||||||
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
||||||
|
|
||||||
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Fri Nov 18 2005 Bill Nottingham <notting@redhat.com> 4.13b-48
|
||||||
|
- Migrate font paths from /usr/X11R6 to /usr/share/X11
|
||||||
|
|
||||||
|
* Thu May 5 2005 Tim Waugh <twaugh@redhat.com> 4.13b-47
|
||||||
|
- Make pdiff use diff(1) properly (bug #156916).
|
||||||
|
|
||||||
|
* Wed Mar 23 2005 Tim Waugh <twaugh@redhat.com> 4.13b-46
|
||||||
|
- Make pdiff default to not requiring wdiff (bug #68537).
|
||||||
|
|
||||||
|
* Wed Mar 2 2005 Tim Waugh <twaugh@redhat.com> 4.13b-45
|
||||||
|
- Rebuild for new GCC.
|
||||||
|
|
||||||
|
* Wed Feb 2 2005 Tim Waugh <twaugh@redhat.com> 4.13b-44
|
||||||
|
- Don't try to run netscape. Run mozilla instead (bug #121393).
|
||||||
|
|
||||||
|
* Thu Dec 9 2004 Tim Waugh <twaugh@redhat.com> 4.13b-43
|
||||||
|
- Fixed font path (bug #142294).
|
||||||
|
- Fixed problems in make_fonts_map script (bug #142299). Patch from
|
||||||
|
Michal Jaegermann.
|
||||||
|
|
||||||
|
* Tue Dec 7 2004 Tim Waugh <twaugh@redhat.com> 4.13b-42
|
||||||
|
- Fixed configure.in.
|
||||||
|
- Fixed m4 files.
|
||||||
|
- Apply patch from bug #122699 to fix "too many includes" error.
|
||||||
|
|
||||||
|
* Tue Oct 5 2004 Tim Waugh <twaugh@redhat.com> 4.13b-41
|
||||||
|
- Build requires texinfo (bug #134663).
|
||||||
|
|
||||||
|
* Thu Jul 29 2004 Tim Waugh <twaugh@redhat.com> 4.13b-40
|
||||||
|
- Use environment variable to pass filenames to shell (bug #128647).
|
||||||
|
|
||||||
|
* Thu Jun 24 2004 Tim Waugh <twaugh@redhat.com> 4.13b-39
|
||||||
|
- Build requires libtool (bug #125823).
|
||||||
|
|
||||||
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Mon Mar 22 2004 Tim Waugh <twaugh@redhat.com> 4.13b-37
|
||||||
|
- Build requires flex (bug #118892).
|
||||||
|
|
||||||
|
* Wed Mar 3 2004 Tim Waugh <twaugh@redhat.com> 4.13b-36
|
||||||
|
- Oops, use system C compiler.
|
||||||
|
|
||||||
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Tue Mar 2 2004 Tim Waugh <twaugh@redhat.com> 4.13b-35
|
||||||
|
- Prevent "error: conflicting types for 'malloc'".
|
||||||
|
|
||||||
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Fri Jan 16 2004 Tim Waugh <twaugh@redhat.com> 4.13b-33
|
||||||
|
- Post scriptlet requires sed, coreutils (bug #107322).
|
||||||
|
|
||||||
|
* Mon Jan 12 2004 Tim Waugh <twaugh@redhat.com> 4.13b-32
|
||||||
|
- Hebrew support (bug #113191).
|
||||||
|
|
||||||
|
* Tue Jan 6 2004 Tim Waugh <twaugh@redhat.com> 4.13b-31
|
||||||
|
- Build requires gperf.
|
||||||
|
- Fix problems in .y file spotted by stricter bison.
|
||||||
|
- Fix reference to a2ps binary (bug #112930).
|
||||||
|
|
||||||
|
* Fri Oct 17 2003 Tim Waugh <twaugh@redhat.com> 4.13b-30
|
||||||
|
- Prevent strsignal segfaulting (bug #104970).
|
||||||
|
|
||||||
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Thu Jan 9 2003 Tim Waugh <twaugh@redhat.com> 4.13b-27
|
||||||
|
- Add Korean resource file (bug #81421).
|
||||||
|
|
||||||
|
* Tue Jan 7 2003 Jeff Johnson <jbj@redhat.com> 4.13b-26
|
||||||
|
- don't include -debuginfo files in package.
|
||||||
|
|
||||||
|
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- rebuild on all arches
|
||||||
|
- remove lingering files from the buildroot that we aren't shipping
|
||||||
|
- pass %%{_libdir} and %%{_datadir} to configure so that we are lib64'ized
|
||||||
|
- fix bad perms on some files
|
||||||
|
|
||||||
|
* Mon Aug 5 2002 Tim Waugh <twaugh@redhat.com> 4.13b-24
|
||||||
|
- Prevent configure from going interactive (bug #70333).
|
||||||
|
- Try to cope with UTF-8 a little bit (bug #70057).
|
||||||
|
|
||||||
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.13b-23
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Fri Jun 21 2002 Tim Waugh <twaugh@redhat.com> 4.13b-22
|
||||||
|
- Fix koi8 tilde (bug #66393).
|
||||||
|
|
||||||
|
* Thu May 30 2002 Tim Waugh <twaugh@redhat.com> 4.13b-21
|
||||||
|
- Provide a2ps-i18n (bug #65231).
|
||||||
|
- Fix default encoding (bug #64584).
|
||||||
|
|
||||||
|
* Thu May 23 2002 Tim Powers <timp@redhat.com> 4.13b-20
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Mon Feb 25 2002 Tim Waugh <twaugh@redhat.com> 4.13b-19
|
||||||
|
- Rebuild in new environment.
|
||||||
|
|
||||||
|
* Tue Jan 22 2002 Tim Waugh <twaugh@redhat.com> 4.13b-18
|
||||||
|
- Fix a2ps-4.13-conf.patch (bug #31360).
|
||||||
|
- Add documentation about the default behaviour concerning LC_PAPER
|
||||||
|
(bug #43829).
|
||||||
|
|
||||||
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 4.13b-17
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Wed Jan 9 2002 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Fix build with newer compiler.
|
||||||
|
- s/Copyright:/License:/.
|
||||||
|
- Use C locale's decimal point style (bug #53715).
|
||||||
|
|
||||||
|
* Fri Jun 1 2001 Oliver Paukstadt <oliver.paukstadt@millenux.com>
|
||||||
|
- fixed varargs-usage in title.c
|
||||||
|
|
||||||
|
* Thu Apr 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- call libtoolize to allow easy porting to new archs
|
||||||
|
|
||||||
|
* Wed Feb 28 2001 SATO Satoru <ssato@redhat.com>
|
||||||
|
- bunzip2-ed all patches except eucjp
|
||||||
|
|
||||||
|
* Thu Feb 22 2001 SATO Satoru <ssato@redhat.com>
|
||||||
|
- support Japanese
|
||||||
|
- bzip2-ed all patches
|
||||||
|
- replace macros (%%makeinstall, %%configure) with traditional
|
||||||
|
commands to avoid some troubles those macros caused.
|
||||||
|
|
||||||
|
* Tue Feb 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
|
- Using letter is as weird as oz, fl. oz, Fahrenheit, lb etc.
|
||||||
|
Add a patch for using the glibc media type for giving US
|
||||||
|
letter for en_US (only locale with this paper), and A4
|
||||||
|
for everyone else.
|
||||||
|
|
||||||
|
* Tue Feb 20 2001 Tim Powers <timp@redhat.com>
|
||||||
|
- changed default medium back to letter (bug 27794)
|
||||||
|
|
||||||
|
* Mon Feb 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
|
- langify
|
||||||
|
- use %%{_tmppath}
|
||||||
|
|
||||||
|
* Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Fix tmpfile security patch so that it actually _works_ (bug #27155).
|
||||||
|
|
||||||
|
* Sun Jan 21 2001 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- New-style prereq line.
|
||||||
|
- %%post script requires fileutils (mv) and sh-utils (true). This
|
||||||
|
should fix bug #24251).
|
||||||
|
|
||||||
|
* Mon Jan 08 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
|
- Add /usr/bin/emacs to BuildRequires
|
||||||
|
- A4
|
||||||
|
- specify use of GNU Emacs for building
|
||||||
|
|
||||||
|
* Fri Jan 05 2001 Preston Brown <pbrown@redhat.com>
|
||||||
|
- security patch for tmpfile creation from Olaf Kirch <okir@lst.de>
|
||||||
|
|
||||||
|
* Mon Dec 11 2000 Preston Brown <pbrown@redhat.com>
|
||||||
|
- obsoleted old a2ps-i18n package (it was tiny) and included those fonts
|
||||||
|
directly here.
|
||||||
|
|
||||||
|
* Thu Dec 7 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- built for dist-7.1
|
||||||
|
|
||||||
|
* Mon Aug 07 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- update to 4.13b to fix some bugs, thanks to czar@acm.org for giving me a
|
||||||
|
heads up on this (bug #15679)
|
||||||
|
|
||||||
|
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Fri Jun 23 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- info pages weren't getting gzipped.
|
||||||
|
- stdout & stderror redirected to /dev/null in post section
|
||||||
|
|
||||||
|
* Mon Jun 19 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- fixed bug 12451 which was a stupid mistake by me.
|
||||||
|
- quiet the post section
|
||||||
|
- added patches from michal@ellpspace.math.ualberta.ca and did some spec file
|
||||||
|
magic he suggested as well.
|
||||||
|
|
||||||
|
* Fri Jun 2 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- fixed bug 5876, was not setting the paper size to Letter again :(
|
||||||
|
- man pages and info pages to /usr/share, FHS compliant.
|
||||||
|
- used macros wherever possible
|
||||||
|
|
||||||
|
* Wed May 31 2000 Tim Powers <timp@rehat.com>
|
||||||
|
- fixed bug #11078, now requires psutils
|
||||||
|
|
||||||
|
* Wed Apr 26 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- updated to 4.13
|
||||||
|
- compress man pages
|
||||||
|
|
||||||
|
* Thu Feb 10 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- gzip man pages
|
||||||
|
- strip binaries
|
||||||
|
|
||||||
|
* Mon Jan 24 2000 Tim Powers <timp@redhat.com>
|
||||||
|
- had to be more specific since the i18n stuff was removed from the package.
|
||||||
|
There is a new a2ps-i18n package which treats the
|
||||||
|
/usr/share/a2ps/afm/fonts.map file as a config file
|
||||||
|
|
||||||
|
* Wed Oct 27 1999 Tim Powers <timp@redhat.com>
|
||||||
|
- added the --with-medium=Letter option to the configure process
|
||||||
|
|
||||||
|
* Thu Aug 5 1999 Tim Powers <timp@redhat.com>
|
||||||
|
- fixed problems with missing dirs as reported in bug 3822
|
||||||
|
- built for powertools
|
||||||
|
|
||||||
|
* Tue Jul 6 1999 Tim Powers <timp@redhat.com>
|
||||||
|
- rebuilt for powertools 6.1
|
||||||
|
|
||||||
|
* Wed May 12 1999 Bill Nottingham <notting@redhat.com>
|
||||||
|
- add a2ps-site.cfg
|
||||||
|
|
||||||
|
* Mon Apr 26 1999 Preston Brown <pbrown@redhat.com>
|
||||||
|
- update to 4.12 for Powertools 6.0
|
||||||
|
|
||||||
|
* Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com>
|
||||||
|
- narrower range of %%files splats.
|
||||||
|
- install info correctly.
|
||||||
|
- new description/summary text.
|
||||||
|
|
||||||
|
* Tue Oct 06 1998 Michael Maher <mike@redhat.com>
|
||||||
|
- updated source
|
||||||
|
|
||||||
|
* Sat Jul 04 1998 Michael Maher <mike@redhat.com>
|
||||||
|
- built package
|
Loading…
Add table
Reference in a new issue