diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b5c6545 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dos2unix-7.4.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dos2unix-7.4.0-annocheck.patch b/dos2unix-7.4.0-annocheck.patch new file mode 100644 index 0000000..a268c16 --- /dev/null +++ b/dos2unix-7.4.0-annocheck.patch @@ -0,0 +1,12 @@ +diff -up dos2unix-7.4.0/Makefile.annocheck dos2unix-7.4.0/Makefile +--- dos2unix-7.4.0/Makefile.annocheck 2018-09-12 14:13:45.959517746 +0200 ++++ dos2unix-7.4.0/Makefile 2018-09-12 14:15:13.800825487 +0200 +@@ -358,7 +358,7 @@ ifdef LFS + endif + + LDFLAGS_USER = +-LDFLAGS = $(RPM_OPT_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER) ++LDFLAGS = $(RPM_OPT_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER) $(RPM_LD_FLAGS) + LIBS = $(LIBS_EXTRA) + + DEFS_USER = diff --git a/dos2unix.spec b/dos2unix.spec new file mode 100644 index 0000000..fef8172 --- /dev/null +++ b/dos2unix.spec @@ -0,0 +1,330 @@ +Summary: Text file format converters +Name: dos2unix +Version: 7.4.0 +Release: 3%{?dist} +Group: Applications/Text +License: BSD +URL: http://waterlan.home.xs4all.nl/dos2unix.html +Source: http://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz +Patch0: dos2unix-7.4.0-annocheck.patch +BuildRequires: gettext +Provides: unix2dos = %{version}-%{release} +Obsoletes: unix2dos < 5.1-1 + +%description +Convert text files with DOS or Mac line endings to Unix line endings and +vice versa. + +%prep +%setup -q +%patch0 -p1 -b .annocheck + +%build +export CC=gcc +make %{?_smp_mflags} + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +# We add doc files manually to %%doc +rm -rf $RPM_BUILD_ROOT%{_docdir} + +%find_lang %{name} --with-man --all-name + +%files -f %{name}.lang +%defattr(-,root,root,0755) +%doc man/man1/dos2unix.htm ChangeLog.txt COPYING.txt +%doc NEWS.txt README.txt TODO.txt +%{_bindir}/dos2unix +%{_bindir}/mac2unix +%{_bindir}/unix2dos +%{_bindir}/unix2mac +%{_mandir}/man1/*.1* + +%clean +rm -rf $RPM_BUILD_ROOT + +%changelog +* Wed Sep 12 2018 Than Ngo - 7.4.0-3 +- Fixed bz#1624104, annocheck distro flag failures in dos2unix + +* Wed Feb 07 2018 Fedora Release Engineering - 7.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Oct 11 2017 Tim Waugh 7.4.0-1 +- 7.4.0. + +* Wed Aug 02 2017 Fedora Release Engineering - 7.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 7.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jul 5 2017 Tim Waugh 7.3.5-1 +- 7.3.5. + +* Mon Apr 10 2017 Erwin Waterlander 7.3.4-3 +- Removed build requirement perl-Pod-Checker + +* Fri Feb 10 2017 Fedora Release Engineering - 7.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed May 25 2016 Tim Waugh 7.3.4-1 +- 7.3.4. + +* Mon Feb 15 2016 Tim Waugh 7.3.3-1 +- 7.3.3 (bug #1308277). + +* Wed Feb 03 2016 Fedora Release Engineering - 7.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 30 2015 Tim Waugh 7.3.2-1 +- 7.3.2 (bug #1284134). + +* Thu Oct 1 2015 Tim Waugh 7.3.1-1 +- 7.3.1 (bug #1267773). + +* Mon Aug 24 2015 Tim Waugh 7.3-1 +- 7.3. + +* Thu Jul 2 2015 Tim Waugh 7.2.3-1 +- 7.2.3 (bug #1238484). + +* Wed Jun 17 2015 Fedora Release Engineering - 7.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue May 26 2015 Tim Waugh 7.2.2-1 +- 7.2.2 (bug #1224433). + +* Thu Apr 2 2015 Tim Waugh 7.2.1-1 +- 7.2.1. + +* Sat Feb 21 2015 Till Maas - 7.2-2 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + +* Wed Feb 11 2015 Tim Waugh 7.2-1 +- 7.2. + +* Tue Oct 7 2014 Tim Waugh 7.1-1 +- 7.1. + +* Wed Sep 10 2014 Tim Waugh 7.0-1 +- 7.0. + +* Sat Aug 16 2014 Fedora Release Engineering - 6.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Aug 4 2014 Tim Waugh 6.0.6-1 +- 6.0.6. + +* Sat Jun 07 2014 Fedora Release Engineering - 6.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Apr 22 2014 Tim Waugh 6.0.5-1 +- 6.0.5 (bug #1089931). + +* Thu Jan 2 2014 Tim Waugh 6.0.4-1 +- 6.0.4. + +* Sat Aug 03 2013 Fedora Release Engineering - 6.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 22 2013 Tim Waugh 6.0.3-2 +- Build requires perl-Pod-Checker. +- Fixed bogus changelog dates. + +* Mon Jan 28 2013 Tim Waugh 6.0.3-1 +- 6.0.3. + +* Fri Sep 7 2012 Tim Waugh 6.0.2-1 +- 6.0.2. + +* Thu Jul 26 2012 Tim Waugh 6.0.1-1 +- 6.0.1. + +* Wed Jul 18 2012 Fedora Release Engineering - 6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue May 8 2012 Tim Waugh 6.0-1 +- 6.0. + +* Tue Mar 13 2012 Tim Waugh 5.3.3-1 +- 5.3.3. + +* Mon Jan 30 2012 Tim Waugh 5.3.2-1 +- 5.3.2. + +* Fri Jan 13 2012 Fedora Release Engineering - 5.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Aug 10 2011 Tim Waugh 5.3.1-1 +- 5.3.1. + +* Fri May 20 2011 Tim Waugh 5.3-2 +- No longer requires ghostscript or groff. +- Large file support taken care of upstream now. + +* Wed Apr 27 2011 Tim Waugh 5.3-1 +- 5.3. + +* Mon Apr 11 2011 Tim Waugh 5.2.1-1 +- 5.2.1. + +* Tue Feb 15 2011 Tim Waugh 5.2-3 +- Build requires perl (for pod2man). + +* Tue Feb 08 2011 Fedora Release Engineering - 5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Feb 1 2011 Tim Waugh 5.2-1 +- Update to 5.2. +- Build requires groff and ghostscript. + +* Thu Aug 19 2010 Chen Lei 5.1.1-1 +- Update to 5.1.1 + +* Wed Aug 18 2010 Tim Waugh 5.1-1 +- Applied changes from Chen Lei (bug #592922): + * Sun Aug 15 2010 Chen Lei 5.1-1 + - 5.1. + - Update spec to match latest guidelines w.r.t buildroot tag + +* Tue Jan 26 2010 Tim Waugh 4.1.2-1 +- 4.1.2. + +* Fri Jan 22 2010 Tim Waugh 4.1.1-1 +- 4.1.1. New upstream. + +* Fri Jul 24 2009 Fedora Release Engineering - 3.1-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 3.1-35 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Sep 24 2008 Tim Waugh 3.1-34 +- Moved 'make clean' to prep section and added comment about there + being no upstream (bug #225706). + +* Mon Sep 8 2008 Tim Waugh 3.1-33 +- Preserve file modes (bug #437465). +- Fixed manpage grammar (bug #460731). + +* Mon Apr 14 2008 Tim Waugh 3.1-32 +- Adjust license tag (bug #225706). +- Fix missing prototype (bug #225706). +- Install copy as symbolic links (bug #225706). + +* Wed Feb 13 2008 Tim Waugh 3.1-31 +- Rebuild for GCC 4.3. + +* Fri Jan 18 2008 Tim Waugh 3.1-30 +- Applied patch from bug #292100 to fix segfault with missing -c argument. + +* Wed Aug 29 2007 Tim Waugh 3.1-29 +- Rebuild. + +* Tue Feb 6 2007 Tim Waugh 3.1-28 +- Fixed build root (bug #225706). +- Build with SMP flags (bug #225706). +- Use dist in release tag (bug #225706). +- Fixed macros in changelog (bug #225706). +- Preserve timestamps when using install (bug #225706). + +* Wed Jul 12 2006 Jesse Keating - 3.1-27.1 +- rebuild + +* Mon Jul 10 2006 Tim Waugh 3.1-27 +- Re-encoded spec file in UTF-8 (bug #197817). + +* Mon Jun 5 2006 Tim Waugh 3.1-26 +- Rebuilt. + +* Thu Jun 1 2006 Tim Waugh 3.1-25 +- Build with large file support. + +* Fri Feb 10 2006 Jesse Keating - 3.1-24.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 3.1-24.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Apr 13 2005 Tim Waugh 3.1-24 +- Fixed tmppath patch (bug #150277). + +* Thu Mar 3 2005 Mike A. Harris 3.1-23 +- Bump and rebuild for FC4, using gcc 4. + +* Tue Feb 8 2005 Mike A. Harris 3.1-22 +- Bump and rebuild for FC4 + +* Wed Oct 20 2004 Miloslav Trmac - 3.1-21 +- Don't just delete the original file when destination and current directory + are on different filesystems (#65548, #123069, patch by James Antill) +- Fix return type of StripDelimiter in dos2unix-3.1-safeconv.patch (#136148) + +* Wed Oct 6 2004 Mike A. Harris 3.1-20 +- Added dos2unix-3.1-manpage-update-57507.patch to fix manpage (#57507) +- Added dos2unix-3.1-preserve-file-modes.patch to properly preserve file + permissions (#91331,55183,112710,132145) + +* Sun Sep 26 2004 Rik van Riel 3.1-19 +- safer conversion w/ mac2unix (fix from bz #57508) + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Feb 05 2003 Elliot Lee 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 +- rebuilt + +* Mon Oct 7 2002 Mike A. Harris 3.1-13 +- All-arch rebuild +- Added BuildRequires: perl + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* 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 + +* Wed 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 diff --git a/sources b/sources new file mode 100644 index 0000000..5afcd49 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dos2unix-7.4.0.tar.gz) = 41be6b0c747f4a8e316eccecd468c8250aa6791962485569eb9496def60818ae434d619b5cfb5f80f15f8d17800314f5aefe229dc5d37faaa34e1270575175e9