From 73bfa481eb6fe8598e7adeda277fdf9c56eacde0 Mon Sep 17 00:00:00 2001 From: "Richard M. Shaw" Date: Thu, 11 Jul 2013 14:59:06 -0500 Subject: [PATCH] Add spec file. --- abi-dumper.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 abi-dumper.spec diff --git a/abi-dumper.spec b/abi-dumper.spec new file mode 100644 index 0000000..6730138 --- /dev/null +++ b/abi-dumper.spec @@ -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 - 0.98-1 +- Initial packaging.