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