dos2unix/dos2unix.spec
Erwin Waterlander a092341f3f - Fixed license type: BSD-2-Clause
- Added missing manual translations: da, fr, pt_BR.
- Update to 7.1:
  * New: Option -i, --info to print file information.
    This new option prints number of DOS, Unix, and Mac line breaks, the byte
    order mark, and if the file is text or binary. And it can print the names
    of files that would be converted.
  Version 7.0
  * New: automated self-tests.
  * New: option -u to keep UTF-16 encoding.
  * New: option -v to print information about BOMs and converted line breaks.
  * Change: stdio mode does not automatically set quiet mode.
  * Change: stdio mode does not automatically force conversion of binaries.
    An error is returned when the stdin stream contains a binary symbol.
  * Bugfix: dos2unix -l created DOS line breaks from Mac line breaks.
  * Bugfix: system error number was not always returned.
  * Bugfix: an Unicode input file disabled 7bit and iso mode for next input files.
  * Bugfix: mac2unix help text, options -b and -r.
  * The code has been cleaned up.

OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=60
2014-10-26 14:36:30 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package dos2unix
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#
Name: dos2unix
Summary: Text converters to and from DOS/MAC to UNIX
License: BSD-2-Clause
Group: Productivity/Text/Convertors
Version: 7.1
Release: 0
Url: http://waterlan.home.xs4all.nl/dos2unix.html
Source: http://waterlan.home.xs4all.nl/dos2unix/dos2unix-%{version}.tar.gz
Provides: unix2dos = %{version}
Obsoletes: unix2dos < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%prep
%setup -q
find . -type f | xargs chmod -x
%build
export RPM_OPT_FLAGS
make %{?_smp_mflags} CC="%{__cc}" HTMLEXT="html"
%install
%makeinstall docdir=%{_defaultdocdir}/%{name} HTMLEXT="html"
%{find_lang} dos2unix --all-name --with-man
%files -f dos2unix.lang
%defattr(-,root,root,0755)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/dos2unix
%{_bindir}/mac2unix
%{_bindir}/unix2mac
%{_bindir}/unix2dos
%doc %{_mandir}/*/dos2unix.1*
%doc %{_mandir}/*/mac2unix.1*
%doc %{_mandir}/*/unix2mac.1*
%doc %{_mandir}/*/unix2dos.1*
%doc %lang(de) %dir %_mandir/de
%doc %lang(es) %dir %_mandir/es
%doc %lang(fr) %dir %_mandir/fr
%doc %lang(nl) %dir %_mandir/nl
%doc %lang(pl) %dir %_mandir/pl
%doc %lang(pt_BR) %dir %_mandir/pt_BR
%doc %lang(uk) %dir %_mandir/uk
%changelog