Пакет patchelf: Specfile

Name: patchelf
Version: 0.18.0
Release: alt1
Summary: A utility for patching ELF binaries

Group: Development/Tools
License: GPLv3+
Url: https://github.com/NixOS/patchelf
# repacked https://github.com/NixOS/patchelf/releases/download/%version/patchelf-%version.tar.gz
Source: %name-%version.tar

# Automatically added by buildreq on Mon Nov 07 2016
# optimized out: libstdc++-devel python-base
BuildRequires: gcc-c++

%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
%setup

# package ships elf.h - delete to use glibc-headers one
rm src/elf.h

%build
%configure
%make_build

%check
rc=0
make check

%install
%makeinstall_std

# the docs get put in a funny place, so delete and include in the
# standard way in the docs section below
rm -rf %buildroot/usr/share/doc/%name

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%files
%doc COPYING README.md
%_bindir/patchelf
%_mandir/man1/patchelf.1*
%_datadir/zsh/site-functions/_patchelf

%changelog
* Tue Jul 18 2023 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.18.0-alt1
- Updated to 0.18.0.

* Mon Apr 17 2023 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.17.2-alt1
- Updated to 0.17.2.

* Thu Jan 20 2022 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.14.3-alt1
- Updated to 0.14.3.

* Sat Mar 27 2021 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.12-alt1
- Updated to 0.12.

* Tue Sep 29 2020 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.11-alt1
- Updated to 0.11.

* Fri Aug 16 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.10-alt1
- Updated to 0.10.

* Sun Jun 24 2018 Igor Vlasenko <viy@altlinux.ru> 0.9-alt3
- NMU: build for aarch64

* Mon Nov 07 2016 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.9-alt2
- Initial build.