!1 package init
From: @konglidong Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
30cbf0b112
BIN
patchelf-0.13.tar.gz
Normal file
BIN
patchelf-0.13.tar.gz
Normal file
Binary file not shown.
49
patchelf.spec
Normal file
49
patchelf.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Name: patchelf
|
||||||
|
Version: 0.13
|
||||||
|
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
|
||||||
|
* Tue Nov 23 2021 konglidong <konglidong@uniontech.com> - 0.13-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user