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