2007-01-16 00:10:31 +01:00
|
|
|
#
|
2011-01-15 02:26:59 +01:00
|
|
|
# spec file for package dos2unix
|
2007-01-16 00:10:31 +01:00
|
|
|
#
|
2011-01-15 02:26:59 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:31 +01:00
|
|
|
#
|
2008-09-15 14:05:45 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:10:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-09-15 14:05:45 +02:00
|
|
|
|
2007-01-16 00:10:31 +01:00
|
|
|
Name: dos2unix
|
2010-04-06 18:13:22 +02:00
|
|
|
Summary: Text converters to and from DOS/MAC to UNIX
|
2011-05-21 19:40:54 +02:00
|
|
|
Version: 5.3
|
2011-05-26 10:16:38 +02:00
|
|
|
Release: 3
|
2007-01-16 00:10:31 +01:00
|
|
|
Group: Productivity/Text/Convertors
|
2009-12-18 12:50:51 +01:00
|
|
|
License: BSD3c
|
2011-05-23 11:57:29 +02:00
|
|
|
Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX
|
2011-05-23 13:33:41 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
- Update to 5.2:
ISO conversion mode supports same DOS code pages as SunOS dos2unix does:
CP437 (US), CP850 (Western European), CP860 (Portuguese),
CP863 (French Canadian), and CP865 (Nordic).
ISO conversion mode supports Windows code page CP1252 (Western).
SunOS compatible options -ascii, -iso, -7, -437, -850, -860, -863, and -865.
Active code page detection for ISO mode.
Fixed ISO conversion of non-breaking space (NBSP).
Treat ASCII Form Feed control characters as valid text.
Update manual pages.
Don't include generated documentation files in Unix source package.
- Suffix for HTML pages is .html not .htm
OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=27
2011-02-03 18:56:34 +01:00
|
|
|
Patch0: dos2unix-correct_ending.patch
|
2011-05-21 21:09:38 +02:00
|
|
|
Patch1: dos2unix-cloexec.patch
|
2010-04-06 18:13:22 +02:00
|
|
|
Provides: unix2dos = %{version}
|
|
|
|
Obsoletes: unix2dos < %{version}
|
2007-01-16 00:10:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-05-25 09:05:03 +02:00
|
|
|
BuildRequires: xz
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%description
|
2010-04-06 18:13:22 +02:00
|
|
|
Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix
|
|
|
|
converts plain text from MAC (CR) format to UNIX format (LF).
|
2010-02-17 17:59:25 +01:00
|
|
|
|
2010-04-06 18:13:22 +02:00
|
|
|
Unix2dos converts plain text files from UNIX
|
|
|
|
format to DOS format and unix2dos converts from UNIX to MAC format.
|
2010-02-17 17:59:25 +01:00
|
|
|
|
2007-01-16 00:10:31 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-05-21 19:40:54 +02:00
|
|
|
%patch0 -p1
|
2011-05-21 21:09:38 +02:00
|
|
|
%patch1
|
2010-04-07 13:23:02 +02:00
|
|
|
find . -type f | xargs chmod -x
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%build
|
2009-12-18 12:50:51 +01:00
|
|
|
export RPM_OPT_FLAGS
|
2010-11-01 09:34:47 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%install
|
2010-04-06 18:13:22 +02:00
|
|
|
%makeinstall docdir=%{_defaultdocdir}/%{name}
|
|
|
|
%{find_lang} dos2unix --all-name --with-man
|
2007-01-16 00:10:31 +01:00
|
|
|
|
2010-04-06 18:13:22 +02:00
|
|
|
%files -f dos2unix.lang
|
2007-01-16 00:10:31 +01:00
|
|
|
%defattr(-,root,root,0755)
|
2009-12-18 12:50:51 +01:00
|
|
|
%doc %{_defaultdocdir}/%{name}
|
2007-01-16 00:10:31 +01:00
|
|
|
%{_bindir}/dos2unix
|
|
|
|
%{_bindir}/mac2unix
|
2010-04-06 18:13:22 +02:00
|
|
|
%{_bindir}/unix2mac
|
|
|
|
%{_bindir}/unix2dos
|
2007-01-16 00:10:31 +01:00
|
|
|
%{_mandir}/*/*
|
2010-11-10 14:10:47 +01:00
|
|
|
%dir %_mandir/nl
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-09-15 14:05:45 +02:00
|
|
|
%changelog
|