2004-09-09 04:19:07 +00:00
|
|
|
|
Summary: Text file format converter
|
|
|
|
|
Name: dos2unix
|
|
|
|
|
Version: 3.1
|
2004-09-09 04:20:48 +00:00
|
|
|
|
Release: 17
|
2004-09-09 04:19:07 +00:00
|
|
|
|
Group: Applications/Text
|
2004-09-09 04:19:26 +00:00
|
|
|
|
License: Freely distributable
|
2004-09-09 04:19:07 +00:00
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
|
Patch0: %{name}-%{version}.patch
|
2004-09-09 04:19:26 +00:00
|
|
|
|
Patch1: dos2unix-3.1-segfault.patch
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
2004-09-09 04:19:07 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Dos2unix converts DOS or MAC text files to UNIX format.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .orig
|
2004-09-09 04:19:26 +00:00
|
|
|
|
%patch1 -p1 -b .segf
|
2004-09-09 04:19:41 +00:00
|
|
|
|
for I in *.[ch]; do
|
|
|
|
|
sed -e 's,#endif.*,#endif,g' -e 's,#else.*,#else,g' $I > $I.new
|
|
|
|
|
mv -f $I.new $I
|
|
|
|
|
done
|
2004-09-09 04:19:07 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make clean
|
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS"
|
2004-09-09 04:19:26 +00:00
|
|
|
|
make link
|
2004-09-09 04:19:07 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
|
|
|
|
|
install -m755 dos2unix $RPM_BUILD_ROOT%{_bindir}
|
2004-09-09 04:19:26 +00:00
|
|
|
|
install -m755 mac2unix $RPM_BUILD_ROOT%{_bindir}
|
2004-09-09 04:19:07 +00:00
|
|
|
|
install -m444 dos2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
2004-09-09 04:19:26 +00:00
|
|
|
|
install -m444 mac2unix.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
2004-09-09 04:19:07 +00:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
%doc COPYRIGHT
|
|
|
|
|
%{_bindir}/dos2unix
|
2004-09-09 04:19:26 +00:00
|
|
|
|
%{_bindir}/mac2unix
|
2004-09-09 04:19:07 +00:00
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 04:20:48 +00:00
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2004-09-09 04:20:25 +00:00
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2004-09-09 04:19:41 +00:00
|
|
|
|
* Wed Feb 05 2003 Elliot Lee <sopwith@redhat.com> 3.1-15
|
|
|
|
|
- Remove build dependency on perl, since perl BuildRequires: dos2unix,
|
|
|
|
|
and there's no good reason not to just use sed here.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Mon Oct 7 2002 Mike A. Harris <mharris@redhat.com> 3.1-13
|
|
|
|
|
- All-arch rebuild
|
|
|
|
|
- Added BuildRequires: perl
|
|
|
|
|
|
2004-09-09 04:19:38 +00:00
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 04:19:35 +00:00
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 04:19:26 +00:00
|
|
|
|
* Thu Feb 28 2002 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com> 3.1-10
|
|
|
|
|
- Build in new environment
|
|
|
|
|
|
|
|
|
|
* Thu Jan 17 2002 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix bug #57700 (segfault)
|
|
|
|
|
- Add the mac2unix symlink recommended in README
|
|
|
|
|
- Fix compiler warnings
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 04:19:14 +00:00
|
|
|
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- Bump release + rebuild.
|
|
|
|
|
|
2004-09-09 04:19:07 +00:00
|
|
|
|
* Wed Jan 10 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- shut up rpmlint
|
|
|
|
|
|
|
|
|
|
* Fri Nov 17 2000 Tim Powers <timp@redhat.com>
|
|
|
|
|
- use mkstemp instead of mktemp. Not much needed to change.
|
|
|
|
|
|
|
|
|
|
* Thu Nov 16 2000 Tim Powers <timp@redhat.com>
|
|
|
|
|
- cleaned up specfile a bit
|
|
|
|
|
- built for 7.1
|
|
|
|
|
|
|
|
|
|
* Tue Jul 07 1999 Peter Soos <sp@osb.hu>
|
|
|
|
|
- Added Hungarian "Summary:" and "%description"
|
|
|
|
|
- Corrected the file and directory attributes to rebuild the package
|
|
|
|
|
under RedHat Linux 6.0
|