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
|
|
|
#
|
2017-07-05 21:35:10 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dos2unix
|
2010-04-06 18:13:22 +02:00
|
|
|
Summary: Text converters to and from DOS/MAC to UNIX
|
2014-10-26 15:36:30 +01:00
|
|
|
License: BSD-2-Clause
|
2007-01-16 00:10:31 +01:00
|
|
|
Group: Productivity/Text/Convertors
|
2017-10-11 23:56:59 +02:00
|
|
|
Version: 7.4.0
|
2012-01-30 13:10:43 +01:00
|
|
|
Release: 0
|
|
|
|
Url: http://waterlan.home.xs4all.nl/dos2unix.html
|
2012-05-07 09:38:01 +02:00
|
|
|
Source: http://waterlan.home.xs4all.nl/dos2unix/dos2unix-%{version}.tar.gz
|
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
|
|
|
|
|
|
|
|
%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
|
2017-07-12 11:11:17 +02:00
|
|
|
find . -type f -exec chmod -x '{}' +
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%build
|
2009-12-18 12:50:51 +01:00
|
|
|
export RPM_OPT_FLAGS
|
2012-03-13 11:18:25 +01:00
|
|
|
make %{?_smp_mflags} CC="%{__cc}" HTMLEXT="html"
|
2007-01-16 00:10:31 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-26 15:36:30 +01:00
|
|
|
%makeinstall docdir=%{_defaultdocdir}/%{name} HTMLEXT="html"
|
2010-04-06 18:13:22 +02:00
|
|
|
%{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
|
2012-05-07 09:38:01 +02:00
|
|
|
%doc %{_mandir}/*/dos2unix.1*
|
|
|
|
%doc %{_mandir}/*/mac2unix.1*
|
|
|
|
%doc %{_mandir}/*/unix2mac.1*
|
|
|
|
%doc %{_mandir}/*/unix2dos.1*
|
2014-10-26 15:36:30 +01:00
|
|
|
%doc %lang(de) %dir %_mandir/de
|
2012-07-17 09:35:21 +02:00
|
|
|
%doc %lang(es) %dir %_mandir/es
|
2014-10-26 15:36:30 +01:00
|
|
|
%doc %lang(fr) %dir %_mandir/fr
|
|
|
|
%doc %lang(nl) %dir %_mandir/nl
|
2014-04-23 07:33:30 +02:00
|
|
|
%doc %lang(pl) %dir %_mandir/pl
|
2014-10-26 15:36:30 +01:00
|
|
|
%doc %lang(pt_BR) %dir %_mandir/pt_BR
|
2015-11-20 23:22:31 +01:00
|
|
|
%doc %lang(sv) %dir %_mandir/sv
|
2014-10-26 15:36:30 +01:00
|
|
|
%doc %lang(uk) %dir %_mandir/uk
|
2015-10-01 22:58:01 +02:00
|
|
|
%doc %lang(zh_CN) %dir %_mandir/zh_CN
|
2007-01-16 00:10:31 +01:00
|
|
|
|
2008-09-15 14:05:45 +02:00
|
|
|
%changelog
|