9776936e9e
OBS-URL: https://build.opensuse.org/request/show/51749 OBS-URL: https://build.opensuse.org/package/show/Base:System/dos2unix?expand=0&rev=21
67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package dos2unix (Version 5.1.1)
|
|
#
|
|
# Copyright (c) 2010 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
|
|
BuildRequires: xz
|
|
Summary: Text converters to and from DOS/MAC to UNIX
|
|
Version: 5.1.1
|
|
Release: 1
|
|
Group: Productivity/Text/Convertors
|
|
License: BSD3c
|
|
Url: http://www.xs4all.nl/~waterlan/#DOS2UNIX
|
|
Source: %{name}-%{version}.tar.xz
|
|
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}
|
|
|
|
%install
|
|
%makeinstall docdir=%{_defaultdocdir}/%{name}
|
|
%{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
|
|
%{_mandir}/*/*
|
|
%lang(eo-x) %dir /usr/share/locale/eo-x
|
|
%lang(eo-x) %dir /usr/share/locale/eo-x/LC_MESSAGES
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%changelog
|