2006-12-19 00:17:23 +01:00
|
|
|
#
|
2010-02-04 09:11:00 +01:00
|
|
|
# spec file for package patch (Version 2.6.1.9)
|
2006-12-19 00:17:23 +01:00
|
|
|
#
|
2010-01-08 17:31:55 +01:00
|
|
|
# Copyright (c) 2010 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
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-04-02 18:49:52 +02:00
|
|
|
Url: ftp://alpha.gnu.org/gnu/diffutils/
|
- Version 2.6.1.64:
+ Support for most features of the "diff --git" format: renames
and copies, permission changes, symlink diffs. (Binary diffs
are not supported yet; patch will complain and skip them.)
+ Support for double-quoted filenames: when a filename in a
context diff 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 patch read-only files by default, or at least warn
when patching such files with --force or --batch.
+ Refuse to apply a normal patch to a symlink. (Previous
versions of patch were wrongly replacing the symlink with a
regular file.)
+ 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 portability and bug fixes.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/patch?expand=0&rev=14
2010-05-02 14:11:50 +02:00
|
|
|
%define ver 2.6.1.64-4762
|
2008-04-24 01:49:14 +02:00
|
|
|
|
2007-11-02 10:40:24 +01:00
|
|
|
Name: patch
|
2009-12-21 14:32:32 +01:00
|
|
|
License: GPLv3+
|
2007-11-02 10:40:24 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
|
|
|
AutoReqProv: on
|
- Version 2.6.1.64:
+ Support for most features of the "diff --git" format: renames
and copies, permission changes, symlink diffs. (Binary diffs
are not supported yet; patch will complain and skip them.)
+ Support for double-quoted filenames: when a filename in a
context diff 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 patch read-only files by default, or at least warn
when patching such files with --force or --batch.
+ Refuse to apply a normal patch to a symlink. (Previous
versions of patch were wrongly replacing the symlink with a
regular file.)
+ 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 portability and bug fixes.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/patch?expand=0&rev=14
2010-05-02 14:11:50 +02:00
|
|
|
Version: 2.6.1.64
|
2009-04-02 18:49:52 +02:00
|
|
|
Release: 1
|
2007-11-02 10:40:24 +01:00
|
|
|
Summary: GNU patch
|
2009-06-20 05:11:45 +02:00
|
|
|
Source: ftp://alpha.gnu.org/gnu/patch/patch-%ver.tar.bz2
|
2009-10-03 03:35:36 +02:00
|
|
|
Patch: unified-reject-files-compat.diff
|
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-02-04 09:11:00 +01:00
|
|
|
%setup -q -n patch-%ver
|
2009-10-03 03:35:36 +02:00
|
|
|
%patch -p1
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%build
|
2009-04-02 18:49:52 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -Wall -O2 -pipe" \
|
|
|
|
./configure --prefix=%{_prefix}
|
2010-05-02 14:41:33 +02:00
|
|
|
make %{?jobs:-j%jobs} %{verbose:V=1};
|
2009-04-02 18:49:52 +02:00
|
|
|
|
|
|
|
%check
|
2010-05-02 14:41:33 +02:00
|
|
|
make check %{verbose:V=1}
|
2006-12-19 00:17:23 +01:00
|
|
|
|
|
|
|
%install
|
2010-05-02 14:41:33 +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
|