Philipp Thomas
2010-04-06 16:13:22 +00:00
committed by Git OBS Bridge
parent c9832ea6d4
commit a0e7aeac5e
6 changed files with 39 additions and 341 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package dos2unix (Version 4.1.2)
# spec file for package dos2unix (Version 5.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,47 +18,43 @@
Name: dos2unix
Summary: A DOS to UNIX Text Converter
Version: 4.1.2
Summary: Text converters to and from DOS/MAC to UNIX
Version: 5.1
Release: 1
Group: Productivity/Text/Convertors
License: BSD3c
Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX
Source: %{name}-%{version}.tar.bz2
Source1: de.po
Patch0: dos2unix-Makefile.patch
Provides: unix2dos = %{version}
Obsoletes: unix2dos < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
dos2unix is used to convert plain text from DOS (CR/LF) format to UNIX
format (LF).
Dos2unix is used to convert plain text from DOS (CR/LF) format. Mac2unix
converts plain text from MAC (CR) format to UNIX format (LF).
Authors:
--------
Benjamin Lin blin @ socs.uts.edu.au
Erwin Waterlander <waterlan @ xs4all.nl>
Unix2dos converts plain text files from UNIX
format to DOS format and unix2dos converts from UNIX to MAC format.
%prep
%setup -q
%patch0
cp %{S:1} po/
find . -type f -exec chmod -x {} \;
find . -type f | xargs chmod -x
%build
export RPM_OPT_FLAGS
make %{?jobs:-j%jobs}
%install
%makeinstall
%{find_lang} %{name}
%makeinstall docdir=%{_defaultdocdir}/%{name}
%{find_lang} dos2unix --all-name --with-man
%files -f %{name}.lang
%files -f dos2unix.lang
%defattr(-,root,root,0755)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/dos2unix
%{_bindir}/mac2unix
%{_bindir}/unix2mac
%{_bindir}/unix2dos
%{_mandir}/*/*
%clean