From c07cef03c886e53a14cf0256e21e84bdefe28f0e Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 10:49:02 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20psutils?= =?UTF-8?q?-1.17-10.src.rpm=20Fri=20Dec=2008=202000=20Tim=20Powers=20=20-=20built=20for=20dist-7.1=20Mon=20Jul=2024=2020?= =?UTF-8?q?00=20Prospector=20=20-=20rebuilt=20Mon?= =?UTF-8?q?=20Jul=2010=202000=20Tim=20Powers=20=20-=20reb?= =?UTF-8?q?uilt=20Mon=20Jul=2003=202000=20Prospector=20=20-=20automatic=20rebuild=20Fri=20May=2026=202000=20Tim=20Po?= =?UTF-8?q?wers=20=20-=20man=20pages=20in=20/usr/share/ma?= =?UTF-8?q?n=20(FHS=20compliant=20location)=20-=20grabbed=20spec=20from=20?= =?UTF-8?q?contrib=20-=20initial=20build=20for=20Powertools=20Wed=20May=20?= =?UTF-8?q?12=201999=20Peter=20Soos=20=20-=20Corrected=20the=20?= =?UTF-8?q?file=20and=20directory=20attributes=20to=20rebuild=20the=20pack?= =?UTF-8?q?age=20under=20=20=20=20=20RedHat=20Linux=206.0=20Fri=20Dec=2025?= =?UTF-8?q?=201998=20Peter=20Soos=20=20-=20Corrected=20the=20fi?= =?UTF-8?q?le=20and=20directory=20attributes=20Tue=20Jun=2023=201998=20Pet?= =?UTF-8?q?er=20Soos=20=20-=20Using=20%attr=20for=20ability=20t?= =?UTF-8?q?o=20rebuild=20the=20package=20as=20an=20ordinary=20user.=20Wed?= =?UTF-8?q?=20Jun=2004=201997=20Timo=20Karjalainen=20=20-=20?= =?UTF-8?q?Reverted=20back=20to=20un-gzipped=20man-pages=20(Redhat=20style?= =?UTF-8?q?)=20-=20Added=20patch=20to=20compile=20everything=20cleanly=20-?= =?UTF-8?q?=20Some=20minor=20changes=20to=20specfile=20Thu=20Mar=2027=2019?= =?UTF-8?q?97=20Tomasz=20K=B3oczko=20=20-=20ne?= =?UTF-8?q?w=20version:=20Patchlevel=2017=20had=20some=20minor=20bugfixes?= =?UTF-8?q?=20and=20improvements=20-=20Trailer=20information=20now=20put?= =?UTF-8?q?=20before=20%EOF=20comments=20if=20no=20%Trailer=20-=20psselect?= =?UTF-8?q?=20can=20now=20add=20blank=20pages.=20-=20Piped=20input=20works?= =?UTF-8?q?=20in=20Linux=20-=20spec=20file=20rewrited=20for=20using=20Buil?= =?UTF-8?q?droot,=20-=20man=20pages=20gziped.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 1 + psutils-p17-Makefile.patch | 63 +++++++++++++++++++++++++++++ psutils-p17-misc.patch | 60 +++++++++++++++++++++++++++ psutils.spec | 83 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 208 insertions(+) create mode 100644 psutils-p17-Makefile.patch create mode 100644 psutils-p17-misc.patch create mode 100644 psutils.spec diff --git a/.cvsignore b/.cvsignore index e69de29..378e6f9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +psutils-p17.tar.gz diff --git a/psutils-p17-Makefile.patch b/psutils-p17-Makefile.patch new file mode 100644 index 0000000..e11970a --- /dev/null +++ b/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.include + + 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/psutils-p17-misc.patch b/psutils-p17-misc.patch new file mode 100644 index 0000000..a7dec00 --- /dev/null +++ b/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/psutils.spec b/psutils.spec new file mode 100644 index 0000000..571d9a5 --- /dev/null +++ b/psutils.spec @@ -0,0 +1,83 @@ +Summary: PostScript Utilities +Name: psutils +Version: 1.17 +Release: 10 +Copyright: distributable +Group: Applications/Publishing +Source: ftp://ftp.dcs.ed.ac.uk/pub/ajcd/psutils-p17.tar.gz +Patch0: psutils-p17-Makefile.patch +Patch1: psutils-p17-misc.patch +BuildRoot: %{_tmppath}/psutils-root + +# Patch1 derived from +# jurix.jura.uni-sb.de/pub/linux/source/networking/printing/psutils.dif + +%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. + +%prep +%setup -q -n psutils +%patch0 -p1 +%patch1 -p1 + +%build +make -f Makefile.unix RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + +%install +rm -rf $RPM_BUILD_ROOT + +make -f Makefile.unix MANDIR=$RPM_BUILD_ROOT/usr/share/man/man1 DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644, root, root, 0755) +%doc README LICENSE +%attr(0755, root, root) /usr/bin/* +/usr/share/man/*/* +/usr/lib/psutils + +%changelog +* 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. diff --git a/sources b/sources index e69de29..fe0ee10 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b161522f3bd1507655326afa7db4a0ad psutils-p17.tar.gz