cvsdist 0f2616b
Summary: Text file format converter
cvsdist 0f2616b
Name: dos2unix
cvsdist 0f2616b
Version: 3.1
6bd6a9c
Release: 34%{?dist}
cvsdist 0f2616b
Group: Applications/Text
53ca4e2
License: BSD
6bd6a9c
6bd6a9c
# There is no upstream for this.
cvsdist 0f2616b
Source: %{name}-%{version}.tar.bz2
6bd6a9c
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
77a01b8
Patch6: dos2unix-c-missing-arg.patch
53ca4e2
Patch7: dos2unix-missing-proto.patch
89e5715
Patch8: dos2unix-manpage.patch
1271138
Patch9: dos2unix-preserve-file-modes.patch
mharris c590067
956121a
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 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
77a01b8
%patch6 -p1 -b .c-missing-arg
53ca4e2
%patch7 -p1 -b .missing-proto
89e5715
%patch8 -p1 -b .manpage
1271138
%patch9 -p1 -b .preserve-file-modes
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
6bd6a9c
make clean
cvsdist 0f2616b
cvsdist 0f2616b
%build
956121a
make CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE $(getconf LFS_CFLAGS)" \
956121a
  %{?_smp_mflags}
cvsdist 0f2616b
cvsdist 0f2616b
%install
cvsdist 0f2616b
rm -rf $RPM_BUILD_ROOT
cvsdist 0f2616b
cvsdist 0f2616b
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
9e6013e
install -p -m755 dos2unix $RPM_BUILD_ROOT%{_bindir}
53ca4e2
ln -s dos2unix $RPM_BUILD_ROOT%{_bindir}/mac2unix
53ca4e2
install -p -m644 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
53ca4e2
ln -s dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1/mac2unix.1
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
6bd6a9c
* Wed Sep 24 2008 Tim Waugh <twaugh@redhat.com> 3.1-34
6bd6a9c
- Moved 'make clean' to prep section and added comment about there
6bd6a9c
  being no upstream (bug #225706).
6bd6a9c
89e5715
* Mon Sep  8 2008 Tim Waugh <twaugh@redhat.com> 3.1-33
1271138
- Preserve file modes (bug #437465).
89e5715
- Fixed manpage grammar (bug #460731).
89e5715
53ca4e2
* Mon Apr 14 2008 Tim Waugh <twaugh@redhat.com> 3.1-32
53ca4e2
- Adjust license tag (bug #225706).
53ca4e2
- Fix missing prototype (bug #225706).
53ca4e2
- Install copy as symbolic links (bug #225706).
53ca4e2
e8de426
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 3.1-31
e8de426
- Rebuild for GCC 4.3.
e8de426
77a01b8
* Fri Jan 18 2008 Tim Waugh <twaugh@redhat.com> 3.1-30
77a01b8
- Applied patch from bug #292100 to fix segfault with missing -c argument.
77a01b8
51ef0c4
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 3.1-29
51ef0c4
- Rebuild.
51ef0c4
956121a
* Tue Feb  6 2007 Tim Waugh <twaugh@redhat.com> 3.1-28
956121a
- Fixed build root (bug #225706).
956121a
- Build with SMP flags (bug #225706).
956121a
- Use dist in release tag (bug #225706).
956121a
- Fixed macros in changelog (bug #225706).
9e6013e
- Preserve timestamps when using install (bug #225706).
956121a
b232e99
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.1-27.1
b232e99
- rebuild
b232e99
41c6ad4
* Mon Jul 10 2006 Tim Waugh <twaugh@redhat.com> 3.1-27
3d56650
- Re-encoded spec file in UTF-8 (bug #197817).
3d56650
836456d
* Mon Jun  5 2006 Tim Waugh <twaugh@redhat.com> 3.1-26
836456d
- Rebuilt.
836456d
0250594
* Thu Jun  1 2006 Tim Waugh <twaugh@redhat.com> 3.1-25
0250594
- Build with large file support.
0250594
d640699
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.1-24.2.1
d640699
- bump again for double-long bug on ppc(64)
d640699
9e83c55
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.1-24.2
9e83c55
- rebuilt for new gcc4.1 snapshot and glibc changes
9e83c55
bc4b4ba
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
bc4b4ba
- rebuilt
bc4b4ba
e1129ee
* Wed Apr 13 2005 Tim Waugh <twaugh@redhat.com> 3.1-24
e1129ee
- Fixed tmppath patch (bug #150277).
e1129ee
mharris 5d60019
* Thu Mar  3 2005 Mike A. Harris <mharris@redhat.com> 3.1-23
mharris 5d60019
- Bump and rebuild for FC4, using gcc 4.
mharris 5d60019
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
3d56650
* 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> 
956121a
- Added Hungarian "Summary:" and "%%description" 
cvsdist 0f2616b
- Corrected the file and directory attributes to rebuild the package 
cvsdist 0f2616b
  under RedHat Linux 6.0