From e0d25e427e14d8fbb4ce75ef40bb8d0278e0d9d6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 1 Oct 2023 16:40:03 +0000 Subject: automatic import of patchelf --- .gitignore | 1 + patchelf.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 patchelf.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0c5b8f6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/patchelf-0.18.0.tar.gz diff --git a/patchelf.spec b/patchelf.spec new file mode 100644 index 0000000..2b01ee0 --- /dev/null +++ b/patchelf.spec @@ -0,0 +1,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* + + +%changelog +* Sun Oct 02 2023 wangsuyu <1395168068@qq.com> - 0.18.0 +- update to 0.18.0 + +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..afa8bf7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +39be87713c18bfb3b2d27f4b23e28a18 patchelf-0.18.0.tar.gz -- cgit v1.2.3