e3c3c2
Summary: A GNU collection of diff utilities
e3c3c2
Name: diffutils
e3c3c2
Version: 3.3
018fca
Release: 6%{?dist}
e3c3c2
Group: Applications/Text
e3c3c2
URL: http://www.gnu.org/software/diffutils/diffutils.html
e3c3c2
Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
e3c3c2
Patch1: diffutils-cmp-s-empty.patch
e3c3c2
Patch2: diffutils-mkdir_p.patch
e3c3c2
Patch4: diffutils-i18n.patch
018fca
# reversing some of the changes made in diffutils-3.3-5 due to performance issue
018fca
# https://www.mail-archive.com/bug-diffutils@gnu.org/msg00919.html
ce92f5
Patch5: diffutils-3.3-diffseq.patch
e3c3c2
License: GPLv3+
e3c3c2
Requires(post): info
e3c3c2
Requires(preun): info
e3c3c2
Provides: bundled(gnulib)
e3c3c2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e3c3c2
BuildRequires: help2man
e3c3c2
e3c3c2
%description
e3c3c2
Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
e3c3c2
compares two files and shows the differences, line by line.  The cmp
e3c3c2
command shows the offset and line numbers where two files differ, or
e3c3c2
cmp can show the characters that differ between the two files.  The
e3c3c2
diff3 command shows the differences between three files.  Diff3 can be
e3c3c2
used when two people have made independent changes to a common
e3c3c2
original; diff3 can produce a merged file that contains both sets of
e3c3c2
changes and warnings about conflicts.  The sdiff command can be used
e3c3c2
to merge two files interactively.
e3c3c2
e3c3c2
Install diffutils if you need to compare text files.
e3c3c2
e3c3c2
%prep
e3c3c2
%setup -q
e3c3c2
# For 'cmp -s', compare file sizes only if both non-zero (bug #563618).
e3c3c2
%patch1 -p1 -b .cmp-s-empty
e3c3c2
e3c3c2
# Work around @mkdir_p@ build issue.
e3c3c2
%patch2 -p1 -b .mkdir_p
e3c3c2
e3c3c2
%patch4 -p1 -b .i18n
e3c3c2
018fca
%patch5 -p1 -b .garbage
ce92f5
e3c3c2
%build
e3c3c2
%configure
e3c3c2
make PR_PROGRAM=%{_bindir}/pr
e3c3c2
e3c3c2
%install
e3c3c2
rm -rf $RPM_BUILD_ROOT
e3c3c2
make DESTDIR=$RPM_BUILD_ROOT install
e3c3c2
e3c3c2
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
e3c3c2
%find_lang %{name}
e3c3c2
e3c3c2
%check
e3c3c2
make check
e3c3c2
e3c3c2
%post
e3c3c2
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
e3c3c2
e3c3c2
%preun
e3c3c2
if [ $1 = 0 ]; then
e3c3c2
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
e3c3c2
fi
e3c3c2
e3c3c2
%clean
e3c3c2
rm -rf $RPM_BUILD_ROOT
e3c3c2
e3c3c2
%files -f %{name}.lang
e3c3c2
%defattr(-,root,root)
e3c3c2
%doc COPYING NEWS README
e3c3c2
%{_bindir}/*
e3c3c2
%{_mandir}/*/*
e3c3c2
%{_infodir}/diffutils.info*gz
e3c3c2
e3c3c2
%changelog
018fca
* Wed Feb 15 2023 Than Ngo <than@redhat.com> - 3.3-6
018fca
- Resolves: #2152980, regression
018fca
ce92f5
* Wed Nov 21 2018 Than Ngo <than@redhat.com> - 3.3-5
ce92f5
- Resolves: #1611281, diff -y produces garbage
ce92f5
b52a97
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.3-4
b52a97
- Mass rebuild 2014-01-24
b52a97
b52a97
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.3-3
b52a97
- Mass rebuild 2013-12-27
b52a97
e3c3c2
* Wed Oct 23 2013 Tim Waugh <twaugh@redhat.com> 3.3-2
e3c3c2
- Fixed multibyte handling logic for diff -Z (bug #1022417).
e3c3c2
e3c3c2
* Tue Mar 26 2013 Tim Waugh <twaugh@redhat.com> 3.3-1
e3c3c2
- 3.3 (bug #927560).
e3c3c2
e3c3c2
* Fri Feb 22 2013 Tim Waugh <twaugh@redhat.com> 3.2-13
e3c3c2
- Fixed i18n handling of 'diff -E' (bug #914666).
e3c3c2
e3c3c2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-12
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e3c3c2
e3c3c2
* Fri Oct 26 2012 Tim Waugh <twaugh@redhat.com> 3.2-11
e3c3c2
- Ported i18n patch and reinstated it (bug #870460).
e3c3c2
e3c3c2
* Wed Sep 19 2012 Tim Waugh <twaugh@redhat.com> 3.2-10
e3c3c2
- Fixed license as current source says GPLv3+.
e3c3c2
e3c3c2
* Mon Jul 23 2012 Tim Waugh <twaugh@redhat.com> 3.2-9
e3c3c2
- Fixed build failure.
e3c3c2
e3c3c2
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-8
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e3c3c2
e3c3c2
* Mon May 21  2012 Tim Waugh <twaugh@redhat.com> 3.2-7
e3c3c2
- Provides bundled(gnulib) (bug #821751).
e3c3c2
e3c3c2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-6
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e3c3c2
e3c3c2
* Thu Dec  8 2011 Tim Waugh <twaugh@redhat.com> 3.2-5
e3c3c2
- Fix bug #747969 again.
e3c3c2
e3c3c2
* Tue Nov 29 2011 Tim Waugh <twaugh@redhat.com> 3.2-4
e3c3c2
- Real fix for bug #747969: the diffutils info file changed name in
e3c3c2
  3.1.  Updated the scriptlets to install/remove the correct filename
e3c3c2
  from the info directory.
e3c3c2
e3c3c2
* Fri Nov 25 2011 Tim Waugh <twaugh@redhat.com> 3.2-3
e3c3c2
- Fixed up reference to info page in man pages (bug #747969).
e3c3c2
e3c3c2
* Fri Nov 25 2011 Tim Waugh <twaugh@redhat.com> 3.2-2
e3c3c2
- Applied upstream gnulib fix for float test on ppc, as well as
e3c3c2
  correction for LDBL_MANT_DIG definition (bug #733536).
e3c3c2
e3c3c2
* Fri Sep  2 2011 Tim Waugh <twaugh@redhat.com> 3.2-1
e3c3c2
- 3.2.
e3c3c2
e3c3c2
* Thu Aug 11 2011 Tim Waugh <twaugh@redhat.com> 3.1-1
e3c3c2
- 3.1.
e3c3c2
e3c3c2
* Wed Apr 13 2011 Tim Waugh <twaugh@redhat.com> 3.0-1
e3c3c2
- 3.0 (bug #566482).
e3c3c2
- The i18n patch is dropped for the time being.
e3c3c2
e3c3c2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-30
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e3c3c2
e3c3c2
* Fri Jun 25 2010 Tim Waugh <twaugh@redhat.com> 2.8.1-29
e3c3c2
- For 'cmp -s', compare file sizes only if both non-zero (bug #563618).
e3c3c2
e3c3c2
* Wed Apr 21 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-28
e3c3c2
- Build requires help2man (bug #577325).  Fixes empty diff man page.
e3c3c2
e3c3c2
* Wed Mar  3 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-27
e3c3c2
- Added comments for all patches.
e3c3c2
e3c3c2
* Wed Mar  3 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-26
e3c3c2
- Use upstream man pages.
e3c3c2
- Ship COPYING file.
e3c3c2
e3c3c2
* Tue Aug 11 2009 Tim Waugh <twaugh@redhat.com> 2.8.1-25
e3c3c2
- Only try to install the info file if it exists so that package
e3c3c2
  installation does not fail with --excludedocs (bug #515919).
e3c3c2
e3c3c2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-24
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e3c3c2
e3c3c2
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-23
e3c3c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e3c3c2
e3c3c2
* Fri Feb 13 2009 Tim Waugh <twaugh@redhat.com> 2.8.1-22
e3c3c2
- Fixed 'sdiff -E' (bug #484892).
e3c3c2
e3c3c2
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 2.8.1-21
e3c3c2
- Rebuild for GCC 4.3.
e3c3c2
e3c3c2
* Wed Jan  2 2008 Tim Waugh <twaugh@redhat.com> 2.8.1-20
e3c3c2
- Converted spec file to UTF-8 (bug #225696).
e3c3c2
- Fixed summary (bug #225696).
e3c3c2
- Fixed PreReq (bug #225696).
e3c3c2
- Removed Prefix (bug #225696).
e3c3c2
- Fixed build root (bug #225696).
e3c3c2
- Avoid %%makeinstall (bug #225696).
e3c3c2
- Fixed license tag (bug #225696).
e3c3c2
e3c3c2
* Tue Nov  6 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-19
e3c3c2
- Rebuilt.
e3c3c2
e3c3c2
* Tue Nov  6 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-18
e3c3c2
- Fixed multibyte speed improvement patch (bug #363831).
e3c3c2
e3c3c2
* Tue Aug 14 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-17
e3c3c2
- Multibyte speed improvement (bug #252117).
e3c3c2
e3c3c2
* Mon Jan 22 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-16
e3c3c2
- Make scriptlet unconditionally succeed (bug #223683).
e3c3c2
e3c3c2
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2.2
e3c3c2
- rebuild
e3c3c2
e3c3c2
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2.1
e3c3c2
- bump again for double-long bug on ppc(64)
e3c3c2
e3c3c2
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2
e3c3c2
- rebuilt for new gcc4.1 snapshot and glibc changes
e3c3c2
e3c3c2
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
e3c3c2
- rebuilt
e3c3c2
e3c3c2
* Wed Apr  6 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-15
e3c3c2
- Fixed sdiff exit code handling (bug #152967).
e3c3c2
e3c3c2
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-14
e3c3c2
- Rebuild for new GCC.
e3c3c2
e3c3c2
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-13
e3c3c2
- Rebuilt.
e3c3c2
e3c3c2
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
e3c3c2
- rebuilt
e3c3c2
e3c3c2
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
e3c3c2
- rebuilt
e3c3c2
e3c3c2
* Thu Jan  8 2004 Tim Waugh <twaugh@redhat.com> 2.8.1-10
e3c3c2
- Fix mistaken use of '|' instead of '||'.
e3c3c2
e3c3c2
* Sat Oct 25 2003 Tim Waugh <twaugh@redhat.com> 2.8.1-9
e3c3c2
- Rebuilt.
e3c3c2
e3c3c2
* Tue Jun 17 2003 Tim Waugh <twaugh@redhat.com> 2.8.1-8
e3c3c2
- Rebuilt.
e3c3c2
e3c3c2
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
e3c3c2
- rebuilt
e3c3c2
e3c3c2
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
e3c3c2
- rebuilt
e3c3c2
e3c3c2
* Tue Nov 19 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-5
e3c3c2
- i18n patch.
e3c3c2
e3c3c2
* Tue Oct 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-4
e3c3c2
- Ship translations.
e3c3c2
e3c3c2
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
e3c3c2
- automated rebuild
e3c3c2
e3c3c2
* Thu May 23 2002 Tim Powers <timp@redhat.com>
e3c3c2
- automated rebuild
e3c3c2
e3c3c2
* Mon Apr 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-1
e3c3c2
- 2.8.1.
e3c3c2
- No longer need immunix-owl-tmp patch.
e3c3c2
e3c3c2
* Wed Feb 27 2002 Tim Waugh <twaugh@redhat.com> 2.7.2-5
e3c3c2
- Rebuild in new environment.
e3c3c2
e3c3c2
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
e3c3c2
- automated rebuild
e3c3c2
e3c3c2
* Fri Nov 02 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-3
e3c3c2
- Make sure %%post scriplet doesn't fail if --excludedocs is used.
e3c3c2
e3c3c2
* Fri Jun 01 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-2
e3c3c2
- Install diff.1, since it's no longer in man-pages.
e3c3c2
e3c3c2
* Fri Mar 30 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-1
e3c3c2
- 2.7.2.
e3c3c2
e3c3c2
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
e3c3c2
- automatic rebuild
e3c3c2
e3c3c2
* Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
e3c3c2
- fix %%changelog entries (escape them)
e3c3c2
- update source location
e3c3c2
- remove manual stripping
e3c3c2
- add URL
e3c3c2
e3c3c2
* Tue Jun 06 2000 Than Ngo <than@redhat.de>
e3c3c2
- add %%defattr
e3c3c2
- use rpm macros
e3c3c2
e3c3c2
* Wed May 31 2000 Ngo Than <than@redhat.de>
e3c3c2
- put man pages and info files in correct place
e3c3c2
- cleanup specfile
e3c3c2
e3c3c2
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
e3c3c2
- rebuild to gzip man pages.
e3c3c2
e3c3c2
* Mon Apr 19 1999 Jeff Johnson <jbj@redhat.com>
e3c3c2
- man pages not in %%files.
e3c3c2
- but avoid conflict for diff.1
e3c3c2
e3c3c2
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
e3c3c2
- auto rebuild in the new build environment (release 14)
e3c3c2
e3c3c2
* Sun Mar 14 1999 Jeff Johnson <jbj@redhat.com>
e3c3c2
- add man pages (#831).
e3c3c2
- add %%configure and Prefix.
e3c3c2
e3c3c2
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
e3c3c2
- build for glibc 2.1
e3c3c2
e3c3c2
* Tue Jul 14 1998 Bill Kawakami <billk@home.com>
e3c3c2
- included the four man pages stolen from Slackware
e3c3c2
e3c3c2
* Tue May 05 1998 Prospector System <bugs@redhat.com>
e3c3c2
- translations modified for de, fr, tr
e3c3c2
e3c3c2
* Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
e3c3c2
- fixed spec file to reference/use the $RPM_BUILD_ROOT always
e3c3c2
    
e3c3c2
* Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com>
e3c3c2
- fixed where it looks for 'pr' (/usr/bin, rather than /bin)
e3c3c2
e3c3c2
* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
e3c3c2
- added BuildRoot
e3c3c2
e3c3c2
* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
e3c3c2
- uses install-info
e3c3c2
e3c3c2
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
e3c3c2
- built against glibc