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
|
|
|
#
|
2012-01-30 13:10:43 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dos2unix
|
2010-04-06 18:13:22 +02:00
|
|
|
Summary: Text converters to and from DOS/MAC to UNIX
|
2012-01-30 13:10:43 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:10:31 +01:00
|
|
|
Group: Productivity/Text/Convertors
|
2012-05-07 09:38:01 +02:00
|
|
|
Version: 6.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
|
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
|
2012-03-13 11:18:25 +01:00
|
|
|
make %{?_smp_mflags} CC="%{__cc}" HTMLEXT="html"
|
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
|
2012-05-07 09:38:01 +02:00
|
|
|
%doc %{_mandir}/*/dos2unix.1*
|
|
|
|
%doc %{_mandir}/*/mac2unix.1*
|
|
|
|
%doc %{_mandir}/*/unix2mac.1*
|
|
|
|
%doc %{_mandir}/*/unix2dos.1*
|
|
|
|
%doc %lang(nl) %dir %_mandir/nl
|
2007-01-16 00:10:31 +01:00
|
|
|
|
2008-09-15 14:05:45 +02:00
|
|
|
%changelog
|