Blame abi-dumper.spec

Bernhard M. Wiedemann 4a806f
#
Bernhard M. Wiedemann 4a806f
# spec file for package abi-dumper
Bernhard M. Wiedemann 4a806f
#
361965
# Copyright (c) 2021 SUSE LLC
Bernhard M. Wiedemann 4a806f
#
Bernhard M. Wiedemann 4a806f
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann 4a806f
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann 4a806f
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann 4a806f
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann 4a806f
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann 4a806f
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann 4a806f
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann 4a806f
# published by the Open Source Initiative.
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann 4a806f
#
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
Name:           abi-dumper
361965
Version:        1.2
Bernhard M. Wiedemann 4a806f
Release:        0
Bernhard M. Wiedemann 4a806f
Summary:        Tool to dump ABI of an ELF object containing DWARF debug info
Bernhard M. Wiedemann 4a806f
License:        LGPL-2.1-or-later
361965
URL:            https://github.com/lvc/abi-dumper
Bernhard M. Wiedemann 4a806f
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Bernhard M. Wiedemann 4a806f
BuildRequires:  help2man
Bernhard M. Wiedemann 4a806f
Requires:       binutils
Bernhard M. Wiedemann 4a806f
Requires:       elfutils
Bernhard M. Wiedemann 4a806f
Requires:       gcc-c++
Bernhard M. Wiedemann 4a806f
Requires:       vtable-dumper
Bernhard M. Wiedemann 4a806f
Requires:       perl(Storable)
Bernhard M. Wiedemann 4a806f
BuildArch:      noarch
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%description
Bernhard M. Wiedemann 4a806f
The tool is intended to be used with ABI Compliance Checker tool for tracking
Bernhard M. Wiedemann 4a806f
ABI changes of a C/C++ library or kernel module.
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%prep
Bernhard M. Wiedemann 4a806f
%autosetup
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%build
Bernhard M. Wiedemann 4a806f
chmod 0755 %{name}.pl
Bernhard M. Wiedemann 4a806f
ln -s %{name}.pl %{name}
Bernhard M. Wiedemann 4a806f
help2man -N -o %{name}.1 ./%{name}
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%install
Bernhard M. Wiedemann 4a806f
mkdir -vp %{buildroot}%{_prefix}
Bernhard M. Wiedemann 4a806f
env \
Bernhard M. Wiedemann 4a806f
	"DESTDIR=%{buildroot}"  \
Bernhard M. Wiedemann 4a806f
	perl Makefile.pl -install \
Bernhard M. Wiedemann 4a806f
	--prefix=%{_prefix}
Bernhard M. Wiedemann 4a806f
# Generate man page with help2man
Bernhard M. Wiedemann 4a806f
mkdir -p %{buildroot}%{_mandir}/man1
Bernhard M. Wiedemann 4a806f
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%files
361965
%doc README.md
Bernhard M. Wiedemann 4a806f
%license LICENSE
Bernhard M. Wiedemann 4a806f
%{_bindir}/%{name}
Bernhard M. Wiedemann 4a806f
%{_mandir}/man*/*
Bernhard M. Wiedemann 4a806f
Bernhard M. Wiedemann 4a806f
%changelog