[epstool/f15] Initial import.

Jussi Lehtola jussilehtola at fedoraproject.org
Mon Jan 16 08:01:23 UTC 2012


commit 8bd574297ba2436546115c755a7bd8e3962eff6a
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Mon Jan 16 10:01:18 2012 +0200

    Initial import.

 epstool-3.08-gcc43.patch |   20 +++++++++++++++++
 epstool.spec             |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/epstool-3.08-gcc43.patch b/epstool-3.08-gcc43.patch
new file mode 100644
index 0000000..398ce08
--- /dev/null
+++ b/epstool-3.08-gcc43.patch
@@ -0,0 +1,20 @@
+--- epstool-3.08.orig/src/epstool.c	2005-06-10 04:41:00.000000000 -0500
++++ epstool-3.08/src/epstool.c	2009-02-16 20:55:43.186140029 -0600
+@@ -2824,7 +2824,7 @@
+ 		code = -1;
+ 	}
+ 	if ((code==0) && stdout_name && (hChildStdoutWr == -1)) {
+-	    handle = open(stdout_name, O_WRONLY | O_CREAT);
++	    handle = open(stdout_name, O_WRONLY | O_CREAT, 0644);
+ 	    hChildStdoutWr = dup2(handle, 1);
+ 	    if (handle != -1)
+ 		close(handle);
+@@ -2832,7 +2832,7 @@
+ 		code = -1;
+ 	}
+ 	if ((code==0) && stderr_name && (hChildStderrWr == -1)) {
+-	    handle = open(stderr_name, O_WRONLY | O_CREAT);
++	    handle = open(stderr_name, O_WRONLY | O_CREAT, 0644);
+ 	    hChildStderrWr = dup2(handle, 2);
+ 	    if (handle != -1)
+ 		close(handle);
diff --git a/epstool.spec b/epstool.spec
new file mode 100644
index 0000000..eb5aa7d
--- /dev/null
+++ b/epstool.spec
@@ -0,0 +1,54 @@
+Name:		epstool
+Version:	3.08
+Release:	2%{?dist}
+Summary:	A utility to create or extract preview images in EPS files
+Group:		Applications/Multimedia
+License:	GPLv2+
+URL:		http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm
+Source0:	http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/%{name}-%{version}.tar.gz
+# Patch to compile with gcc 4.3 and newer (taken from Gentoo)
+Patch0:		epstool-3.08-gcc43.patch
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%description
+Epstool is a utility to create or extract preview images in EPS files,
+fix bounding boxes and convert to bitmaps.
+
+Features:
+* Add EPSI, DOS EPS or Mac PICT previews.
+* Extract PostScript from DOS EPS files.
+* Uses Ghostscript to create preview bitmaps.
+* Create a TIFF, WMF, PICT or Interchange preview from part of a
+  bitmap created by Ghostscript.
+* works under Win32, Win64, OS/2 and Unix.
+* works on little-endian machines (Intel) or big endian (Sun Sparc,
+  Motorola) machines.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+# SMP build doesn't work.
+make
+
+%install
+rm -rf %{buildroot}
+install -D -p -m 755 bin/epstool %{buildroot}%{_bindir}/epstool
+install -D -p -m 644 doc/epstool.1 %{buildroot}%{_mandir}/man1/epstool.1
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENCE doc/epstool.htm doc/gsview.css
+%{_bindir}/epstool
+%{_mandir}/man1/epstool.1.*
+
+%changelog
+* Mon Jan 16 2012 Jussi Lehtola <jussilehtola at fedoraproject.org> - 3.08-2
+- Disable SMP build.
+
+* Mon Jan 09 2012 Jussi Lehtola <jussilehtola at fedoraproject.org> - 3.08-1
+- First release.
diff --git a/sources b/sources
index e69de29..d666a1a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+465a57a598dbef411f4ecbfbd7d4c8d7  epstool-3.08.tar.gz


More information about the scm-commits mailing list