From 8f1fbbedddc86f517cd70b744bc93ba4435ccce9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 30 2019 15:27:47 +0000 Subject: import psutils-1.17-44.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ec9584 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/psutils-p17-clean.tar.gz diff --git a/.psutils.metadata b/.psutils.metadata new file mode 100644 index 0000000..500bf8a --- /dev/null +++ b/.psutils.metadata @@ -0,0 +1 @@ +48c7327d90ae01ee2160b85733941b7eebef15b6 SOURCES/psutils-p17-clean.tar.gz diff --git a/SOURCES/psutils-copyright.patch b/SOURCES/psutils-copyright.patch new file mode 100644 index 0000000..8c7e8a4 --- /dev/null +++ b/SOURCES/psutils-copyright.patch @@ -0,0 +1,51 @@ +diff -up psutils/Makefile.unix.copyright psutils/Makefile.unix +--- psutils/Makefile.unix.copyright 2010-01-26 15:06:01.000000000 +0100 ++++ psutils/Makefile.unix 2010-01-26 15:07:06.000000000 +0100 +@@ -44,12 +44,12 @@ CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O + BIN = psbook psselect pstops epsffit psnup \ + psresize + SHELLSCRIPTS = getafm showchar +-PERLSCRIPTS = fixfmps fixmacps fixpsditps fixpspps \ ++PERLSCRIPTS = fixfmps fixpsditps fixpspps \ + fixtpps fixwfwps fixwpps fixscribeps fixwwps \ + fixdlsrps extractres includeres psmerge + MANPAGES = psbook.$(MANEXT) psselect.$(MANEXT) pstops.$(MANEXT) epsffit.$(MANEXT) psnup.$(MANEXT) \ + psresize.$(MANEXT) psmerge.$(MANEXT) fixscribeps.$(MANEXT) getafm.$(MANEXT) \ +- fixdlsrps.$(MANEXT) fixfmps.$(MANEXT) fixmacps.$(MANEXT) fixpsditps.$(MANEXT) \ ++ fixdlsrps.$(MANEXT) fixfmps.$(MANEXT) fixpsditps.$(MANEXT) \ + fixpspps.$(MANEXT) fixtpps.$(MANEXT) fixwfwps.$(MANEXT) fixwpps.$(MANEXT) \ + fixwwps.$(MANEXT) extractres.$(MANEXT) includeres.$(MANEXT) + INCLUDES = md68_0.ps md71_0.ps +@@ -106,9 +106,9 @@ fixfmps: fixfmps.pl + $(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@ + $(CHMOD) $(BINMODE) $@ + +-fixmacps: fixmacps.pl +- $(PERL) maketext OS=$(OS) PERL=$(PERL) INCLUDE=$(INCLUDEDIR) $? > $@ +- $(CHMOD) $(BINMODE) $@ ++#fixmacps: fixmacps.pl ++# $(PERL) maketext OS=$(OS) PERL=$(PERL) INCLUDE=$(INCLUDEDIR) $? > $@ ++# $(CHMOD) $(BINMODE) $@ + + fixpsditps: fixpsditps.pl + $(PERL) maketext OS=$(OS) PERL=$(PERL) $? > $@ +@@ -174,8 +174,8 @@ psmerge.$(MANEXT): psmerge.man + fixfmps.$(MANEXT): fixfmps.man + $(PERL) maketext "MAN=$(MANPAGES)" $? > $@ + +-fixmacps.$(MANEXT): fixmacps.man +- $(PERL) maketext "MAN=$(MANPAGES)" INCLUDE=$(INCLUDEDIR) $? > $@ ++#fixmacps.$(MANEXT): fixmacps.man ++# $(PERL) maketext "MAN=$(MANPAGES)" INCLUDE=$(INCLUDEDIR) $? > $@ + + fixpsditps.$(MANEXT): fixpsditps.man + $(PERL) maketext "MAN=$(MANPAGES)" $? > $@ +@@ -216,7 +216,7 @@ clean: + veryclean realclean: clean + rm -f $(BIN) $(PERLSCRIPTS) $(MANPAGES) + +-install: install.bin install.script install.man install.include ++install: install.bin install.script install.man + + install.bin: $(BIN) + -mkdir $(BINDIR) diff --git a/SOURCES/psutils-datadir.patch b/SOURCES/psutils-datadir.patch new file mode 100644 index 0000000..c4d5a0e --- /dev/null +++ b/SOURCES/psutils-datadir.patch @@ -0,0 +1,12 @@ +diff -up psutils/Makefile.unix.jx psutils/Makefile.unix +--- psutils/Makefile.unix.jx 2009-07-22 15:03:58.000000000 -0400 ++++ psutils/Makefile.unix 2009-07-22 15:08:21.000000000 -0400 +@@ -31,7 +31,7 @@ OS = UNIX + + BINDIR = $(DESTDIR)/usr/bin + SCRIPTDIR = $(BINDIR) +-INCLUDEDIR = $(DESTDIR)/usr/lib/psutils ++INCLUDEDIR = $(DESTDIR)/usr/share/psutils + PERL = /usr/bin/perl + + BINMODE = 0755 diff --git a/SOURCES/psutils-manpage.patch b/SOURCES/psutils-manpage.patch new file mode 100644 index 0000000..2735870 --- /dev/null +++ b/SOURCES/psutils-manpage.patch @@ -0,0 +1,35 @@ +diff -up psutils/epsffit.c.manpage psutils/epsffit.c +--- psutils/epsffit.c.manpage 2013-03-26 14:29:40.000000000 +0100 ++++ psutils/epsffit.c 2013-03-26 14:31:09.828141988 +0100 +@@ -34,7 +34,7 @@ static void usage(void) + { + fprintf(stderr, "%s release %d patchlevel %d\n", program, RELEASE, PATCHLEVEL); + fprintf(stderr, "Copyright (C) Angus J. C. Duggan, 1991-1995. See file LICENSE for details.\n"); +- fprintf(stderr, "Usage: %s [-c] [-r] [-a] [-s] llx lly urx ury [infile [outfile]]\n", ++ fprintf(stderr, "Usage: %s [-c] [-r] [-a] [-m] [-s] llx lly urx ury [infile [outfile]]\n", + program); + exit(1); + } +diff -up psutils/psnup.man.manpage psutils/psnup.man +--- psutils/psnup.man.manpage 2013-03-26 14:29:40.000000000 +0100 ++++ psutils/psnup.man 2013-03-26 14:37:24.109882610 +0100 +@@ -32,7 +32,7 @@ psnup \- multiple pages per sheet + ] [ + .B \-s\fIscale\fR + ] [ +-.B \-\fInup\fR ++.B \-n\fIup\fR + ] [ + .B \-q + ] [ +diff -up psutils/psresize.man.manpage psutils/psresize.man +--- psutils/psresize.man.manpage 2013-03-26 14:29:40.193375608 +0100 ++++ psutils/psresize.man 2013-03-26 14:29:40.199375526 +0100 +@@ -1,6 +1,6 @@ + .TH PSRESIZE 1 "PSUtils Release @RELEASE@ Patchlevel @PATCHLEVEL@" + .SH NAME +-psresize \- multiple pages per sheet ++psresize \- rescale and centre the pages of a PostScript file + .SH SYNOPSIS + .B psresize + [ diff --git a/SOURCES/psutils-p17-Makefile.patch b/SOURCES/psutils-p17-Makefile.patch new file mode 100644 index 0000000..e49fffb --- /dev/null +++ b/SOURCES/psutils-p17-Makefile.patch @@ -0,0 +1,63 @@ +--- psutils/Makefile.unix.orig Wed Mar 12 00:52:59 1997 ++++ psutils/Makefile.unix Wed Jun 4 10:54:59 1997 +@@ -25,10 +25,10 @@ + + OS = UNIX + +-BINDIR = /usr/local/bin ++BINDIR = $(DESTDIR)/usr/bin + SCRIPTDIR = $(BINDIR) +-INCLUDEDIR = /usr/local/share/psutils +-PERL = /usr/local/bin/perl ++INCLUDEDIR = $(DESTDIR)/usr/lib/psutils ++PERL = /usr/bin/perl + + BINMODE = 0755 + MANMODE = 0644 +@@ -36,10 +36,10 @@ + INSTALL = install -c -m $(BINMODE) + INSTALLMAN = install -c -m $(MANMODE) + MANEXT = 1 +-MANDIR = /usr/local/share/man/man$(MANEXT) ++MANDIR = $(DESTDIR)/usr/man/man$(MANEXT) + + CC = gcc +-CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall ++CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX $(RPM_OPT_FLAGS) -Wall + + BIN = psbook psselect pstops epsffit psnup \ + psresize +@@ -219,28 +219,28 @@ + install: install.bin install.script install.man + + install.bin: $(BIN) +- -mkdir $(BINDIR) ++ -mkdir -p $(BINDIR) + @for i in $(BIN); do \ + echo Installing $$i; \ +- $(INSTALL) $$i $(BINDIR); \ ++ $(INSTALL) $$i -s $(BINDIR); \ + done + + install.script: $(PERLSCRIPTS) $(SHELLSCRIPTS) +- -mkdir $(SCRIPTDIR) ++ -mkdir -p $(SCRIPTDIR) + @for i in $(PERLSCRIPTS) $(SHELLSCRIPTS); do \ + echo Installing $$i; \ + $(INSTALL) $$i $(SCRIPTDIR); \ + done + + install.include: $(INCLUDES) +- -mkdir $(INCLUDEDIR) ++ -mkdir -p $(INCLUDEDIR) + @for i in $(INCLUDES); do \ + echo Installing $$i; \ + $(INSTALLMAN) $$i $(INCLUDEDIR); \ + done + + install.man: $(MANPAGES) +- -mkdir $(MANDIR) ++ -mkdir -p $(MANDIR) + @for i in $(MANPAGES); do \ + echo Installing manual page for $$i; \ + $(INSTALLMAN) $$i $(MANDIR)/$$i; \ diff --git a/SOURCES/psutils-p17-misc.patch b/SOURCES/psutils-p17-misc.patch new file mode 100644 index 0000000..a7dec00 --- /dev/null +++ b/SOURCES/psutils-p17-misc.patch @@ -0,0 +1,60 @@ +--- psutils/epsffit.c.orig Wed Mar 12 00:52:52 1997 ++++ psutils/epsffit.c Wed Jun 4 11:02:36 1997 +@@ -42,12 +42,12 @@ + void main(int argc, char **argv) + { + int bbfound = 0; /* %%BoundingBox: found */ +- int urx, ury, llx, lly; ++ int urx = 0, ury = 0, llx = 0, lly = 0; + int furx, fury, fllx, flly; + int showpage = 0, centre = 0, rotate = 0, aspect = 0, maximise = 0; + char buf[BUFSIZ]; +- FILE *input; +- FILE *output; ++ FILE *input = stdin; ++ FILE *output = stdout; + + program = *argv++; argc--; + +@@ -163,9 +163,14 @@ + yoffset -= lly * yscale; + } + fputs("%%EndComments\n", output); +- if (showpage) +- fputs("save /showpage{}def /copypage{}def /erasepage{}def\n", output); +- else ++ if (showpage) { ++ fputs("/startEpsffit {\n", output); ++ fputs(" /EpsffitSave {save} def\n", output); ++ fputs(" userdict 200 dict begin\n", output); ++ fputs(" /showpage{}def /copypage{}def /erasepage{}def\n", output); ++ fputs("}def\n", output); ++ fputs("startEpsffit\n", output); ++ } else + fputs("%%BeginProcSet: epsffit 1 0\n", output); + fputs("gsave\n", output); + fprintf(output, "%.3f %.3f translate\n", xoffset, yoffset); +@@ -181,7 +186,7 @@ + if (bbfound) { + fputs("grestore\n", output); + if (showpage) +- fputs("restore showpage\n", output); /* just in case */ ++ fputs("end EpsffitSave restore showpage\n", output); /* just in case */ + } else + message(FATAL, "no %%%%BoundingBox:\n"); + +--- psutils/psnup.c.orig Wed Mar 12 00:53:02 1997 ++++ psutils/psnup.c Wed Jun 4 11:02:36 1997 +@@ -68,10 +68,10 @@ + + void main(int argc, char *argv[]) + { +- int horiz, vert, rotate, column, flip, leftright, topbottom; ++ int horiz = 0, vert = 0, rotate = 0, column, flip, leftright, topbottom; + int nup = 1; + double draw = 0; /* draw page borders */ +- double scale; /* page scale */ ++ double scale = 0; /* page scale */ + double uscale = 0; /* user supplied scale */ + double ppwid, pphgt; /* paper dimensions */ + double margin, border; /* paper & page margins */ diff --git a/SOURCES/psutils-p17-paper.patch b/SOURCES/psutils-p17-paper.patch new file mode 100644 index 0000000..6e47a31 --- /dev/null +++ b/SOURCES/psutils-p17-paper.patch @@ -0,0 +1,202 @@ +--- psutils/pstops.man.paper Tue Mar 11 23:53:04 1997 ++++ psutils/pstops.man Thu Jul 19 15:21:51 2001 +@@ -108,10 +108,11 @@ + The + .I \-p + option can be used as an alternative, to set the paper size to +-.B a3, a4, a5, b5, letter, legal, tabloid, statement, executive, folio, quarto ++.B a3, a4, a5, b5, letter, legal, tabloid, statement, executive, folio, quarto, 10x14 + or +-.B 10x14. +-The default paper size is ++.B _glibc, ++where latter one means the format of the current locale. The default ++paper size is + .B @PAPER@. + .PP + The +@@ -154,6 +155,12 @@ + 4:1L@.7(21cm,0)+-2L@.7(21cm,14.85cm) + .sp + for the reverse sides (or join them with a comma for duplex printing). ++.SH "ENVIRONMENT VARIABLES" ++.TP ++.B LC_ALL, LC_PAPER ++These variables are specifying the papertype when used paper is ++.B _glibc. ++For details see the locale(7) manpage. + .SH AUTHOR + Copyright (C) Angus J. C. Duggan 1991-1995 + .SH "SEE ALSO" +--- psutils/psutil.c.paper Tue Mar 11 23:53:04 1997 ++++ psutils/psutil.c Thu Jul 19 15:21:51 2001 +@@ -21,6 +21,11 @@ + #include + #include + ++#ifdef HAVE_LANGINFO_H ++# include ++# include ++#endif ++ + #define iscomment(x,y) (strncmp(x,y,strlen(y)) == 0) + + extern char *program ; +@@ -31,6 +36,16 @@ + extern char pagelabel[BUFSIZ]; + extern int pageno; + ++#ifdef HAVE_LANGINFO_H ++/* When using papertype _glibc we are comparing floating point values. Therefore ++ * and because values in the papersize table are not exactly we are needing an ++ * epsilon value. */ ++static float PT_EPSILON = 2.0; ++ ++/* The factor needed to convert lengths given in mm to length in pt.*/ ++static float MM_TO_PT_FACTOR = 72/25.4; ++#endif /* HAVE_LANGINFO_H */ ++ + static char buffer[BUFSIZ]; + static long bytes = 0; + static long pagescmt = 0; +@@ -64,16 +79,52 @@ + { NULL, 0, 0 } + }; + ++#ifdef HAVE_LANGINFO_H ++/* Called if papertype is '_glibc'. It uses the current locale to determine the ++ * height and width of the current LC_PAPER and compares it with the items of ++ * the 'papersizes' list. */ ++Paper* findpaperglibc() ++{ ++ float height, width; ++ char *old_locale = setlocale (LC_PAPER, ""); ++ Paper *result = 0, *pp; ++ ++ height = MM_TO_PT_FACTOR * (unsigned int)(nl_langinfo(_NL_PAPER_HEIGHT)); ++ width = MM_TO_PT_FACTOR * (unsigned int)(nl_langinfo(_NL_PAPER_WIDTH)); ++ ++ for (pp = papersizes; PaperName(pp) && result==0; pp++) { ++ if ( abs(PaperWidth(pp)-width) header ++# or does not know nl_langinfo() ++LANGINFO_FLAG = -DHAVE_LANGINFO_H + + # Makefile for PSUtils under Unix + +@@ -39,7 +43,7 @@ + MANDIR = $(DESTDIR)/usr/man/man$(MANEXT) + + CC = gcc +-CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX $(RPM_OPT_FLAGS) -Wall ++CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX $(RPM_OPT_FLAGS) $(LANGINFO_FLAG) -Wall + + BIN = psbook psselect pstops epsffit psnup \ + psresize diff --git a/SOURCES/psutils-p17-strip.patch b/SOURCES/psutils-p17-strip.patch new file mode 100644 index 0000000..67b3af1 --- /dev/null +++ b/SOURCES/psutils-p17-strip.patch @@ -0,0 +1,11 @@ +--- psutils/Makefile.unix.orig 2002-06-20 12:41:54.000000000 +0200 ++++ psutils/Makefile.unix 2002-06-20 12:41:41.000000000 +0200 +@@ -226,7 +226,7 @@ + -mkdir -p $(BINDIR) + @for i in $(BIN); do \ + echo Installing $$i; \ +- $(INSTALL) $$i -s $(BINDIR); \ ++ $(INSTALL) $$i $(BINDIR); \ + done + + install.script: $(PERLSCRIPTS) $(SHELLSCRIPTS) diff --git a/SOURCES/psutils-psmerge.patch b/SOURCES/psutils-psmerge.patch new file mode 100644 index 0000000..8039654 --- /dev/null +++ b/SOURCES/psutils-psmerge.patch @@ -0,0 +1,153 @@ +--- psutils/psmerge.pl.new 2006-06-12 09:53:37.000000000 +0200 ++++ psutils/psmerge.pl 2006-06-12 09:53:47.000000000 +0200 +@@ -1,11 +1,19 @@ +-@PERL@ ++#!/usr/bin/perl ++eval 'exec perl -S $0 "$@"' ++ if (1 == 0); ++ + # psmerge: merge PostScript files produced by same application and setup +-# usage: psmerge [-oout.ps] [-thorough] file1.ps file2.ps ... ++# usage: psmerge [-oout.ps] file1.ps file2.ps ... + # + # Copyright (C) Angus J. C. Duggan 1991-1995 + # See file LICENSE for details. ++# ++# Unbroken (or, broken in a different way that at least sometimes ++# works) by Peter Williams 2003 ++ + +-$prog = ($0 =~ s=.*/==); ++$prog = $0; ++$prog =~ s=.*/==; + + while ($ARGV[0] =~ /^-/) { + $_ = shift; +@@ -14,72 +22,75 @@ + print STDERR "$prog: can't open $1 for output\n"; + exit 1; + } +- } elsif (/^-t(horough)?$/) { +- $thorough = 1; + } else { +- print STDERR "Usage: $prog [-oout] [-thorough] file...\n"; ++ print STDERR "Usage: $prog [-oout] file1 file2...\n"; + exit 1; + } + } + + $page = 0; + $first = 1; ++$seenpages = 0; + $nesting = 0; + +-@header = (); +-$header = 1; +- + @trailer = (); +-$trailer = 0; +- +-@pages = (); +-@body = (); +- +-@resources = (); +-$inresource = 0; ++$trailermode = 0; + + while (<>) { +- if (/^%%BeginFont:/ || /^%%BeginResource:/ || /^%%BeginProcSet:/) { +- $inresource = 1; +- push(@resources, $_); +- } elsif ($inresource) { +- push(@resources, $_); +- $inresource = 0 if /^%%EndFont/ || /^%%EndResource/ || /^%%EndProcSet/; +- } elsif (/^%%Page:/ && $nesting == 0) { +- $header = $trailer = 0; +- push(@pages, join("", @body)) if @body; +- $page++; +- @body = ("%%Page: ($page) $page\n"); +- } elsif (/^%%Trailer/ && $nesting == 0) { +- push(@trailer, $_); +- push(@pages, join("", @body)) if @body; +- @body = (); +- $trailer = 1; +- $header = 0; +- } elsif ($header) { +- push(@trailer, $_); +- push(@pages, join("", @body)) if @body; +- @body = (); +- $trailer = 1; +- $header = 0; +- } elsif ($trailer) { +- if (/^%!/ || /%%EOF/) { +- $trailer = $first = 0; +- } elsif ($first) { +- push(@trailer, $_); +- } +- } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/) { +- push(@body, $_); +- $nesting++; +- } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { +- push(@body, $_); +- $nesting--; +- } else { +- print $_ if $print; +- } ++ if ($seenpages == 0) { ++ if (/^%%Page:/) { ++ if ($nesting == 0) { ++ $seenpages = 1; ++ $page++; ++ print "%%Page: ($page) $page\n"; ++ } else { ++ print $_; ++ } ++ } elsif ($first) { ++ if (/^%%Pages: /) { ++ print "%%Pages: (atend)\n"; ++ } else { ++ print $_; ++ } ++ } ++ } elsif ($trailermode) { ++ if (/^%!/ || /%%EOF/) { ++ $seenpages = 0; ++ $first = 0; ++ $trailermode = 0; ++ } elsif ($first) { ++ push (@trailer, $_) ++ unless (/^%%Pages/); ++ } ++ } else { ++ if (/^%%Page:/) { ++ if ($nesting == 0) { ++ $seenpages = 1; ++ $page++; ++ print "%%Page: ($page) $page\n"; ++ } else { ++ print $_; ++ } ++ } elsif (/^%%Trailer/ && $nesting == 0) { ++ $trailermode = 1; ++ } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/) { ++ push(@body, $_); ++ $nesting++; ++ print $_; ++ } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { ++ push(@body, $_); ++ $nesting--; ++ print $_; ++ } else { ++ print $_; ++ } ++ } + } + ++print "%%Trailer\n"; + print @trailer; ++print "%%Pages: $page\n"; ++print "%%EOF\n"; + + exit 0; +-@END@ ++ diff --git a/SOURCES/psutils-remove-copyrighted-files b/SOURCES/psutils-remove-copyrighted-files new file mode 100644 index 0000000..577d13f --- /dev/null +++ b/SOURCES/psutils-remove-copyrighted-files @@ -0,0 +1,9 @@ +#!/bin/bash +archive_name=psutils-p17.tar.gz +tar xzf psutils-p17.tar.gz +rm psutils/fixmacps* +rm psutils/md68_0.ps +rm psutils/md71_0.ps +patch -p0 < psutils-copyright.patch +tar czf psutils-p17-clean.tar.gz psutils/ +rm -r psutils/ diff --git a/SPECS/psutils.spec b/SPECS/psutils.spec new file mode 100644 index 0000000..09eac94 --- /dev/null +++ b/SPECS/psutils.spec @@ -0,0 +1,265 @@ +Summary: PostScript Utilities +Name: psutils +Version: 1.17 +Release: 44%{?dist} +License: psutils +Group: Applications/Publishing +# We cannot use the upstream tarball because it contains non-free files. +# To generate a clean tarball, run the psutils-remove-copyrighted-files script. +#Source: ftp://ftp.knackered.org/pub/psutils/psutils-p17.tar.gz +Source0: psutils-p17-clean.tar.gz +Source1: psutils-remove-copyrighted-files +Source2: psutils-copyright.patch +URL: http://knackered.org/angus/psutils/ +Patch0: psutils-p17-Makefile.patch +Patch1: psutils-p17-misc.patch +Patch2: psutils-p17-paper.patch +Patch3: psutils-p17-strip.patch +Patch4: psutils-manpage.patch +Patch5: psutils-psmerge.patch +Patch6: psutils-datadir.patch + +%description +This archive contains some utilities for manipulating PostScript documents. +Page selection and rearrangement are supported, including arrangement into +signatures for booklet printing, and page merging for n-up printing. + +%package perl +Summary: psutils scripts requiring perl +Group: Applications/Publishing +BuildArch: noarch + +%description perl +Various scripts from the psutils distribution that require perl. + +%prep +%setup -q -n psutils +%patch0 -p1 -b .makefile +%patch1 -p1 -b .misc +%patch2 -p1 -b .paper +%patch3 -p1 -b .strip +%patch4 -p1 -b .manpage +%patch5 -p1 -b .new +%patch6 -p1 -b .datadir + +%build +make -f Makefile.unix RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + +%install +make -f Makefile.unix \ + MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \ + DESTDIR=$RPM_BUILD_ROOT install + +%files +%doc README LICENSE +%{_bindir}/epsffit +%{_bindir}/getafm +%{_bindir}/psbook +%{_bindir}/psnup +%{_bindir}/psresize +%{_bindir}/psselect +%{_bindir}/pstops +%{_bindir}/showchar +%{_mandir}/man1/epsffit.1* +%{_mandir}/man1/getafm.1* +%{_mandir}/man1/psbook.1* +%{_mandir}/man1/psnup.1* +%{_mandir}/man1/psresize.1* +%{_mandir}/man1/psselect.1* +%{_mandir}/man1/pstops.1* +#{_mandir}/man1/showchar.1* + +%files perl +%doc LICENSE +%{_bindir}/extractres +%{_bindir}/fixdlsrps +%{_bindir}/fixfmps +#%%{_bindir}/fixmacps +%{_bindir}/fixpsditps +%{_bindir}/fixpspps +%{_bindir}/fixscribeps +%{_bindir}/fixtpps +%{_bindir}/fixwfwps +%{_bindir}/fixwpps +%{_bindir}/fixwwps +%{_bindir}/includeres +%{_bindir}/psmerge +#%%{_datadir}/psutils +%{_mandir}/man1/extractres.1* +%{_mandir}/man1/fixdlsrps.1* +%{_mandir}/man1/fixfmps.1* +#%%{_mandir}/man1/fixmacps.1* +%{_mandir}/man1/fixpsditps.1* +%{_mandir}/man1/fixpspps.1* +%{_mandir}/man1/fixscribeps.1* +%{_mandir}/man1/fixtpps.1* +%{_mandir}/man1/fixwfwps.1* +%{_mandir}/man1/fixwpps.1* +%{_mandir}/man1/fixwwps.1* +%{_mandir}/man1/includeres.1* +%{_mandir}/man1/psmerge.1* + + +%changelog +* Fri Jan 24 2014 Daniel Mach - 1.17-44 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.17-43 +- Mass rebuild 2013-12-27 + +* Tue Mar 26 2013 Jiri Popelka - 1.17-42 +- few usage/man page fixes + +* Thu Feb 14 2013 Fedora Release Engineering - 1.17-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Nov 29 2012 Jiri Popelka - 1.17-40 +- fix dist tag and URL +- put psutils-copyright.patch among sources as it's used only in + psutils-remove-copyrighted-files +- no need to define BuildRoot and clean it in %%clean and %%install anymore +- %%defattr no longer needed in %%files + +* Sat Jul 21 2012 Fedora Release Engineering - 1.17-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.17-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.17-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Jul 08 2010 Tomas Smetana 1.17-36 +- add the LICENSE file to the perl subpackage + +* Thu Apr 22 2010 Daniel Novotny 1.17-35 +- renamed "clean" tarball to psutils-p17-clean.tar.gz + (merge review: #226324) + +* Tue Jan 26 2010 Daniel Novotny 1.17-34 +- remove Apple copyrighted files (merge review: #226324) +- fixed URLs to upstream + +* Mon Aug 10 2009 Ville Skyttä - 1.17-33 +- Convert specfile to UTF-8. + +* Sun Jul 26 2009 Fedora Release Engineering - 1.17-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 22 2009 Adam Jackson 1.17-31 +- Split perl scripts to a subpackage. + +* Thu Feb 26 2009 Fedora Release Engineering - 1.17-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Aug 29 2008 Tom "spot" Callaway - 1.17-29 +- fix license tag + +* Wed Feb 13 2008 Tomas Smetana - 1.17-28 +- rebuild (gcc-4.3) + +* Tue Sep 18 2007 Martin Bacovsky - 1.17-27 +- fixed Source url pointing to non-existing site + +* Wed Jul 12 2006 Jesse Keating - 1.17-26.1 +- rebuild + +* Mon Jun 12 2006 Jitka Kudrnacova - 1.17-26 +- new implementation of psmerge by Peter Williams + +* Fri Feb 10 2006 Jesse Keating - 1.17-25.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 1.17-25.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Mar 16 2005 Tim Waugh 1.17-25 +- Rebuild for new GCC. + +* Mon Jan 10 2005 Tim Waugh 1.17-24 +- Manpage correction for psresize (bug #144582). + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jun 17 2003 Tim Waugh 1.17-21 +- Rebuilt. + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Dec 11 2002 Tim Powers 1.17-18 +- rebuild on all arches + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu Jun 20 2002 Than Ngo 1.17-16 +- Don't forcibly strip binaries + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Thu Jul 19 2001 Than Ngo 1.17-13 +- add patch from enrico.scholz@informatik.tu-chemnitz.de + +* Fri Jul 13 2001 Than Ngo 1.17-12 +- media size as letter (Bug #48831) +- Copyright->License +- don't hardcode manpath + +* Sun Jun 24 2001 Elliot Lee +- Bump release + rebuild. + +* Fri Dec 8 2000 Tim Powers +- built for dist-7.1 + +* Mon Jul 24 2000 Prospector +- rebuilt + +* Mon Jul 10 2000 Tim Powers +- rebuilt + +* Mon Jul 03 2000 Prospector +- automatic rebuild + +* Fri May 26 2000 Tim Powers +- man pages in /usr/share/man (FHS compliant location) +- grabbed spec from contrib +- initial build for Powertools + +* Wed May 12 1999 Peter Soos +- Corrected the file and directory attributes to rebuild the package + under RedHat Linux 6.0 + +* Fri Dec 25 1998 Peter Soos +- Corrected the file and directory attributes + +* Tue Jun 23 1998 Peter Soos +- Using %%attr for ability to rebuild the package as an ordinary user. + +* Wed Jun 04 1997 Timo Karjalainen +- Reverted back to un-gzipped man-pages (Redhat style) +- Added patch to compile everything cleanly +- Some minor changes to specfile + +* Thu Mar 27 1997 Tomasz Kłoczko + - new version: + Patchlevel 17 had some minor bugfixes and improvements + - Trailer information now put before %%EOF comments if no %%Trailer + - psselect can now add blank pages. + - Piped input works in Linux + - spec file rewrited for using Buildroot, + - man pages gziped.