diff --git a/patchelf-0.16.0.tar.gz b/patchelf-0.16.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f131c90c2060f244fa0ef89fcb7bdb2ffff5a2d Binary files /dev/null and b/patchelf-0.16.0.tar.gz differ diff --git a/patchelf.spec b/patchelf.spec new file mode 100644 index 0000000000000000000000000000000000000000..6550182c686497783a4a3fb9090e01d834879aa9 --- /dev/null +++ b/patchelf.spec @@ -0,0 +1,52 @@ +Name: patchelf +Version: 0.16.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* + + +%changelog +* Fri Dec 30 2022 liyuxiang - 0.16.0-1 +- Update to 0.16.0 to fix CVE-2022-44940 + +* Tue Nov 23 2021 konglidong - 0.13-1 +- package init