cvsdist 0f2616b
Summary: Text file format converter
cvsdist 0f2616b
Name: dos2unix
cvsdist 0f2616b
Version: 3.1
cc51a78
Release: 28%{?dist}
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 29214f8
Patch3: dos2unix-3.1-manpage-update-57507.patch
mharris 0d9e8f6
Patch4: dos2unix-3.1-preserve-file-modes.patch
87e998c
Patch5: dos2unix-3.1-tmppath.patch
mharris 29214f8
cc51a78
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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 29214f8
%patch1 -p1 -b .segfault
mharris 29214f8
%patch2 -p1 -b .safeconv
mharris 29214f8
%patch3 -p1 -b .manpage-update-57507
mharris 0d9e8f6
%patch4 -p1 -b .preserve-file-modes
87e998c
%patch5 -p1 -b .tmppath
mharris 29214f8
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
cc51a78
make CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE $(getconf LFS_CFLAGS)" \
cc51a78
  %{?_smp_mflags}
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}
fe28ac9
install -p -m755 dos2unix $RPM_BUILD_ROOT%{_bindir}
fe28ac9
install -p -m755 mac2unix $RPM_BUILD_ROOT%{_bindir}
fe28ac9
install -p -m444 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
fe28ac9
install -p -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
cc51a78
* Tue Feb  6 2007 Tim Waugh <twaugh@redhat.com> 3.1-28
cc51a78
- Fixed build root (bug #225706).
cc51a78
- Build with SMP flags (bug #225706).
cc51a78
- Use dist in release tag (bug #225706).
cc51a78
- Fixed macros in changelog (bug #225706).
fe28ac9
- Preserve timestamps when using install (bug #225706).
cc51a78
e8c85a8
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.1-27.1
e8c85a8
- rebuild
e8c85a8
d425811
* Mon Jul 10 2006 Tim Waugh <twaugh@redhat.com> 3.1-27
561b284
- Re-encoded spec file in UTF-8 (bug #197817).
561b284
d72f30f
* Mon Jun  5 2006 Tim Waugh <twaugh@redhat.com> 3.1-26
d72f30f
- Rebuilt.
d72f30f
4250bb1
* Thu Jun  1 2006 Tim Waugh <twaugh@redhat.com> 3.1-25
4250bb1
- Build with large file support.
4250bb1
be4cf3a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.1-24.2.1
be4cf3a
- bump again for double-long bug on ppc(64)
be4cf3a
d7b6725
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.1-24.2
d7b6725
- rebuilt for new gcc4.1 snapshot and glibc changes
d7b6725
6a0bbe3
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6a0bbe3
- rebuilt
6a0bbe3
7305cf8
* Wed Apr 13 2005 Tim Waugh <twaugh@redhat.com> 3.1-24
7305cf8
- Fixed tmppath patch (bug #150277).
7305cf8
mharris cc526f9
* Thu Mar  3 2005 Mike A. Harris <mharris@redhat.com> 3.1-23
mharris cc526f9
- Bump and rebuild for FC4, using gcc 4.
mharris cc526f9
mharris ecf3ca7
* Tue Feb  8 2005 Mike A. Harris <mharris@redhat.com> 3.1-22
mharris ecf3ca7
- Bump and rebuild for FC4
mharris ecf3ca7
87e998c
* Wed Oct 20 2004 Miloslav Trmac <mitr@redhat.com> - 3.1-21
87e998c
- Don't just delete the original file when destination and current directory
87e998c
  are on different filesystems (#65548, #123069, patch by James Antill)
87e998c
- Fix return type of StripDelimiter in dos2unix-3.1-safeconv.patch (#136148)
87e998c
mharris 29214f8
* Wed Oct  6 2004 Mike A. Harris <mharris@redhat.com> 3.1-20
mharris 29214f8
- Added dos2unix-3.1-manpage-update-57507.patch to fix manpage (#57507)
mharris 0d9e8f6
- Added dos2unix-3.1-preserve-file-modes.patch to properly preserve file
mharris 0d9e8f6
  permissions (#91331,55183,112710,132145)
mharris 29214f8
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
561b284
* 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> 
cc51a78
- Added Hungarian "Summary:" and "%%description" 
cvsdist 0f2616b
- Corrected the file and directory attributes to rebuild the package 
cvsdist 0f2616b
  under RedHat Linux 6.0