2006-12-19 00:17:23 +01:00
|
|
|
#
|
2011-04-07 10:07:32 +02:00
|
|
|
# spec file for package patch
|
2006-12-19 00:17:23 +01:00
|
|
|
#
|
2022-05-10 18:59:21 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2006-12-19 00:17:23 +01:00
|
|
|
#
|
2009-02-04 00:18:23 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-09-30 15:02:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:23 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
Name: patch
|
2018-02-14 11:52:50 +01:00
|
|
|
Version: 2.7.6
|
2012-08-07 09:30:43 +02:00
|
|
|
Release: 0
|
2007-11-02 10:40:24 +01:00
|
|
|
Summary: GNU patch
|
2021-09-30 15:02:32 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-08-07 09:30:43 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2021-09-30 15:02:32 +02:00
|
|
|
URL: http://ftp.gnu.org/gnu/patch/
|
2015-03-07 10:46:19 +01:00
|
|
|
Source: http://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.xz
|
|
|
|
Source2: http://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.xz.sig
|
2015-01-26 20:44:12 +01:00
|
|
|
Source3: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=patch&download=1#/patch.keyring
|
2018-03-21 16:47:14 +01:00
|
|
|
Patch1: fix-segfault-mangled-rename.patch
|
2018-04-18 10:58:17 +02:00
|
|
|
Patch2: ed-style-01-missing-input-files.patch
|
|
|
|
Patch3: ed-style-02-fix-arbitrary-command-execution.patch
|
|
|
|
Patch4: ed-style-03-update-test-Makefile.patch
|
|
|
|
Patch5: ed-style-04-invoke-ed-directly.patch
|
|
|
|
Patch6: ed-style-05-minor-cleanups.patch
|
|
|
|
Patch7: ed-style-06-fix-test-failure.patch
|
2018-05-09 11:53:49 +02:00
|
|
|
Patch8: ed-style-07-dont-leak-tmp-file.patch
|
|
|
|
Patch9: ed-style-08-dont-leak-tmp-file-multi.patch
|
2022-05-10 18:59:21 +02:00
|
|
|
Patch10: fix-swapping-fake-lines-in-pch_swap.patch
|
|
|
|
Patch11: abort-when-cleaning-up-fails.patch
|
|
|
|
Patch12: dont-follow-symlinks-unless-asked.patch
|
|
|
|
Patch13: pass-the-correct-stat-to-backup-files.patch
|
2015-01-26 20:44:12 +01:00
|
|
|
# See bnc#662957. The fix for CVE-2010-4651 breaks the way interdiff was
|
|
|
|
# invoking patch, so interdiff had to be fixed too.
|
|
|
|
Conflicts: patchutils < 0.3.2
|
2018-04-18 11:18:05 +02:00
|
|
|
BuildRequires: ed
|
2018-02-14 11:52:50 +01:00
|
|
|
%if 0%{?suse_version} < 1220
|
|
|
|
BuildRequires: xz
|
|
|
|
%endif
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The GNU patch program is used to apply diffs between original and
|
|
|
|
changed files (generated by the diff command) to the original files.
|
|
|
|
|
|
|
|
%prep
|
- Version 2.7.1
+ Patch no longer gets a failed assertion for certain mangled
patches.
+ Ignore destination file names that are absolute or that contain
a component of "..", except when working in the root directory.
This addresses CVE-2010-4651.
+ Support for most features of the "diff --git" format, including
renames and copies, permission changes, and symlink diffs.
Binary diffs are not supported yet; patch will complain and
skip them.
+ Support for double-quoted filenames: when a filename starts
with a double quote, it is interpreted as a C string literal.
The escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v, and
\ooo (a three-digit octal number between 0 and 255) are
recognized.
+ Refuse to apply a normal patch to a symlink. (Previous versions
of patch were replacing the symlink with a regular file.)
+ New --follow-symlinks option to allow to treat symlinks as
files: this was patch's behavior before version 2.7.
+ When trying to modify a read-only file, warn about the
potential problem by default. The --read-only command line
option allows to change this behavior.
+ Files to be deleted are deleted once the entire input has been
processed, not immediately. This fixes a bug with numbered
backup files.
+ When a timestamp specifies a time zone, honor that instead of
assuming the local time zone (--set-date) or Universal
Coordinated Time (--set-utc).
+ Support for nanosecond precision timestamps.
+ Many bug fixes.
+ Clarify the message printed when a patch is expected to empty
out and delete a file, but the file does not become empty.
+ Various improvements to messages when applying a patch to a
file of different type (regular file vs. symlink), when there
are line ending differences (LF vs. CRLF), and when in
--dry-run mode.
+ Ignore when extended attributes cannot be preserved because
they are unsupported or because permission to set them is
denied.
- patch-revert-e0f70752.patch: Dropped, original bug fixed
upstream.
- patch-stdio.in.patch: Dropped, merged upstream.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/patch?expand=0&rev=35
2012-12-06 15:43:28 +01:00
|
|
|
%setup -q
|
2018-03-21 16:47:14 +01:00
|
|
|
%patch1 -p1
|
2018-04-18 10:58:17 +02:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2018-05-09 11:53:49 +02:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2022-05-10 18:59:21 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%build
|
2015-01-26 20:44:12 +01:00
|
|
|
export CFLAGS="%{optflags} -Wall -O2 -pipe"
|
|
|
|
%configure
|
2021-09-30 15:02:32 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-04-02 18:49:52 +02:00
|
|
|
|
|
|
|
%check
|
2021-09-30 15:02:32 +02:00
|
|
|
make %{?_smp_mflags} check
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%install
|
2021-09-30 15:02:32 +02:00
|
|
|
make install DESTDIR=%{buildroot}
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%files
|
2018-03-22 09:44:22 +01:00
|
|
|
%doc AUTHORS NEWS README
|
|
|
|
%license COPYING
|
2015-01-26 20:44:12 +01:00
|
|
|
%{_bindir}/patch
|
2018-02-14 11:52:50 +01:00
|
|
|
%{_mandir}/man1/patch.1%{ext_man}
|
2008-04-24 01:49:14 +02:00
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
%changelog
|