Blame abi-dumper.spec

Bernhard M. Wiedemann 4a806f
#
Bernhard M. Wiedemann 4a806f
# spec file for package abi-dumper
Bernhard M. Wiedemann 4a806f
#
Bernhard M. Wiedemann 4a806f
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
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
Bernhard M. Wiedemann 4a806f
Version:        1.1
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
Bernhard M. Wiedemann 4a806f
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
# FIXME: drop these patches on the next upstream release
Bernhard M. Wiedemann 4a806f
# the first two patches fix the license and are required for the *actually*
Bernhard M. Wiedemann 4a806f
# important patch (Patch2) to apply cleanly
Bernhard M. Wiedemann 4a806f
# PATCH-FIX-UPSTREAM 0001-Fixed-license-to-LGPL-2.1.patch
Bernhard M. Wiedemann 4a806f
Patch0:         0001-Fixed-license-to-LGPL-2.1.patch
Bernhard M. Wiedemann 4a806f
# PATCH-FIX-UPSTREAM 0002-Fixed-license-file.patch
Bernhard M. Wiedemann 4a806f
Patch1:         0002-Fixed-license-file.patch
Bernhard M. Wiedemann 4a806f
# PATCH-FIX-UPSTREAM 0003-Support-for-new-elfutils-Fedora-30.patch
Bernhard M. Wiedemann 4a806f
# This fixes incorrect debuginfo extraction with new elfutils
Bernhard M. Wiedemann 4a806f
Patch2:         0003-Support-for-new-elfutils-Fedora-30.patch
Bernhard M. Wiedemann 4a806f
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
Bernhard M. Wiedemann 4a806f
%doc README
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