cvsdist f236e9b
Summary: The GNU patch command, for modifying/upgrading files.
cvsdist f236e9b
Name: patch
cvsdist f236e9b
Version: 2.5.4
cvsdist 191b24e
Release: 10
cvsdist f236e9b
Copyright: 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 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 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
cvsdist 191b24e
* Tue May 29 2001 Tim Waugh <twaugh@redhat.com>
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