cvsdist 0f2616b
Summary: Text file format converter
cvsdist 0f2616b
Name: dos2unix
cvsdist 0f2616b
Version: 3.1
mharris beeecc3
Release: 22
cvsdist 0f2616b
Group: Applications/Text
cvsdist bbbfe0f
License: Freely distributable
cvsdist 0f2616b
Source: %{name}-%{version}.tar.bz2
cvsdist 0f2616b
Patch0: %{name}-%{version}.patch
cvsdist bbbfe0f
Patch1: dos2unix-3.1-segfault.patch
riel 755e19b
Patch2: dos2unix-3.1-safeconv.patch
mharris c590067
Patch3: dos2unix-3.1-manpage-update-57507.patch
mharris df1bda2
Patch4: dos2unix-3.1-preserve-file-modes.patch
c230060
Patch5: dos2unix-3.1-tmppath.patch
mharris c590067
cvsdist bbbfe0f
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist 0f2616b
cvsdist 0f2616b
%description
cvsdist 0f2616b
Dos2unix converts DOS or MAC text files to UNIX format.
cvsdist 0f2616b
cvsdist 0f2616b
%prep
cvsdist 0f2616b
%setup -q
cvsdist 0f2616b
%patch0 -p1 -b .orig
mharris c590067
%patch1 -p1 -b .segfault
mharris c590067
%patch2 -p1 -b .safeconv
mharris c590067
%patch3 -p1 -b .manpage-update-57507
mharris df1bda2
%patch4 -p1 -b .preserve-file-modes
c230060
%patch5 -p1 -b .tmppath
mharris c590067
cvsdist a33606b
for I in *.[ch]; do
cvsdist a33606b
	sed -e 's,#endif.*,#endif,g' -e 's,#else.*,#else,g' $I > $I.new
cvsdist a33606b
	mv -f $I.new $I
cvsdist a33606b
done
cvsdist 0f2616b
cvsdist 0f2616b
%build
cvsdist 0f2616b
make clean
cvsdist 0f2616b
make CFLAGS="$RPM_OPT_FLAGS"
cvsdist bbbfe0f
make link
cvsdist 0f2616b
cvsdist 0f2616b
%install
cvsdist 0f2616b
rm -rf $RPM_BUILD_ROOT
cvsdist 0f2616b
cvsdist 0f2616b
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
cvsdist 0f2616b
install -m755 dos2unix $RPM_BUILD_ROOT%{_bindir}
cvsdist bbbfe0f
install -m755 mac2unix $RPM_BUILD_ROOT%{_bindir}
cvsdist 0f2616b
install -m444 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
cvsdist bbbfe0f
install -m444 mac2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
cvsdist 0f2616b
cvsdist 0f2616b
%files
cvsdist 0f2616b
%defattr(-,root,root,0755)
cvsdist 0f2616b
%doc COPYRIGHT
cvsdist 0f2616b
%{_bindir}/dos2unix
cvsdist bbbfe0f
%{_bindir}/mac2unix
cvsdist 0f2616b
%{_mandir}/*/*
cvsdist 0f2616b
cvsdist 0f2616b
%clean
cvsdist 0f2616b
rm -rf $RPM_BUILD_ROOT
cvsdist 0f2616b
cvsdist 0f2616b
%changelog
mharris beeecc3
* Tue Feb  8 2005 Mike A. Harris <mharris@redhat.com> 3.1-22
mharris beeecc3
- Bump and rebuild for FC4
mharris beeecc3
c230060
* Wed Oct 20 2004 Miloslav Trmac <mitr@redhat.com> - 3.1-21
c230060
- Don't just delete the original file when destination and current directory
c230060
  are on different filesystems (#65548, #123069, patch by James Antill)
c230060
- Fix return type of StripDelimiter in dos2unix-3.1-safeconv.patch (#136148)
c230060
mharris c590067
* Wed Oct  6 2004 Mike A. Harris <mharris@redhat.com> 3.1-20
mharris c590067
- Added dos2unix-3.1-manpage-update-57507.patch to fix manpage (#57507)
mharris df1bda2
- Added dos2unix-3.1-preserve-file-modes.patch to properly preserve file
mharris df1bda2
  permissions (#91331,55183,112710,132145)
mharris c590067
riel 755e19b
* Sun Sep 26 2004 Rik van Riel <riel@redhat.com> 3.1-19
riel 755e19b
- safer conversion w/ mac2unix (fix from bz #57508)
riel 755e19b
cvsdist 5dfcf9c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 5dfcf9c
- rebuilt
cvsdist 5dfcf9c
cvsdist 49761a3
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 49761a3
- rebuilt
cvsdist 49761a3
cvsdist 5ce9dd7
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 5ce9dd7
- rebuilt
cvsdist 5ce9dd7
cvsdist a33606b
* Wed Feb 05 2003 Elliot Lee <sopwith@redhat.com> 3.1-15
cvsdist a33606b
- Remove build dependency on perl, since perl BuildRequires: dos2unix,
cvsdist a33606b
  and there's no good reason not to just use sed here.
cvsdist a33606b
cvsdist a33606b
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist a33606b
- rebuilt
cvsdist a33606b
cvsdist a33606b
* Mon Oct  7 2002 Mike A. Harris <mharris@redhat.com> 3.1-13
cvsdist a33606b
- All-arch rebuild
cvsdist a33606b
- Added BuildRequires: perl
cvsdist a33606b
cvsdist d2908fb
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist d2908fb
- automated rebuild
cvsdist d2908fb
cvsdist 3beed4e
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 3beed4e
- automated rebuild
cvsdist 3beed4e
cvsdist bbbfe0f
* Thu Feb 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.1-10
cvsdist bbbfe0f
- Build in new environment
cvsdist bbbfe0f
cvsdist bbbfe0f
* Thu Jan 17 2002 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist bbbfe0f
- Fix bug #57700 (segfault)
cvsdist bbbfe0f
- Add the mac2unix symlink recommended in README
cvsdist bbbfe0f
- Fix compiler warnings
cvsdist bbbfe0f
cvsdist bbbfe0f
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist bbbfe0f
- automated rebuild
cvsdist bbbfe0f
cvsdist 8fb2658
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist 8fb2658
- Bump release + rebuild.
cvsdist 8fb2658
cvsdist 0f2616b
* Wed Jan 10 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 0f2616b
- shut up rpmlint
cvsdist 0f2616b
cvsdist 0f2616b
* Fri Nov 17 2000 Tim Powers <timp@redhat.com>
cvsdist 0f2616b
- use mkstemp instead of mktemp. Not much needed to change.
cvsdist 0f2616b
cvsdist 0f2616b
* Thu Nov 16 2000 Tim Powers <timp@redhat.com>
cvsdist 0f2616b
- cleaned up specfile a bit
cvsdist 0f2616b
- built for 7.1
cvsdist 0f2616b
cvsdist 0f2616b
* Tue Jul 07 1999 Peter Soos <sp@osb.hu> 
cvsdist 0f2616b
- Added Hungarian "Summary:" and "%description" 
cvsdist 0f2616b
- Corrected the file and directory attributes to rebuild the package 
cvsdist 0f2616b
  under RedHat Linux 6.0