summaryrefslogtreecommitdiff
path: root/patchelf.spec
blob: 4ea12c00a6d4a301fe14b084fffd83ebf9f56b8b (plain)
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
47
48
49
50
51
52
53
54
55
Name:           patchelf
Version:        0.18.0
Release:        1
Summary:        A utility for patching ELF binaries

License:        GPL-3.0
URL:            http://nixos.org/patchelf.html
Source0:        https://github.com/NixOS/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  gcc gcc-c++ make autoconf automake coreutils libacl-devel libattr-devel

%description
PatchELF is a simple utility for modifying an existing ELF executable
or library.  It can change the dynamic loader ("ELF interpreter")
of an executable and change the RPATH of an executable or library.


%prep
%autosetup
# package ships elf.h - delete to use glibc-headers one
%{__rm} -f src/elf.h


%build
bash ./bootstrap.sh
%configure
%make_build


%check
make check


%install
%make_install

rm -rf %{buildroot}/usr/share/doc/%{name}


%files
%license COPYING
%doc README.md
%{_bindir}/patchelf
%{_mandir}/man1/patchelf.1*
/usr/share/zsh/site-functions/_patchelf

%changelog
* Jan Oct 02 2023 wangsuyu <1395168068@qq.com> - 0.18.0
- update to 0.18.0

* Fri Dec 30 2022 liyuxiang <liyuxiang@ncti-gba.cn> - 0.16.0-1
- update to 0.16.0 to fix CVE-2022-44940 

* Tue Nov 23 2021 konglidong <konglidong@uniontech.com> - 0.13-1
- package init