Use defined/undefined macro for improved readability

epel9
Carl George 3 years ago
parent 28fada8c12
commit 4a002329a9

@ -32,7 +32,7 @@ Patch0: xcb.patch
BuildRequires: botan2-devel BuildRequires: botan2-devel
BuildRequires: cmake >= 3.1 BuildRequires: cmake >= 3.1
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
%if 0%{?el8} %if %{defined el8}
BuildRequires: gcc-toolset-11-gcc-c++ BuildRequires: gcc-toolset-11-gcc-c++
BuildRequires: gcc-toolset-11-annobin-plugin-gcc BuildRequires: gcc-toolset-11-annobin-plugin-gcc
%else %else
@ -48,7 +48,7 @@ BuildRequires: libusb1-devel
BuildRequires: libXi-devel BuildRequires: libXi-devel
BuildRequires: libXtst-devel BuildRequires: libXtst-devel
BuildRequires: libyubikey-devel BuildRequires: libyubikey-devel
%if 0%{?el8} %if %{defined el8}
BuildRequires: minizip1.2-devel BuildRequires: minizip1.2-devel
%else %else
BuildRequires: minizip-devel BuildRequires: minizip-devel
@ -67,7 +67,7 @@ BuildRequires: zlib-devel
# For EL8 missing rubygem-asciidoctor read # For EL8 missing rubygem-asciidoctor read
# https://bugzilla.redhat.com/show_bug.cgi?id=1859390 # https://bugzilla.redhat.com/show_bug.cgi?id=1859390
# https://bugzilla.redhat.com/show_bug.cgi?id=1820896 # https://bugzilla.redhat.com/show_bug.cgi?id=1820896
%if ! 0%{?el8} %if %{undefined el8}
BuildRequires: rubygem-asciidoctor BuildRequires: rubygem-asciidoctor
%endif %endif
@ -110,7 +110,7 @@ information can be considered as quite safe.
# beyond the undefined symbols. It really shold be investigated further. # beyond the undefined symbols. It really shold be investigated further.
# Disable LTO # Disable LTO
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
%if 0%{?el8} %if %{defined el8}
. /opt/rh/gcc-toolset-11/enable . /opt/rh/gcc-toolset-11/enable
%endif %endif
# -DWITH_XC_DOCS=OFF is needed on EL due missing rubygem-asciidoctor # -DWITH_XC_DOCS=OFF is needed on EL due missing rubygem-asciidoctor
@ -173,7 +173,7 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.%{nam
%{_libdir}/%{name} %{_libdir}/%{name}
# Missing rubygem-asciidoctor in EL8 does not allow having documentation in EL8 # Missing rubygem-asciidoctor in EL8 does not allow having documentation in EL8
# Read https://bugzilla.redhat.com/show_bug.cgi?id=1859390 # Read https://bugzilla.redhat.com/show_bug.cgi?id=1859390
%if ! 0%{?el8} %if %{undefined el8}
%{_mandir}/man1/%{name}-cli.1* %{_mandir}/man1/%{name}-cli.1*
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%endif %endif

Loading…
Cancel
Save