2527e6
Summary: GNU collection of diff utilities
2527e6
Name: diffutils
2527e6
Version: 3.7
2527e6
Release: 12%{?dist}
2527e6
URL: https://www.gnu.org/software/diffutils/diffutils.html
2527e6
Source: https://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
2527e6
Patch1: diffutils-cmp-s-empty.patch
2527e6
Patch2: diffutils-i18n.patch
2527e6
Patch3: diffutils-fix-gnulib-tests.patch
2527e6
Patch4: diffutils-3.7-coverity.patch
2527e6
Patch5: diffutils-3.7-false-positive.patch
2527e6
Patch6: diffutils-sigstksz.patch
2527e6
License: GPLv3+
2527e6
Provides: bundled(gnulib)
2527e6
BuildRequires: gcc
2527e6
BuildRequires: help2man
2527e6
BuildRequires: autoconf, automake, texinfo
2527e6
BuildRequires: make
2527e6
2527e6
%description
2527e6
Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
2527e6
compares two files and shows the differences, line by line.  The cmp
2527e6
command shows the offset and line numbers where two files differ, or
2527e6
cmp can show the characters that differ between the two files.  The
2527e6
diff3 command shows the differences between three files.  Diff3 can be
2527e6
used when two people have made independent changes to a common
2527e6
original; diff3 can produce a merged file that contains both sets of
2527e6
changes and warnings about conflicts.  The sdiff command can be used
2527e6
to merge two files interactively.
2527e6
2527e6
Install diffutils if you need to compare text files.
2527e6
2527e6
%prep
2527e6
%autosetup -p1
2527e6
2527e6
# Run autoreconf for aarch64 support (bug #925256).
2527e6
autoreconf
2527e6
2527e6
%build
2527e6
%global optflags %{optflags} -Dlint
2527e6
%configure
2527e6
make PR_PROGRAM=%{_bindir}/pr
2527e6
2527e6
%install
2527e6
%make_install
2527e6
2527e6
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
2527e6
%find_lang %{name}
2527e6
2527e6
%check
2527e6
# Disable update-copyright gnulib test (bug #1239428).
2527e6
>gnulib-tests/test-update-copyright.sh
2527e6
make check
2527e6
2527e6
%files -f %{name}.lang
2527e6
%doc NEWS README
2527e6
%license COPYING
2527e6
%{_bindir}/*
2527e6
%{_mandir}/*/*
2527e6
%{_infodir}/diffutils.info*
2527e6
2527e6
%changelog
2527e6
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.7-12
2527e6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2527e6
  Related: rhbz#1991688
2527e6
2527e6
* Wed Jun 23 2021 Than Ngo <than@redhat.com> - 3.7-11
2527e6
- Resolves: #1975121, Handle SIGSTKSZ no longer being a constant.
2527e6
2527e6
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.7-10
2527e6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2527e6
2527e6
* Wed Mar 24 2021 Than Ngo <than@redhat.com> - 3.7-9
2527e6
- Fix coverity issues
2527e6
2527e6
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-8
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2527e6
2527e6
* Thu Oct  8 2020 Tim Waugh <twaugh@redhat.com> - 3.7-7
2527e6
- Fix from gnulib upstream, commit 175e0bc (bug #1863423).
2527e6
2527e6
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-6
2527e6
- Second attempt - Rebuilt for
2527e6
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2527e6
2527e6
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-5
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2527e6
2527e6
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-4
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2527e6
2527e6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-3
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2527e6
2527e6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-2
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2527e6
2527e6
* Mon Jan 07 2019 Than Ngo <than@redhat.com> - 3.7-1
2527e6
- 3.7
2527e6
2527e6
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-5
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2527e6
2527e6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-4
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2527e6
2527e6
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-3
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2527e6
2527e6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2527e6
2527e6
* Mon May 22 2017 Tim Waugh <twaugh@redhat.com> - 3.6-1
2527e6
- 3.6 (bug #1453019).
2527e6
2527e6
* Tue Feb 21 2017 Than Ngo <than@redhat.com> - 3.5-3
2527e6
- backport to fix  FTBFs with GCC 7
2527e6
2527e6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2527e6
2527e6
* Wed Sep 21 2016 Tim Waugh <twaugh@redhat.com> - 3.5-1
2527e6
- 3.5 (bug #1365325).
2527e6
2527e6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-13
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2527e6
2527e6
* Mon Jul  6 2015 Tim Waugh <twaugh@redhat.com> - 3.3-12
2527e6
- Disable update-copyright gnulib test (bug #1239428).
2527e6
2527e6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-11
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2527e6
2527e6
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 3.3-10
2527e6
- Rebuilt for Fedora 23 Change
2527e6
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
2527e6
2527e6
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-9
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2527e6
2527e6
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 3.3-8
2527e6
- fix license handling
2527e6
2527e6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-7
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2527e6
2527e6
* Thu Mar 27 2014 Tim Waugh <twaugh@redhat.com> 3.3-6
2527e6
- Fix --help output and man page (bug #1079076).
2527e6
2527e6
* Wed Dec  4 2013 Tim Waugh <twaugh@redhat.com> 3.3-5
2527e6
- Applied upstream gnulib patch to avoid -Wformat-security warning
2527e6
  (bug #1037038).
2527e6
2527e6
* Wed Oct 23 2013 Tim Waugh <twaugh@redhat.com> 3.3-4
2527e6
- Fixed multibyte handling logic for diff -Z (bug #1012075).
2527e6
2527e6
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-3
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2527e6
2527e6
* Mon Apr 29 2013 Tim Waugh <twaugh@redhat.com> 3.3-2
2527e6
- Run autoreconf for aarch64 support (bug #925256).
2527e6
2527e6
* Tue Mar 26 2013 Tim Waugh <twaugh@redhat.com> 3.3-1
2527e6
- 3.3 (bug #927560).
2527e6
2527e6
* Fri Feb 22 2013 Tim Waugh <twaugh@redhat.com> 3.2-13
2527e6
- Fixed i18n handling of 'diff -E' (bug #914666).
2527e6
2527e6
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-12
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2527e6
2527e6
* Fri Oct 26 2012 Tim Waugh <twaugh@redhat.com> 3.2-11
2527e6
- Ported i18n patch and reinstated it (bug #870460).
2527e6
2527e6
* Wed Sep 19 2012 Tim Waugh <twaugh@redhat.com> 3.2-10
2527e6
- Fixed license as current source says GPLv3+.
2527e6
2527e6
* Mon Jul 23 2012 Tim Waugh <twaugh@redhat.com> 3.2-9
2527e6
- Fixed build failure.
2527e6
2527e6
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-8
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2527e6
2527e6
* Mon May 21  2012 Tim Waugh <twaugh@redhat.com> 3.2-7
2527e6
- Provides bundled(gnulib) (bug #821751).
2527e6
2527e6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-6
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2527e6
2527e6
* Thu Dec  8 2011 Tim Waugh <twaugh@redhat.com> 3.2-5
2527e6
- Fix bug #747969 again.
2527e6
2527e6
* Tue Nov 29 2011 Tim Waugh <twaugh@redhat.com> 3.2-4
2527e6
- Real fix for bug #747969: the diffutils info file changed name in
2527e6
  3.1.  Updated the scriptlets to install/remove the correct filename
2527e6
  from the info directory.
2527e6
2527e6
* Fri Nov 25 2011 Tim Waugh <twaugh@redhat.com> 3.2-3
2527e6
- Fixed up reference to info page in man pages (bug #747969).
2527e6
2527e6
* Fri Nov 25 2011 Tim Waugh <twaugh@redhat.com> 3.2-2
2527e6
- Applied upstream gnulib fix for float test on ppc, as well as
2527e6
  correction for LDBL_MANT_DIG definition (bug #733536).
2527e6
2527e6
* Fri Sep  2 2011 Tim Waugh <twaugh@redhat.com> 3.2-1
2527e6
- 3.2.
2527e6
2527e6
* Thu Aug 11 2011 Tim Waugh <twaugh@redhat.com> 3.1-1
2527e6
- 3.1.
2527e6
2527e6
* Wed Apr 13 2011 Tim Waugh <twaugh@redhat.com> 3.0-1
2527e6
- 3.0 (bug #566482).
2527e6
- The i18n patch is dropped for the time being.
2527e6
2527e6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-30
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2527e6
2527e6
* Fri Jun 25 2010 Tim Waugh <twaugh@redhat.com> 2.8.1-29
2527e6
- For 'cmp -s', compare file sizes only if both non-zero (bug #563618).
2527e6
2527e6
* Wed Apr 21 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-28
2527e6
- Build requires help2man (bug #577325).  Fixes empty diff man page.
2527e6
2527e6
* Wed Mar  3 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-27
2527e6
- Added comments for all patches.
2527e6
2527e6
* Wed Mar  3 2010 Tim Waugh <twaugh@redhat.com> - 2.8.1-26
2527e6
- Use upstream man pages.
2527e6
- Ship COPYING file.
2527e6
2527e6
* Tue Aug 11 2009 Tim Waugh <twaugh@redhat.com> 2.8.1-25
2527e6
- Only try to install the info file if it exists so that package
2527e6
  installation does not fail with --excludedocs (bug #515919).
2527e6
2527e6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-24
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2527e6
2527e6
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.1-23
2527e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2527e6
2527e6
* Fri Feb 13 2009 Tim Waugh <twaugh@redhat.com> 2.8.1-22
2527e6
- Fixed 'sdiff -E' (bug #484892).
2527e6
2527e6
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 2.8.1-21
2527e6
- Rebuild for GCC 4.3.
2527e6
2527e6
* Wed Jan  2 2008 Tim Waugh <twaugh@redhat.com> 2.8.1-20
2527e6
- Converted spec file to UTF-8 (bug #225696).
2527e6
- Fixed summary (bug #225696).
2527e6
- Fixed PreReq (bug #225696).
2527e6
- Removed Prefix (bug #225696).
2527e6
- Fixed build root (bug #225696).
2527e6
- Avoid %%makeinstall (bug #225696).
2527e6
- Fixed license tag (bug #225696).
2527e6
2527e6
* Tue Nov  6 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-19
2527e6
- Rebuilt.
2527e6
2527e6
* Tue Nov  6 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-18
2527e6
- Fixed multibyte speed improvement patch (bug #363831).
2527e6
2527e6
* Tue Aug 14 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-17
2527e6
- Multibyte speed improvement (bug #252117).
2527e6
2527e6
* Mon Jan 22 2007 Tim Waugh <twaugh@redhat.com> 2.8.1-16
2527e6
- Make scriptlet unconditionally succeed (bug #223683).
2527e6
2527e6
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2.2
2527e6
- rebuild
2527e6
2527e6
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2.1
2527e6
- bump again for double-long bug on ppc(64)
2527e6
2527e6
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.8.1-15.2
2527e6
- rebuilt for new gcc4.1 snapshot and glibc changes
2527e6
2527e6
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
2527e6
- rebuilt
2527e6
2527e6
* Wed Apr  6 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-15
2527e6
- Fixed sdiff exit code handling (bug #152967).
2527e6
2527e6
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-14
2527e6
- Rebuild for new GCC.
2527e6
2527e6
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 2.8.1-13
2527e6
- Rebuilt.
2527e6
2527e6
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
2527e6
- rebuilt
2527e6
2527e6
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
2527e6
- rebuilt
2527e6
2527e6
* Thu Jan  8 2004 Tim Waugh <twaugh@redhat.com> 2.8.1-10
2527e6
- Fix mistaken use of '|' instead of '||'.
2527e6
2527e6
* Sat Oct 25 2003 Tim Waugh <twaugh@redhat.com> 2.8.1-9
2527e6
- Rebuilt.
2527e6
2527e6
* Tue Jun 17 2003 Tim Waugh <twaugh@redhat.com> 2.8.1-8
2527e6
- Rebuilt.
2527e6
2527e6
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
2527e6
- rebuilt
2527e6
2527e6
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
2527e6
- rebuilt
2527e6
2527e6
* Tue Nov 19 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-5
2527e6
- i18n patch.
2527e6
2527e6
* Tue Oct 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-4
2527e6
- Ship translations.
2527e6
2527e6
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
2527e6
- automated rebuild
2527e6
2527e6
* Thu May 23 2002 Tim Powers <timp@redhat.com>
2527e6
- automated rebuild
2527e6
2527e6
* Mon Apr 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-1
2527e6
- 2.8.1.
2527e6
- No longer need immunix-owl-tmp patch.
2527e6
2527e6
* Wed Feb 27 2002 Tim Waugh <twaugh@redhat.com> 2.7.2-5
2527e6
- Rebuild in new environment.
2527e6
2527e6
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
2527e6
- automated rebuild
2527e6
2527e6
* Fri Nov 02 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-3
2527e6
- Make sure %%post scriplet doesn't fail if --excludedocs is used.
2527e6
2527e6
* Fri Jun 01 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-2
2527e6
- Install diff.1, since it's no longer in man-pages.
2527e6
2527e6
* Fri Mar 30 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-1
2527e6
- 2.7.2.
2527e6
2527e6
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
2527e6
- automatic rebuild
2527e6
2527e6
* Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com>
2527e6
- fix %%changelog entries (escape them)
2527e6
- update source location
2527e6
- remove manual stripping
2527e6
- add URL
2527e6
2527e6
* Tue Jun 06 2000 Than Ngo <than@redhat.de>
2527e6
- add %%defattr
2527e6
- use rpm macros
2527e6
2527e6
* Wed May 31 2000 Ngo Than <than@redhat.de>
2527e6
- put man pages and info files in correct place
2527e6
- cleanup specfile
2527e6
2527e6
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
2527e6
- rebuild to gzip man pages.
2527e6
2527e6
* Mon Apr 19 1999 Jeff Johnson <jbj@redhat.com>
2527e6
- man pages not in %%files.
2527e6
- but avoid conflict for diff.1
2527e6
2527e6
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
2527e6
- auto rebuild in the new build environment (release 14)
2527e6
2527e6
* Sun Mar 14 1999 Jeff Johnson <jbj@redhat.com>
2527e6
- add man pages (#831).
2527e6
- add %%configure and Prefix.
2527e6
2527e6
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
2527e6
- build for glibc 2.1
2527e6
2527e6
* Tue Jul 14 1998 Bill Kawakami <billk@home.com>
2527e6
- included the four man pages stolen from Slackware
2527e6
2527e6
* Tue May 05 1998 Prospector System <bugs@redhat.com>
2527e6
- translations modified for de, fr, tr
2527e6
2527e6
* Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
2527e6
- fixed spec file to reference/use the $RPM_BUILD_ROOT always
2527e6
    
2527e6
* Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com>
2527e6
- fixed where it looks for 'pr' (/usr/bin, rather than /bin)
2527e6
2527e6
* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
2527e6
- added BuildRoot
2527e6
2527e6
* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
2527e6
- uses install-info
2527e6
2527e6
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
2527e6
- built against glibc