File abi-compliance-checker.spec of Package abi-compliance-checker

Name:           abi-compliance-checker
Version:        2.3
Release:        1.1
Summary:        Tool to check backward compatibility of C/C++ libraries
License:        GPL-2.0-or-later
URL:            https://github.com/lvc/abi-compliance-checker
Source0:        %{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  help2man
Requires:       perl

%description
ABI Compliance Checker is a tool for checking backward API/ABI compatibility of a C/C++ library between two releases. It helps to ensure that applications using the library will continue to work after the library is updated.

%prep
%setup -q

%build
# Ensure the main script is executable
chmod 0755 abi-compliance-checker.pl

%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl --install --prefix=%{_prefix} --destdir=%{buildroot}

# Generate manpage using help2man
pushd .
ln -sf abi-compliance-checker.pl abi-compliance-checker
help2man -h --info -N -o abi-compliance-checker.1 ./abi-compliance-checker
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 abi-compliance-checker.1 %{buildroot}%{_mandir}/man1/
popd

# No test suite executed to avoid toolchain-dependent failures

%files
%{_bindir}/abi-compliance-checker
%{_datadir}/abi-compliance-checker
%{_mandir}/man1/abi-compliance-checker.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by