Summary: Text file format converter Name: dos2unix Version: 3.1 Release: 10 Group: Applications/Text License: Freely distributable Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}.patch Patch1: dos2unix-3.1-segfault.patch Buildroot: %{_tmppath}/%{name}-%{version}-root %description Dos2unix converts DOS or MAC text files to UNIX format. %prep %setup -q %patch0 -p1 -b .orig %patch1 -p1 -b .segf perl -pi -e 's,(#endif|#else)[^ ]*(.*),$1 /* $2 */,g' *.[ch] %build make clean make CFLAGS="$RPM_OPT_FLAGS" make link %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} install -m755 dos2unix $RPM_BUILD_ROOT%{_bindir} install -m755 mac2unix $RPM_BUILD_ROOT%{_bindir} install -m444 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1 install -m444 mac2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1 %files %defattr(-,root,root,0755) %doc COPYRIGHT %{_bindir}/dos2unix %{_bindir}/mac2unix %{_mandir}/*/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Thu Feb 28 2002 Trond Eivind Glomsrød 3.1-10 - Build in new environment * Thu Jan 17 2002 Bernhard Rosenkraenzer - Fix bug #57700 (segfault) - Add the mac2unix symlink recommended in README - Fix compiler warnings * Wed Jan 09 2002 Tim Powers - automated rebuild * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Wed Jan 10 2001 Bernhard Rosenkraenzer - shut up rpmlint * Fri Nov 17 2000 Tim Powers - use mkstemp instead of mktemp. Not much needed to change. * Thu Nov 16 2000 Tim Powers - cleaned up specfile a bit - built for 7.1 * Tue Jul 07 1999 Peter Soos - Added Hungarian "Summary:" and "%description" - Corrected the file and directory attributes to rebuild the package under RedHat Linux 6.0