From 39f20ef038cde4e32ab279c68170df7114f83233 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Sun, 15 Sep 2019 12:50:00 -0500 Subject: [PATCH] Add conditional to work around missing txt2man in el8. --- abi-dumper.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abi-dumper.spec b/abi-dumper.spec index b48f1e7..17f00ec 100644 --- a/abi-dumper.spec +++ b/abi-dumper.spec @@ -30,7 +30,10 @@ BuildRequires: perl(Getopt::Long) BuildRequires: perl(Storable) BuildRequires: perl(strict) BuildRequires: sed +# https://bugzilla.redhat.com/show_bug.cgi?id=1741795 +%if ! 0%{?rhel} > 7 BuildRequires: txt2man +%endif Requires: elfutils Requires: vtable-dumper >= 1.1 @@ -58,18 +61,22 @@ mkdir -p %{buildroot}%{_prefix} chmod 0755 %{buildroot}%{_bindir}/%{name} +%if ! 0%{?rhel} > 7 # 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 +%endif %files %license LICENSE %doc README %{_bindir}/%{name} +%if ! 0%{?rhel} > 7 %{_mandir}/man1/%{name}.1* +%endif %changelog