File dos2unix.spec of Package dos2unix

# spec file for package dos2unix
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           dos2unix
Summary:        Text converters to and from DOS/MAC to UNIX
License:        BSD-3-Clause
Group:          Productivity/Text/Convertors
Version:        6.0
Release:        0
Provides:       unix2dos = %{version}
Obsoletes:      unix2dos < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix
converts plain text from MAC (CR) format to UNIX format (LF).

Unix2dos converts plain text files from UNIX
format to DOS format and unix2dos converts from UNIX to MAC format.

%setup -q
find . -type f | xargs chmod -x

make %{?_smp_mflags} CC="%{__cc}" HTMLEXT="html"

%makeinstall docdir=%{_defaultdocdir}/%{name}
%{find_lang} dos2unix --all-name --with-man

%files -f dos2unix.lang
%doc %{_defaultdocdir}/%{name}
%doc %{_mandir}/*/dos2unix.1*
%doc %{_mandir}/*/mac2unix.1*
%doc %{_mandir}/*/unix2mac.1*
%doc %{_mandir}/*/unix2dos.1*
%doc %lang(nl) %dir %_mandir/nl
%doc %lang(es) %dir %_mandir/es

openSUSE Build Service is sponsored by