Summary: Text file format converters Name: dos2unix Version: 5.2 Release: 1 Group: Applications/Text License: BSD URL: http://www.xs4all.nl/~waterlan/dos2unix.html Source0: http://www.xs4all.nl/~waterlan/dos2unix/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Provides: unix2dos = %{version}-%{release} Obsoletes: unix2dos < 5.2-1 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: sed, make, gettext, coreutils Requires: gettext %description Convert text files with DOS or Mac line endings to Unix line endings and vice versa. %prep %setup -q %patch0 %build export CFLAGS="" gmake %{?smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export PATH=/opt/freeware/bin:$PATH gmake DESTDIR=${RPM_BUILD_ROOT} install # We add doc files manually to %doc rm -rf ${RPM_BUILD_ROOT}%{_prefix}/doc cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc dos2unix.htm ChangeLog.txt COPYING.txt %doc NEWS.txt README.txt TODO.txt %{_bindir}/* %{_mandir}/man1/* %{_datadir}/locale/*/*/* /usr/bin/* %changelog * Fri Feb 04 2011 Michael Perzl - 5.2-1 - updated to version 5.2 * Thu Aug 26 2010 Michael Perzl - 5.1.1-1 - updated to version 5.1.1 * Mon Sep 29 2008 Michael Perzl - 3.1-1 - first version for AIX V5.1 and higher