Add spec file.

f38
Richard M. Shaw 12 years ago
parent 1b270e8dde
commit 73bfa481eb

@ -0,0 +1,54 @@
Name: abi-dumper
Version: 0.98
Release: 1%{?dist}
Summary: Tool to dump ABI of an ELF object containing DWARF debug info
License: GPLv2
URL: http://github.com/lvc/abi-dumper/
# Github source
# https://github.com/lvc/%%{name}/archive/%%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: txt2man
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
A tool to dump ABI of an ELF object containing DWARF debug info.
The tool is intended to be used with ABI Compliance Checker tool for tracking
ABI changes of a C/C++ library or kernel module.
%prep
%setup -q
%build
# Nothing to build.
%install
mkdir -p %{buildroot}%{_prefix}
%{__perl} Makefile.pl -install --prefix=%{buildroot}%{_prefix}
chmod 0755 %{buildroot}%{_bindir}/%{name}
# Create manpage
mkdir -p %{buildroot}%{_mandir}/man1
%{__perl} abi-dumper.pl --help | sed "s|:$||g" | \
txt2man -t ABI-DUMPER -s 1 -v "User Commands" -r "ABI Dumper %{version}" > \
%{buildroot}%{_mandir}/man1/%{name}.1
%files
%doc LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Wed Jul 3 2013 Richard Shaw <hobbes1069@gmail.com> - 0.98-1
- Initial packaging.
Loading…
Cancel
Save