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

# spec file for package abi-compliance-checker
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           abi-compliance-checker
Version:        2.2
Release:        0
Summary:        A Compliance Checker For library ABIs
License:        GPL-2.0+ or LGPL-2.0+
Group:          Development/Tools/Other
BuildRequires:  fdupes
BuildRequires:  help2man
Requires:       abi-dumper >= 1.1
Requires:       binutils
Requires:       coreutils
Requires:       cpio
Requires:       diffutils
Requires:       file
Requires:       gcc
Requires:       gzip
Requires:       perl-base
Requires:       rpm
Requires:       tar
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

ABI Compliance Checker (ACC) is an easy-to-use tool for checking
backward binary compatibility (BC) of a shared C/C++ library.
It checks header files along with shared libraries of old and new
versions and analyzes changes in Application Binary Interface (ABI)
that may cause compatibility problems: changes in calling stack,
v-table changes, removed symbols, etc. Breakage of the binary
compatibility may result in crashing or incorrect behavior of
applications built with an old version of the library if they run on
a new one. The tool is intended for library developers and operating
system maintainers who are interested in ensuring binary
compatibility, i.e. allow old applications to run with newer library
versions without the need to recompile.

%setup -q

chmod 0755 %{name}.pl

mkdir -vp %{buildroot}%{_prefix}
env \
	"DESTDIR=%{buildroot}"  \
	perl -install \
# Generate man page with help2man
mkdir -p %{buildroot}%{_mandir}/man1
ln -s %{name}.pl %{name}
help2man -h "--info" -N -o %{name}.1 ./%{name}
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1
%fdupes %{buildroot}

%doc README LICENSE doc GPL-2.0 LGPL-2.0