cvsdist f236e9b
Summary: The GNU patch command, for modifying/upgrading files.
cvsdist f236e9b
Name: patch
cvsdist f236e9b
Version: 2.5.4
b0aad10
Release: 24
cvsdist 0761d22
License: GPL
cvsdist f236e9b
URL: http://www.gnu.org/software/patch/patch.html
cvsdist f236e9b
Group: Development/Tools
cvsdist f236e9b
Source: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.gz
cvsdist f236e9b
Patch1: patch-2.5-stderr.patch
cvsdist 95e0480
Patch2: patch-2.5.4-suffix.patch
cvsdist 191b24e
Patch3: patch-2.5.4-sigsegv.patch
cvsdist 0761d22
Patch4: patch-2.5.4-ifdef.patch
cvsdist c9808c3
Patch5: patch-2.5.4-program_name.patch
d4ef45f
Patch6: patch-stripcr.patch
cvsdist f236e9b
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist f236e9b
cvsdist f236e9b
%description
cvsdist f236e9b
The patch program applies diff files to originals.  The diff command
cvsdist f236e9b
is used to compare an original to a changed file.  Diff lists the
cvsdist f236e9b
changes made to the file.  A person who has the original file can then
cvsdist f236e9b
use the patch command with the diff file to add the changes to their
cvsdist f236e9b
original file (patching the file).
cvsdist f236e9b
cvsdist f236e9b
Patch should be installed because it is a common way of upgrading
cvsdist f236e9b
applications.
cvsdist f236e9b
cvsdist f236e9b
%prep
cvsdist f236e9b
%setup -q
cvsdist f236e9b
%patch1 -p1 -b .stderr
cvsdist 95e0480
%patch2 -p1 -b .suffix
cvsdist 191b24e
%patch3 -p1 -b .sigsegv
cvsdist 0761d22
%patch4 -p1 -b .ifdef
cvsdist c9808c3
%patch5 -p1 -b .program_name
d4ef45f
%patch6 -p1 -b .stripcr
cvsdist f236e9b
cvsdist f236e9b
%build
cvsdist 95e0480
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
cvsdist f236e9b
%configure
cvsdist f236e9b
cvsdist f236e9b
# XXX unset CPPFLAGS on (ultra?)sparc to avoid large file system support
cvsdist f236e9b
%ifarch sparc sparc64
cvsdist f236e9b
make CPPFLAGS=""
cvsdist f236e9b
%else
cvsdist f236e9b
make
cvsdist f236e9b
%endif
cvsdist f236e9b
cvsdist f236e9b
%install
cvsdist f236e9b
rm -rf $RPM_BUILD_ROOT
cvsdist f236e9b
%makeinstall
cvsdist f236e9b
cvsdist f236e9b
%clean
cvsdist f236e9b
rm -rf $RPM_BUILD_ROOT
cvsdist f236e9b
cvsdist f236e9b
%files
cvsdist f236e9b
%defattr(-,root,root)
cvsdist f236e9b
%doc NEWS README
cvsdist f236e9b
/usr/bin/*
cvsdist f236e9b
%{_mandir}/*/*
cvsdist f236e9b
cvsdist f236e9b
%changelog
d4ef45f
* Thu Aug 11 2005 Tim Waugh <twaugh@redhat.com>
d4ef45f
- Fixed CRLF detection (bug #154283).
d4ef45f
b0aad10
* Wed May  4 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-24
b0aad10
- Reverted last change (bug #154283, bug #156762).
b0aad10
7599689
* Fri Apr 29 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-23
7599689
- Applied patch from Toshio Kuratomi to avoid problems with DOS-format
7599689
  newlines (bug #154283).
7599689
2b9a57c
* Wed Mar  2 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-22
2b9a57c
- Rebuild for new GCC.
2b9a57c
8cf7251
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-21
8cf7251
- Rebuilt.
8cf7251
cvsdist fc21f47
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist fc21f47
- rebuilt
cvsdist fc21f47
cvsdist 643796e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 643796e
- rebuilt
cvsdist 643796e
cvsdist d808249
* Sat Oct 25 2003 Tim Waugh <twaugh@redhat.com> 2.5.4-18
cvsdist d808249
- Rebuilt.
cvsdist d808249
cvsdist d808249
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist d808249
- rebuilt
cvsdist d808249
cvsdist 0a05e9a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 0a05e9a
- rebuilt
cvsdist 0a05e9a
cvsdist 0a05e9a
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
cvsdist 0a05e9a
- rebuilt in current collinst
cvsdist 0a05e9a
cvsdist b102f83
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist b102f83
- automated rebuild
cvsdist b102f83
cvsdist 21567e6
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 21567e6
- automated rebuild
cvsdist 21567e6
cvsdist c9808c3
* Tue Apr  9 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-12
cvsdist c9808c3
- Fix error reporting when given bad options (bug #62981).
cvsdist c9808c3
cvsdist 0761d22
* Tue Mar  5 2002 Tim Waugh <twaugh@redhat.com> 2.5.4-11
cvsdist 0761d22
- s/Copyright:/License:/.
cvsdist 0761d22
- Fix -D behaviour (bug #60688).
cvsdist 0761d22
cvsdist 0761d22
* Tue May 29 2001 Tim Waugh <twaugh@redhat.com> 2.5.4-10
cvsdist 191b24e
- Merge Mandrake patch:
cvsdist 191b24e
  - fix possible segfault
cvsdist 191b24e
cvsdist 95e0480
* Fri Dec  1 2000 Tim Waugh <twaugh@redhat.com>
cvsdist 95e0480
- Rebuild because of fileutils bug.
cvsdist 95e0480
cvsdist 95e0480
* Thu Nov  2 2000 Tim Waugh <twaugh@redhat.com>
cvsdist 95e0480
- use .orig as default suffix, as per man page and previous behaviour
cvsdist 95e0480
  (bug #20202).
cvsdist 95e0480
- use better patch for this, from maintainer.
cvsdist 95e0480
cvsdist 95e0480
* Wed Oct  4 2000 Tim Waugh <twaugh@redhat.com>
cvsdist 95e0480
- actually use the RPM_OPT_FLAGS
cvsdist 95e0480
cvsdist f236e9b
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist f236e9b
- automatic rebuild
cvsdist f236e9b
cvsdist f236e9b
* Tue Jun 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist f236e9b
- Use %%makeinstall, %%{_tmppath} and %%{_mandir}
cvsdist f236e9b
cvsdist f236e9b
* Fri May 12 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist f236e9b
- added URL
cvsdist f236e9b
cvsdist f236e9b
* Wed Feb 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist f236e9b
- 2.5.4
cvsdist f236e9b
- Fix up LFS support on Alpha (Bug #5732)
cvsdist f236e9b
cvsdist f236e9b
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
cvsdist f236e9b
- handle compressed manpages
cvsdist f236e9b
cvsdist f236e9b
* Sun Jun 06 1999 Alan Cox <alan@redhat.com>
cvsdist f236e9b
- Fix the case where stderr isnt flushed for ask(). Now the 'no such file'
cvsdist f236e9b
  appears before the skip patch question, not at the very end, Doh!
cvsdist f236e9b
cvsdist f236e9b
* Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
cvsdist f236e9b
- (ultra?) sparc was getting large file system support.
cvsdist f236e9b
cvsdist f236e9b
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist f236e9b
- auto rebuild in the new build environment (release 7)
cvsdist f236e9b
cvsdist f236e9b
* Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
cvsdist f236e9b
- build against glibc 2.1
cvsdist f236e9b
cvsdist f236e9b
* Tue Sep  1 1998 Jeff Johnson <jbj@redhat.com>
cvsdist f236e9b
- bump release to preserve newer than back-ported 4.2.
cvsdist f236e9b
cvsdist f236e9b
* Tue Jun 09 1998 Prospector System <bugs@redhat.com>
cvsdist f236e9b
- translations modified for de, fr
cvsdist f236e9b
cvsdist f236e9b
* Tue Jun  9 1998 Jeff Johnson <jbj@redhat.com>
cvsdist f236e9b
- Fix for problem #682 segfault.
cvsdist f236e9b
cvsdist f236e9b
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
cvsdist f236e9b
- translations modified for de, fr, tr
cvsdist f236e9b
cvsdist f236e9b
* Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
cvsdist f236e9b
- added buildroot
cvsdist f236e9b
cvsdist f236e9b
* Wed Oct 21 1997 Cristian Gafton <gafton@redhat.com>
cvsdist f236e9b
- updated to 2.5
cvsdist f236e9b
cvsdist f236e9b
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
cvsdist f236e9b
- built against glibc