Files
patchelf/patchelf.spec.in
murkvin 523f401584 fix: specify zsh completions in patchelf.spec.in
Problem: When building the patchelf RPM, zsh completions are installed (but not packaged). This causes an RPM build failure.

Solution: We need to identify the zsh completions in the generated RPM spec file.

Testing: I updated the RPM spec file and successfully built the RPM.
2025-02-15 08:40:35 +07:00

40 lines
879 B
RPMSpec

Summary: A utility for patching ELF binaries
Name: patchelf
Version: @PACKAGE_VERSION@
Release: 1
License: GPL
Group: Development/Tools
URL: http://nixos.org/patchelf.html
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prefix: /usr
%description
PatchELF is a simple utility for modifying existing ELF executables and
libraries. It can change the dynamic loader ("ELF interpreter") of
executables and change the RPATH of executables and libraries.
%prep
%setup -q
%build
./configure --prefix=%{_prefix}
make
make check
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# rpmbuild automatically strips... strip $RPM_BUILD_ROOT/%%{_bindir}/* || true
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/patchelf
%doc %{_docdir}/patchelf/README.md
%{_mandir}/man1/patchelf.1.gz
%{_datadir}/zsh/site-functions/_patchelf