From 67cda08ce52b1ef0232409b50d09c8e5ef6693ce Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 02:51:02 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20a2ps-4.?= =?UTF-8?q?13b-13.src.rpm=20Wed=20Feb=2028=202001=20SATO=20Satoru=20=20-=20bunzip2-ed=20all=20patches=20except=20eucjp?= =?UTF-8?q?=20Thu=20Feb=2022=202001=20SATO=20Satoru=20?= =?UTF-8?q?=20-=20support=20Japanese=20-=20bzip2-ed=20all=20patches=20-=20?= =?UTF-8?q?replace=20macros=20(%makeinstall,=20%configure)=20with=20tradit?= =?UTF-8?q?ional=20commands=20to=20=20=20=20=20avoid=20some=20troubles=20t?= =?UTF-8?q?hose=20macros=20caused.=20Tue=20Feb=2020=202001=20Trond=20Eivin?= =?UTF-8?q?d=20Glomsr=F8d=20=20-=20Using=20letter=20is=20a?= =?UTF-8?q?s=20weird=20as=20oz,=20fl.=20oz,=20Fahrenheit,=20lb=20etc.=20Ad?= =?UTF-8?q?d=20a=20patch=20=20=20=20=20for=20using=20the=20glibc=20media?= =?UTF-8?q?=20type=20for=20giving=20US=20letter=20for=20en=5FUS=20(only=20?= =?UTF-8?q?=20=20=20=20locale=20with=20this=20paper),=20and=20A4=20for=20e?= =?UTF-8?q?veryone=20else.=20Tue=20Feb=2020=202001=20Tim=20Powers=20=20-=20changed=20default=20medium=20back=20to=20lett?= =?UTF-8?q?er=20(bug=2027794)=20Mon=20Feb=2019=202001=20Trond=20Eivind=20G?= =?UTF-8?q?lomsr=F8d=20=20-=20langify=20-=20use=20%{=5Ftmp?= =?UTF-8?q?path}=20Mon=20Feb=2012=202001=20Tim=20Waugh=20=20-=20Fix=20tmpfile=20security=20patch=20so=20that=20it=20ac?= =?UTF-8?q?tually=20=5Fworks=5F=20(bug=20#27155).=20Sun=20Jan=2021=202001?= =?UTF-8?q?=20Tim=20Waugh=20=20-=20New-style=20prereq?= =?UTF-8?q?=20line.=20-=20%post=20script=20requires=20fileutils=20(mv)=20a?= =?UTF-8?q?nd=20sh-utils=20(true).=20This=20should=20fix=20=20=20=20=20bug?= =?UTF-8?q?=20#24251).=20Mon=20Jan=2008=202001=20Trond=20Eivind=20Glomsr?= =?UTF-8?q?=F8d=20=20-=20Add=20/usr/bin/emacs=20to=20Build?= =?UTF-8?q?Requires=20-=20A4=20-=20specify=20use=20of=20GNU=20Emacs=20for?= =?UTF-8?q?=20building=20Fri=20Jan=2005=202001=20Preston=20Brown=20=20-=20security=20patch=20for=20tmpfile=20creation?= =?UTF-8?q?=20from=20Olaf=20Kirch=20=20Mon=20Dec=2011=202000?= =?UTF-8?q?=20Preston=20Brown=20=20-=20obsoleted=20old?= =?UTF-8?q?=20a2ps-i18n=20package=20(it=20was=20tiny)=20and=20included=20t?= =?UTF-8?q?hose=20fonts=20=20=20=20=20directly=20here.=20Thu=20Dec=2007=20?= =?UTF-8?q?2000=20Tim=20Powers=20=20-=20built=20for=20dis?= =?UTF-8?q?t-7.1=20Mon=20Aug=2007=202000=20Tim=20Powers=20=20-=20update=20to=204.13b=20to=20fix=20some=20bugs,=20thanks?= =?UTF-8?q?=20to=20czar@acm.org=20for=20giving=20me=20a=20=20=20=20=20head?= =?UTF-8?q?s=20up=20on=20this=20(bug=20#15679)=20Mon=20Jul=2024=202000=20P?= =?UTF-8?q?rospector=20=20-=20rebuilt=20Mon=20Jul?= =?UTF-8?q?=2010=202000=20Tim=20Powers=20=20-=20rebuilt?= =?UTF-8?q?=20Fri=20Jun=2023=202000=20Tim=20Powers=20=20-?= =?UTF-8?q?=20info=20pages=20weren't=20getting=20gzipped.=20-=20stdout=20&?= =?UTF-8?q?=20stderror=20redirected=20to=20/dev/null=20in=20post=20section?= =?UTF-8?q?=20Mon=20Jun=2019=202000=20Tim=20Powers=20=20-?= =?UTF-8?q?=20fixed=20bug=2012451=20which=20was=20a=20stupid=20mistake=20b?= =?UTF-8?q?y=20me.=20-=20quiet=20the=20post=20section=20-=20added=20patche?= =?UTF-8?q?s=20from=20michal@ellpspace.math.ualberta.ca=20and=20did=20some?= =?UTF-8?q?=20spec=20=20=20=20=20file=20magic=20he=20suggested=20as=20well?= =?UTF-8?q?.=20Fri=20Jun=2002=202000=20Tim=20Powers=20=20?= =?UTF-8?q?-=20fixed=20bug=205876,=20was=20not=20setting=20the=20paper=20s?= =?UTF-8?q?ize=20to=20Letter=20again=20:(=20-=20man=20pages=20and=20info?= =?UTF-8?q?=20pages=20to=20/usr/share,=20FHS=20compliant.=20-=20used=20mac?= =?UTF-8?q?ros=20wherever=20possible=20Wed=20May=2031=202000=20Tim=20Power?= =?UTF-8?q?s=20=20-=20fixed=20bug=20#11078,=20now=20requir?= =?UTF-8?q?es=20psutils=20Wed=20Apr=2026=202000=20Tim=20Powers=20=20-=20updated=20to=204.13=20-=20compress=20man=20pages?= =?UTF-8?q?=20Thu=20Feb=2010=202000=20Tim=20Powers=20=20-?= =?UTF-8?q?=20gzip=20man=20pages=20-=20strip=20binaries=20Mon=20Jan=2024?= =?UTF-8?q?=202000=20Tim=20Powers=20=20-=20had=20to=20be?= =?UTF-8?q?=20more=20specific=20since=20the=20i18n=20stuff=20was=20removed?= =?UTF-8?q?=20from=20the=20=20=20=20=20package.=20There=20is=20a=20new=20a?= =?UTF-8?q?2ps-i18n=20package=20which=20treats=20the=20=20=20=20=20/usr/sh?= =?UTF-8?q?are/a2ps/afm/fonts.map=20file=20as=20a=20config=20file=20Wed=20?= =?UTF-8?q?Oct=2027=201999=20Tim=20Powers=20=20-=20added?= =?UTF-8?q?=20the=20--with-medium=3DLetter=20option=20to=20the=20configure?= =?UTF-8?q?=20process=20Thu=20Aug=2005=201999=20Tim=20Powers=20=20-=20fixed=20problems=20with=20missing=20dirs=20as=20re?= =?UTF-8?q?ported=20in=20bug=203822=20-=20built=20for=20powertools=20Tue?= =?UTF-8?q?=20Jul=2006=201999=20Tim=20Powers=20=20-=20reb?= =?UTF-8?q?uilt=20for=20powertools=206.1=20Wed=20May=2012=201999=20Bill=20?= =?UTF-8?q?Nottingham=20=20-=20add=20a2ps-site.cfg=20M?= =?UTF-8?q?on=20Apr=2026=201999=20Preston=20Brown=20=20?= =?UTF-8?q?-=20update=20to=204.12=20for=20Powertools=206.0=20Sat=20Oct=202?= =?UTF-8?q?4=201998=20Jeff=20Johnson=20=20-=20narrower=20r?= =?UTF-8?q?ange=20of=20%files=20splats.=20-=20install=20info=20correctly.?= =?UTF-8?q?=20-=20new=20description/summary=20text.=20Tue=20Oct=2006=20199?= =?UTF-8?q?8=20Michael=20Maher=20=20-=20updated=20source?= =?UTF-8?q?=20Sat=20Jul=2004=201998=20Michael=20Maher=20?= =?UTF-8?q?=20-=20built=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a2ps-4.13-autoenc.patch | 40 ++++++ a2ps-4.13-conf.patch | 18 +++ a2ps-4.13-etc.patch | 23 ++++ a2ps-4.13-flex.patch | 73 +++++++++++ a2ps-4.13-glibcpaper.patch | 57 +++++++++ a2ps-4.13-security.patch | 65 ++++++++++ a2ps.spec | 252 +++++++++++++++++++++++++++++++++++++ sources | 3 + 8 files changed, 531 insertions(+) create mode 100644 a2ps-4.13-autoenc.patch create mode 100644 a2ps-4.13-conf.patch create mode 100644 a2ps-4.13-etc.patch create mode 100644 a2ps-4.13-flex.patch create mode 100644 a2ps-4.13-glibcpaper.patch create mode 100644 a2ps-4.13-security.patch create mode 100644 a2ps.spec diff --git a/a2ps-4.13-autoenc.patch b/a2ps-4.13-autoenc.patch new file mode 100644 index 0000000..5e3e08f --- /dev/null +++ b/a2ps-4.13-autoenc.patch @@ -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 ++#include ++#include + + #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); diff --git a/a2ps-4.13-conf.patch b/a2ps-4.13-conf.patch new file mode 100644 index 0000000..7b2330b --- /dev/null +++ b/a2ps-4.13-conf.patch @@ -0,0 +1,18 @@ +--- a2ps-4.13/configure.config Wed Feb 9 09:32:31 2000 ++++ a2ps-4.13/configure Thu Apr 27 19:56:05 2000 +@@ -8433,9 +8433,13 @@ + echo "configure:8434: checking for PostScript fonts path" 1>&5 + # 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/fonts/afms/adobe \ ++ /usr/share/fonts/ISO8859-2/Type1/afm ; + do + if test "cd $ac_dir 2>/dev/null && echo *.afm"; then + ac_psfont_path="$ac_psfont_path:$ac_dir"; diff --git a/a2ps-4.13-etc.patch b/a2ps-4.13-etc.patch new file mode 100644 index 0000000..0af364c --- /dev/null +++ b/a2ps-4.13-etc.patch @@ -0,0 +1,23 @@ +--- a2ps-4.13/etc/Makefile.in.etc Wed Feb 9 09:32:55 2000 ++++ a2ps-4.13/etc/Makefile.in Thu Apr 27 22:45:03 2000 +@@ -297,7 +297,9 @@ + + # 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 +--- a2ps-4.13/etc/a2ps_cfg.in.etc Tue Feb 8 03:24:03 2000 ++++ a2ps-4.13/etc/a2ps_cfg.in Thu Apr 27 20:49:04 2000 +@@ -73,6 +73,7 @@ + # 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 --git a/a2ps-4.13-flex.patch b/a2ps-4.13-flex.patch new file mode 100644 index 0000000..26fcbf4 --- /dev/null +++ b/a2ps-4.13-flex.patch @@ -0,0 +1,73 @@ +--- a2ps-4.13/lib/Makefile.in.flex Wed Feb 9 09:33:01 2000 ++++ a2ps-4.13/lib/Makefile.in Thu Apr 27 19:00:20 2000 +@@ -100,7 +100,7 @@ + INTLDEPS = @INTLDEPS@ + INTLLIBS = @INTLLIBS@ + INTLOBJS = @INTLOBJS@ +-LEX = @LEX@ ++LEX = @LEX@ -CFe + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ + LIBTOOL = @LIBTOOL@ +--- a2ps-4.13/lib/fonts.l.flex Wed Dec 15 18:27:01 1999 ++++ a2ps-4.13/lib/fonts.l Thu Apr 27 19:00:20 2000 +@@ -178,7 +178,7 @@ + + %} + +-%option yylineno ++/* %option yylineno */ + %option prefix="afm" + %option outfile="lex.yy.c" + +@@ -524,7 +524,7 @@ + const char * filename; + FILE * stream; + +- yylineno = 0; ++ /* yylineno = 0; */ + + /* Find its AFM file: first resolve its font file name */ + filename = fonts_map_resolve_alias (job->fonts_map, font->key); +--- a2ps-4.13/src/Makefile.in.flex Wed Feb 9 09:34:18 2000 ++++ a2ps-4.13/src/Makefile.in Thu Apr 27 19:00:20 2000 +@@ -100,7 +100,7 @@ + INTLDEPS = @INTLDEPS@ + INTLLIBS = @INTLLIBS@ + INTLOBJS = @INTLOBJS@ +-LEX = @LEX@ ++LEX = @LEX@ -CFe + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ + LIBTOOL = @LIBTOOL@ +@@ -154,7 +154,7 @@ + BUILT_SOURCES = parsessh.h + + YFLAGS = -dtv +-LEX = @LEX@ ++LEX = @LEX@ -CFe + # I don't really understand why I have to put srcdir here, but + # it is needed for yacc and lex files (seems related to #line, but + # I really don't understand why)... +--- a2ps-4.13/src/lexps.l.flex Mon Feb 7 17:05:43 2000 ++++ a2ps-4.13/src/lexps.l Thu Apr 27 19:00:20 2000 +@@ -35,7 +35,7 @@ + void pslex_initialize PARAMS ((void)); + %} + +-%option yylineno ++/* %option yylineno */ + %option prefix="ps" + %option outfile="lex.yy.c" + +--- a2ps-4.13/Makefile.in.flex Wed Feb 9 09:32:25 2000 ++++ a2ps-4.13/Makefile.in Thu Apr 27 19:00:20 2000 +@@ -100,7 +100,7 @@ + INTLDEPS = @INTLDEPS@ + INTLLIBS = @INTLLIBS@ + INTLOBJS = @INTLOBJS@ +-LEX = @LEX@ ++LEX = @LEX@ -CFe + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ + LIBTOOL = @LIBTOOL@ diff --git a/a2ps-4.13-glibcpaper.patch b/a2ps-4.13-glibcpaper.patch new file mode 100644 index 0000000..fdbe196 --- /dev/null +++ b/a2ps-4.13-glibcpaper.patch @@ -0,0 +1,57 @@ +--- 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 ++#include + + #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); diff --git a/a2ps-4.13-security.patch b/a2ps-4.13-security.patch new file mode 100644 index 0000000..cff6225 --- /dev/null +++ b/a2ps-4.13-security.patch @@ -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 diff --git a/a2ps.spec b/a2ps.spec new file mode 100644 index 0000000..c343bd2 --- /dev/null +++ b/a2ps.spec @@ -0,0 +1,252 @@ +%define ver 4.13b +%define rel 13 + +Summary: Converts text and other types of files to PostScript(TM). +Name: a2ps +Version: %{ver} +Release: %{rel} +Copyright: GPL +Group: Applications/Publishing +Source: ftp://ftp.enst.fr/pub/unix/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-4.13-flex.patch +Patch3: a2ps-4.13-security.patch +Patch4: a2ps-4.13-glibcpaper.patch +# EUC-JP support +Patch10: a2ps-4.13-eucjp.patch.bz2 +Patch11: a2ps-4.13-autoenc.patch +Requires: fileutils sh-utils info +Buildrequires: /usr/bin/emacs +Url: http://www.inf.enst.fr/~demaille/a2ps/ +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: psutils +Obsoletes: a2ps-i18n + +%description +The a2ps filter converts text and other types of files to PostScript(TM). +A2ps has pretty-printing capabilities and includes support for a wide +number of programming languages, encodings (ISO Latins, Cyrillic, etc.), +and medias. + +%prep +%setup -q -n %{name}-4.13 -a 1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 -b .security +%patch4 -p1 -b .glibcpaper + +%patch10 -p1 -b .euc +%patch11 -p1 -b .ae + +%build +touch `find $PWD` +EMACS=emacs ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-medium=_glibc \ + --enable-kanji + +# 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 + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +mkdir -p %{buildroot}/usr/share/a2ps/{afm,fonts} +pushd i18n-fonts-0.1/afm +install -m 0644 *.afm %{buildroot}/usr/share/a2ps/afm +pushd ../fonts +install -m 0644 *.pfb %{buildroot}/usr/share/a2ps/fonts +popd +popd + +### FIXME ### +inst() +{ +mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/ +for f in contrib/emacs/*.el; do \ + install -m 0644 $f %{buildroot}%{_datadir}/emacs/site-lisp/ ; done +} + +gzip $RPM_BUILD_ROOT%{_infodir}/* || : + +%find_lang %name + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/install-info %{_infodir}/a2ps.info.gz %{_infodir}/dir +/sbin/install-info %{_infodir}/ogonkify.info.gz %{_infodir}/dir +/sbin/install-info %{_infodir}/regex.info.gz %{_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 +) + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/a2ps.info.gz %{_infodir}/dir + /sbin/install-info --delete %{_infodir}/ogonkify.info.gz %{_infodir}/dir + /sbin/install-info --delete %{_infodir}/regex.info.gz %{_infodir}/dir +fi + +%files -f %{name}.lang +%defattr(-,root,root) +%config (noreplace) %{_sysconfdir}/a2ps.cfg +%config(noreplace) %{_sysconfdir}/a2ps-site.cfg +%doc AUTHORS ChangeLog COPYING NEWS README TODO THANKS +%{_bindir}/* +%{_libdir}/* +%{_includedir}/* +%{_infodir}/a2ps.info* +%{_infodir}/ogonkify.info* +%{_infodir}/regex.info* +%{_mandir}/*/* +%config %{_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/ +%{_datadir}/emacs/site-lisp/* +%dir %{_datadir}/a2ps/afm +%dir %{_datadir}/a2ps + +%changelog +* Thu Feb 28 2001 SATO Satoru +- bunzip2-ed all patches except eucjp + +* Thu Feb 22 2001 SATO Satoru +- 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 +- 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 +- changed default medium back to letter (bug 27794) + +* Mon Feb 19 2001 Trond Eivind Glomsrød +- langify +- use %%{_tmppath} + +* Mon Feb 12 2001 Tim Waugh +- Fix tmpfile security patch so that it actually _works_ (bug #27155). + +* Sun Jan 21 2001 Tim Waugh +- 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 +- Add /usr/bin/emacs to BuildRequires +- A4 +- specify use of GNU Emacs for building + +* Fri Jan 05 2001 Preston Brown +- security patch for tmpfile creation from Olaf Kirch + +* Mon Dec 11 2000 Preston Brown +- obsoleted old a2ps-i18n package (it was tiny) and included those fonts + directly here. + +* Thu Dec 7 2000 Tim Powers +- built for dist-7.1 + +* Mon Aug 07 2000 Tim Powers +- 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 +- rebuilt + +* Mon Jul 10 2000 Tim Powers +- rebuilt + +* Fri Jun 23 2000 Tim Powers +- info pages weren't getting gzipped. +- stdout & stderror redirected to /dev/null in post section + +* Mon Jun 19 2000 Tim Powers +- 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 +- 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 +- fixed bug #11078, now requires psutils + +* Wed Apr 26 2000 Tim Powers +- updated to 4.13 +- compress man pages + +* Thu Feb 10 2000 Tim Powers +- gzip man pages +- strip binaries + +* Mon Jan 24 2000 Tim Powers +- 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 +- added the --with-medium=Letter option to the configure process + +* Thu Aug 5 1999 Tim Powers +- fixed problems with missing dirs as reported in bug 3822 +- built for powertools + +* Tue Jul 6 1999 Tim Powers +- rebuilt for powertools 6.1 + +* Wed May 12 1999 Bill Nottingham +- add a2ps-site.cfg + +* Mon Apr 26 1999 Preston Brown +- update to 4.12 for Powertools 6.0 + +* Sat Oct 24 1998 Jeff Johnson +- narrower range of %files splats. +- install info correctly. +- new description/summary text. + +* Tue Oct 06 1998 Michael Maher +- updated source + +* Sat Jul 04 1998 Michael Maher +- built package diff --git a/sources b/sources index e69de29..110c4d4 100644 --- a/sources +++ b/sources @@ -0,0 +1,3 @@ +8e6a684611da92c9de2a42e7803aa8f0 a2ps-4.13-eucjp.patch.bz2 +0c8e0c31b08c14f7a7198ce967eb3281 a2ps-4.13b.tar.gz +fee1456d0e6e94af4fc5b5a1bb9687b7 i18n-fonts-0.1.tar.gz