Name: patch
Version: 2.7.6.0.27.7623
Release: alt1
Summary: The GNU patch command, for modifying/upgrading files
License: GPLv3+
Group: Text tools
Url: https://www.gnu.org/software/patch/
Vcs: git://git.altlinux.org/gears/p/patch.git
Source: %name-%version-%release.tar
BuildRequires: gnulib >= 0.1.4078.702cb
# for extended attribute copying support
BuildRequires: libattr-devel
# Note that patch --ed required ed(1).
%{?!_without_check:%{?!_disable_check:BuildRequires: ed}}
%description
The patch program applies diff files to originals. The diff command
is used to compare an original to a changed file. Diff lists the
changes made to the file. A person who has the original file can then
use the patch command with the diff file to add the changes to their
original file (patching the file).
%prep
%setup -n %name-%version-%release
echo -n %version > .tarball-version
%build
./bootstrap --skip-po --gnulib-srcdir=%_datadir/gnulib
# Since patch is not a threaded executable,
# configure gnulib with --disable-threads.
# This is not just a harmless optimization that saves a few cycles
# but also a workaround that fixes GNU ld errors on ppc64le reported by
# eu-elflint --gnu-ld /usr/bin/patch
%configure --disable-silent-rules --disable-threads
%make_build
%install
%makeinstall_std
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
%check
%make_build -k check VERBOSE=1
%files
%_bindir/*
%_man1dir/*
%doc AUTHORS NEWS README
%changelog
* Mon Apr 12 2021 Dmitry V. Levin <ldv@altlinux.org> 2.7.6.0.27.7623-alt1
- patch: v2.7.6-24-g76e7758 -> v2.7.6-27-g7623b2d.
- gnulib BR: v0.1-2305-g95c96b6dd -> v0.1-4078-g702cba00f.
* Sat Nov 02 2019 Dmitry V. Levin <ldv@altlinux.org> 2.7.6.0.24.76e7-alt1
- patch: v2.7.6-17-g9c98635 -> v2.7.6-24-g76e7758.
- spec: added VCS tag.
* Wed Dec 26 2018 Dmitry V. Levin <ldv@altlinux.org> 2.7.6.0.17.9c98-alt1
- patch:
+ v2.7.6-15-g369dccc -> v2.7.6-17-g9c98635 (fixes: CVE-2018-6952);
+ Fix error handling with git-style patches (by Lubomir Rintel).
- gnulib: v0.1-1209-g24b3216 -> v0.1-2305-g95c96b6dd.
* Mon May 07 2018 Dmitry V. Levin <ldv@altlinux.org> 2.7.6.0.15.369d-alt1
- patch: v2.7.5-17-g817d7d1 -> v2.7.6-15-g369dccc (fixes: CVE-2018-1000156).
* Tue Mar 21 2017 Dmitry V. Levin <ldv@altlinux.org> 2.7.5.0.17.817d-alt1
- patch: v2.7.5-6-g3270d22 -> v2.7.5-17-g817d7d1.
- gnulib: v0.1-585-g2fda85e -> v0.1-1209-g24b3216.
* Sat Oct 03 2015 Dmitry V. Levin <ldv@altlinux.org> 2.7.5.0.6.3270-alt1
- Updated to v2.7.5-6-g3270d22.
- Built with gnulib v0.1-585-g2fda85e.
* Mon Oct 28 2013 Dmitry V. Levin <ldv@altlinux.org> 2.7.1-alt4
- Updated to v2.7.1-9-ga2f4bfe.
- Built with gnulib v0.0-8061-g5191b35.
* Sun Apr 07 2013 Dmitry V. Levin <ldv@altlinux.org> 2.7.1-alt3
- Updated to v2.7.1-4-g2f40ef6.
- Built with gnulib v0.0-7901-g076ac82.
* Thu Feb 14 2013 Dmitry V. Levin <ldv@altlinux.org> 2.7.1-alt2
- Updated to v2.7.1-3-g082baa3 (closes: #28556).
* Sun Sep 30 2012 Dmitry V. Levin <ldv@altlinux.org> 2.7.1-alt1
- Updated to v2.7.1-1-g47191c2.
* Wed Sep 26 2012 Dmitry V. Levin <ldv@altlinux.org> 2.7-alt4
- Updated to v2.7-24-ge8bfce6.
* Tue Sep 25 2012 Dmitry V. Levin <ldv@altlinux.org> 2.7-alt3
- Updated to v2.7-23-g1d9ed51.
* Sun Sep 23 2012 Dmitry V. Levin <ldv@altlinux.org> 2.7-alt2
- Updated to v2.7-21-g89e5f70 (closes: #27076).
* Wed Sep 12 2012 Dmitry V. Levin <ldv@altlinux.org> 2.7-alt1
- Updated to v2.7.
* Wed Aug 08 2012 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt8
- Updated to v2.6.1-187-g9a37354 to fix another
git-style diff concatenation regression.
* Fri Aug 03 2012 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt7
- Updated patch to v2.6.1-181-g1e6c0d0 (closes: #27359).
- Built with gnulib v0.0-7557-gee60576.
* Tue Apr 24 2012 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt6
- Updated patch to v2.6.1-170-g90d4e1f.
* Fri Apr 20 2012 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt5
- Updated patch to v2.6.1-169-g709688a.
- Built with gnulib v0.0-7312-g7995834.
* Thu Oct 13 2011 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt4
- Updated patch to v2.6.1-148-g17086c5.
- Updated gnulib to v0.0-6453-g6a4c64c.
- Enabled extended attribute copying support.
* Sat Feb 12 2011 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt3
- Updated patch to v2.6.1-112-g3fc5b24.
- Updated gnulib to v0.0-4800-ga036b76.
- Applied fixes from Jim Meyering, including fixes for regressions
introduced in previous release.
* Fri Feb 04 2011 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt2
- Updated to v2.6.1-110-g4c3004c (fixes CVE-2010-4651).
* Fri Jun 18 2010 Dmitry V. Levin <ldv@altlinux.org> 2.6.1-alt1
- Updated to v2.6.1-85-g423d17d (closes: #23463).
- Rnabled test suite.
* Sat Apr 14 2007 Dmitry V. Levin <ldv@altlinux.org> 2.5.9-alt3
- Uncompressed tarball.
* Wed Oct 26 2005 Dmitry V. Levin <ldv@altlinux.org> 2.5.9-alt2
- Corrected URLs.
- Reviewed and rediffed patches.
- Applied upstream fix for CR handling bug.
- Applied SuSE patch to prevent previously created
backup files from being overwritten.
- Additional convention enforcement on patch file names.
* Sun Aug 28 2005 Mikhail Zabaluev <mhz@altlinux.ru> 2.5.9-alt1
- Updated to 2.5.9 (taken from Mandrake)
- Updated some patches, retired others
- Retired the ifdef patch because the bug it fixed is gone
* Thu Oct 24 2002 Stanislav Ievlev <inger@altlinux.ru> 2.5.4-ipl10mdk
- rebuild with gcc3
- added alt-noerror and rh-ifdef patches
* Mon Mar 04 2002 Stanislav Ievlev <inger@altlinux.ru> 2.5.4-ipl9mdk
- Rebuilt
* Sat Dec 16 2000 Dmitry V. Levin <ldv@fandra.org> 2.5.4-ipl8mdk
- Merged RH patches:
+ fflush(stderr) before asking quiestions;
+ use .orig as default suffix.
* Wed Jul 26 2000 Dmitry V. Levin <ldv@fandra.org> 2.5.4-ipl7mdk
- RE adaptions.
* Tue Jul 25 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.5.4-7mdk
- Fix possible sigsev (deb).
- By default create empty backup files as readable.
* Tue Jul 25 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.5.4-6mdk
- really move the strip (titiscks)
- BM
* Tue Jul 11 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.5.4-5mdk
- add alpha for largefile
- remove binaries stripping & {info,man}-pages compression because of
spec-helper
- Stefan van der Eijk <s.vandereijk@chello.nl> :
* makeinstall macro
* macroszifications
* Sun Apr 02 2000 Adam Lebsack <adam@mandrakesoft.com> 2.5.4-4mdk
- Fixed powerpc by adding -D_GNU_SOURCE flag.
* Mon Jan 17 2000 Francis Galiegue <francis@mandrakesoft.com>
- No large file support for sparc - now done from ./configure
* Sun Nov 7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- build release.
* Wed Sep 08 1999 Thierry Vignaud <tvignaud@mandrakesoft.com>
- 2.5.4
* Fri Aug 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- 2.5.3
* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions
* Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
- (ultra?) sparc was getting large file system support.
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 7)
* Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
- build against glibc 2.1
* Tue Sep 1 1998 Jeff Johnson <jbj@redhat.com>
- bump release to preserve newer than back-ported 4.2.
* Tue Jun 09 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr
* Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
- Fix for problem #682 segfault.
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Tue Apr 07 1998 Cristian Gafton <gafton@redhat.com>
- added buildroot
* Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com>
- updated to 2.5
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc