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
|
|
|
#
|
2012-08-07 09:30:43 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2006-12-19 00:17:23 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-04-02 18:49:52 +02:00
|
|
|
Url: ftp://alpha.gnu.org/gnu/diffutils/
|
2012-04-04 19:17:36 +02:00
|
|
|
%define hash -31a7
|
2008-04-24 01:49:14 +02:00
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
Name: patch
|
2011-04-04 17:31:57 +02:00
|
|
|
# See bnc#662957. The fix for CVE-2010-4651 breaks the way interdiff was
|
|
|
|
# invoking patch, so interdiff had to be fixed too.
|
2011-04-04 15:15:18 +02:00
|
|
|
Conflicts: patchutils < 0.3.2
|
2012-04-04 19:17:36 +02:00
|
|
|
Version: 2.6.1.136
|
2012-08-07 09:30:43 +02:00
|
|
|
Release: 0
|
2007-11-02 10:40:24 +01:00
|
|
|
Summary: GNU patch
|
2012-08-07 09:30:43 +02:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2012-04-05 10:25:04 +02:00
|
|
|
Source: ftp://alpha.gnu.org/gnu/patch/patch-%version%hash.tar.bz2
|
2012-04-06 14:24:18 +02:00
|
|
|
Patch1: patch-revert-e0f70752.patch
|
2012-08-07 09:30:43 +02:00
|
|
|
Patch2: patch-stdio.in.patch
|
2007-11-02 10:40:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Larry Wall
|
|
|
|
Paul Eggert
|
|
|
|
|
|
|
|
%prep
|
2010-05-05 22:51:18 +02:00
|
|
|
%setup -q -n patch-%version%hash
|
2012-04-06 14:24:18 +02:00
|
|
|
%patch1 -p1
|
2012-08-07 09:30:43 +02:00
|
|
|
%patch2 -p1
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-05 17:23:39 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall -O2 -pipe"
|
|
|
|
%configure --prefix=%{_prefix}
|
2011-04-04 15:15:18 +02:00
|
|
|
make %{?_smp_mflags} %{verbose:V=1};
|
2009-04-02 18:49:52 +02:00
|
|
|
|
|
|
|
%check
|
2010-05-03 21:39:00 +02:00
|
|
|
make check %{verbose:V=1}
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%install
|
2010-05-03 21:39:00 +02:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT %{verbose:V=1}
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc NEWS README
|
|
|
|
/usr/bin/patch
|
|
|
|
%doc %{_mandir}/man1/patch.1.gz
|
2008-04-24 01:49:14 +02:00
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
%changelog
|