SHA256
1
0
forked from pool/dos2unix

- Don't generate ps/pdf documents, thus no need for ghostscript.

OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=28
This commit is contained in:
Philipp Thomas 2011-02-15 16:51:35 +00:00 committed by Git OBS Bridge
parent 3b536f4d98
commit f5c4971962
3 changed files with 23 additions and 1 deletions

15
dos2unix-no_pdf.patch Normal file
View File

@ -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)

View File

@ -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

View File

@ -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