-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch.spec
More file actions
46 lines (39 loc) · 1.25 KB
/
patch.spec
File metadata and controls
46 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Summary: The GNU patch command, for modifying/upgrading files
Name: patch
Version: 2.8
Release: 1
License: GPLv3
Group: Text tools
Url: https://www.gnu.org/directory/GNU/patch.html
Source0: https://ftp.gnu.org/pub/gnu/patch/%{name}-%{version}.tar.xz
#Patch1: patch-2.6-stderr.patch
#Patch2: patch-2.6-fix-str-fmt.patch
#Patch3: patch-2.7.6-check-for-__builtin_mul_overflow_p.patch
# debian patches:
#Patch103: lenny-options.diff
BuildRequires: attr-devel
%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).
Patch should be installed because it is a common way of upgrading
applications.
%prep
%autosetup -p1
%build
# (tpg) fix error
# make[2]: Leaving directory '/builddir/build/BUILD/patch-2.7.6/src'
# /tmp/lto-llvm-e141f0.o:ld-temp.o:function compute_bucket_size: error: undefined reference to '__muloti4'
%ifnarch riscv64
%global optflags %{optflags} --rtlib=compiler-rt
%endif
%configure
%make_build
%install
%make_install
%files
%doc NEWS README AUTHORS ChangeLog
%{_bindir}/*
%{_mandir}/man1/*