# # spec file for package patch # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Url: http://ftp.gnu.org/gnu/patch/ Name: patch # 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 Version: 2.7.1 Release: 0 Summary: GNU patch License: GPL-3.0+ Group: Productivity/Text/Utilities Source: http://ftp.gnu.org/gnu/patch/patch-%version.tar.bz2 Patch: error-report-crash.patch Patch1: reject-print-function-01-drop-useless-test.patch Patch2: reject-print-function-02-handle-unified-format.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The GNU patch program is used to apply diffs between original and changed files (generated by the diff command) to the original files. Authors: -------- Larry Wall Paul Eggert %prep %setup -q %patch -p1 %patch1 -p1 %patch2 -p1 %build export CFLAGS="$RPM_OPT_FLAGS -Wall -O2 -pipe" %configure --prefix=%{_prefix} make %{?_smp_mflags} %{verbose:V=1}; %check make check %{verbose:V=1} %install make install DESTDIR=$RPM_BUILD_ROOT %{verbose:V=1} %files %defattr(-,root,root) %doc NEWS README /usr/bin/patch %doc %{_mandir}/man1/patch.1.gz %changelog