403790b
Summary: Utility for modifying/upgrading files
cvsdist f236e9b
Name: patch
2ac79d3
Version: 2.6.1
2ac79d3
Release: 1%{?dist}
93a8fe0
License: GPLv2+
cvsdist f236e9b
URL: http://www.gnu.org/software/patch/patch.html
cvsdist f236e9b
Group: Development/Tools
87324b5
Source: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.xz
87324b5
Patch1: patch-2.5.4-sigsegv.patch
87324b5
Patch100: patch-selinux.patch
93a8fe0
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist f236e9b
65d0b3b
BuildRequires: libselinux-devel
2ac79d3
BuildRequires: ed
65d0b3b
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
87324b5
%patch1 -p1 -b .sigsegv
87324b5
%patch100 -p1 -b .selinux
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
f04fe54
make %{?smp_mflags}
cvsdist f236e9b
%endif
cvsdist f236e9b
87324b5
%check
87324b5
make check
87324b5
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
f04fe54
%defattr(-,root,root,-)
cvsdist f236e9b
%doc NEWS README
f04fe54
%{_bindir}/*
cvsdist f236e9b
%{_mandir}/*/*
cvsdist f236e9b
cvsdist f236e9b
%changelog
2ac79d3
* Mon Jan  4 2010 Tim Waugh <twaugh@redhat.com> 2.6.1-1
2ac79d3
- 2.6.1 (bug #551569).  No longer need best-name patch.
2ac79d3
ef6974e
* Thu Dec 24 2009 Tim Waugh <twaugh@redhat.com> 2.6-2
ef6974e
- Applied upstream patch to prevent incorrect filename being chosen
ef6974e
  when adding a new file (bug #549122).
ef6974e
87324b5
* Mon Nov 16 2009 Tim Waugh <twaugh@redhat.com> 2.6-1
87324b5
- 2.6.  No longer need stderr, suffix, stripcr, parse, allow-spaces,
87324b5
  ifdef, program_name, or posix-backup patches.
87324b5
87324b5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-40
87324b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
87324b5
e709900
* Wed Apr 29 2009 Tim Waugh <twaugh@redhat.com> 2.5.4-39
e709900
- Fixed operation when SELinux is disabled (bug #498102).  Patch from
e709900
  Jan Kratochvil.
e709900
1d18fb7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-38
1d18fb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1d18fb7
ffc4fff
* Tue Feb 17 2009 Tim Waugh <twaugh@redhat.com> 2.5.4-37
ffc4fff
- Don't set SELinux file context if it is already correct.
ffc4fff
403790b
* Mon Nov 24 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-36
403790b
- Better summary.
403790b
b4bd8d0
* Mon Jun 30 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-35
b4bd8d0
- Don't fail if setfilecon() returns EPERM (bug #453365), although the
b4bd8d0
  setfilecon man page suggests that ENOTSUP will be returned in this
b4bd8d0
  case.
b4bd8d0
32888bf
* Mon Jun 16 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-34
32888bf
- Only write simple backups for each file once during a run
32888bf
  (bug #234822).
32888bf
638a40a
* Thu Jun 12 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-33
65d0b3b
- Fix selinux patch and apply it.  Build requires libselinux-devel.
638a40a
a1ecfba
* Fri Feb  8 2008 Tim Waugh <twaugh@redhat.com> 2.5.4-32
a1ecfba
- Applied patch from 2.5.9 to allow spaces in filenames (bug #431887).
a1ecfba
f04fe54
* Mon Dec  3 2007 Tim Waugh <twaugh@redhat.com> 2.5.4-31
f04fe54
- Convert spec file to UTF-8 (bug #226233).
f04fe54
- Use _bindir macro in %%files (bug #226233).
f04fe54
- Parallel make (bug #226233).
f04fe54
- Better defattr declaration (bug #226233).
f04fe54
3db4109
* Thu Oct  4 2007 Tim Waugh <twaugh@redhat.com>
3db4109
- Beginnings of an SELinux patch (bug #165799); not applied yet.
3db4109
93a8fe0
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 2.5.4-30
93a8fe0
- Added dist tag.
93a8fe0
- More specific license tag.
93a8fe0
- Fixed summary.
93a8fe0
- Better buildroot tag.
93a8fe0
4672ea6
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-29.2.2
4672ea6
- rebuild
4672ea6
6a52cb1
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-29.2.1
6a52cb1
- bump again for double-long bug on ppc(64)
6a52cb1
a02fb91
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.5.4-29.2
a02fb91
- rebuilt for new gcc4.1 snapshot and glibc changes
a02fb91
93e1689
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
93e1689
- rebuilt
93e1689
4179057
* Thu Sep  8 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-29
4179057
- Remove SELinux patch for now (bug #167822).
3604f6c
156d881
* Wed Sep  7 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-27
3a673ee
- Applied patch from Ulrich Drepper to fix string overread (bug #167675).
156d881
04c1afe
* Tue Sep  6 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-26
212a96f
- Preserve SELinux file contexts (bug #165799).
212a96f
384313a
* Thu Aug 11 2005 Tim Waugh <twaugh@redhat.com> 2.5.4-25
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
f04fe54
* Tue Jun 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist f236e9b
- Use %%makeinstall, %%{_tmppath} and %%{_mandir}
cvsdist f236e9b
f04fe54
* 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