diff --git a/dos2unix-no_pdf.patch b/dos2unix-no_pdf.patch new file mode 100644 index 0000000..d6c5950 --- /dev/null +++ b/dos2unix-no_pdf.patch @@ -0,0 +1,15 @@ +We don't need either ps nor pdf. + +Index: Makefile +=================================================================== +--- Makefile.orig 2011-02-15 17:44:49.000000000 +0100 ++++ Makefile 2011-02-15 17:47:59.872343582 +0100 +@@ -77,7 +77,7 @@ ifdef ENABLE_NLS + MOFILES = $(DOS2UNIX_MOFILES) $(UNIX2DOS_MOFILES) + endif + +-DOCFILES = $(PACKAGE).txt $(PACKAGE).ps $(PACKAGE).pdf $(PACKAGE).html ++DOCFILES = $(PACKAGE).txt $(PACKAGE).html + INSTALL_OBJS_DOC = README.txt NEWS.txt ChangeLog.txt COPYING.txt TODO.txt BUGS.txt $(DOCFILES) + + #PODFILES = man/man1/dos2unix.pod $(wildcard man/*/man1/dos2unix.pod) diff --git a/dos2unix.changes b/dos2unix.changes index 11fedc8..173bda9 100644 --- a/dos2unix.changes +++ b/dos2unix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 15 17:50:05 CET 2011 - pth@suse.de + +- Don't generate ps/pdf documents, thus no need for ghostscript. + ------------------------------------------------------------------- Thu Feb 3 18:03:40 CET 2011 - pth@suse.de diff --git a/dos2unix.spec b/dos2unix.spec index 74e4951..70f7657 100644 --- a/dos2unix.spec +++ b/dos2unix.spec @@ -18,7 +18,7 @@ Name: dos2unix -BuildRequires: xz ghostscript-library +BuildRequires: xz Summary: Text converters to and from DOS/MAC to UNIX Version: 5.2 Release: 1 @@ -27,6 +27,7 @@ License: BSD3c Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX Source: %{name}-%{version}.tar.xz Patch0: dos2unix-correct_ending.patch +Patch1: dos2unix-no_pdf.patch Provides: unix2dos = %{version} Obsoletes: unix2dos < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -41,6 +42,7 @@ format to DOS format and unix2dos converts from UNIX to MAC format. %prep %setup -q %patch0 +%patch1 find . -type f | xargs chmod -x %build