diff --git a/abi-dumper.spec b/abi-dumper.spec index 842663f..91934b9 100644 --- a/abi-dumper.spec +++ b/abi-dumper.spec @@ -10,11 +10,7 @@ Source0: https://github.com/lvc/%{name}/archive/%{version}.tar.gz#/%{name BuildArch: noarch BuildRequires: coreutils -%if 0%{?rhel} -BuildRequires: perl -%else BuildRequires: perl-interpreter -%endif BuildRequires: perl-generators BuildRequires: perl(Cwd) BuildRequires: perl(Data::Dumper) @@ -27,10 +23,7 @@ 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 @@ -57,22 +50,18 @@ 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.md %{_bindir}/%{name} -%if ! 0%{?rhel} > 7 %{_mandir}/man1/%{name}.1* -%endif %changelog