From 400339e935ce5335f3a32aaf84b34a8c62b0ae07 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Jan 08 2021 16:51:08 +0000 Subject: Disable ctags support for RHEL9+ --- diff --git a/source-highlight.spec b/source-highlight.spec index 9d9893c..5208ab8 100644 --- a/source-highlight.spec +++ b/source-highlight.spec @@ -1,15 +1,18 @@ Summary: Produces a document with syntax highlighting Name: source-highlight Version: 3.1.9 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ Source0: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz.sig URL: http://www.gnu.org/software/src-highlite/ BuildRequires: bison, flex, boost-devel -BuildRequires: help2man, ctags, chrpath, pkgconfig(bash-completion) +BuildRequires: help2man, chrpath, pkgconfig(bash-completion) BuildRequires: gcc, gcc-c++ +%if 0%{!?rhel:1} || 0%{?rhel} < 9 +BuildRequires: ctags Requires: ctags +%endif %description This program, given a source file, produces a document with syntax @@ -33,6 +36,9 @@ Development files for source-highlight %build export CXXFLAGS="-std=c++14 $RPM_OPT_FLAGS" +%if 0%{?rhel} > 8 +export CTAGS=do_not_use_ctags +%endif %configure --disable-static \ --with-boost-regex=boost_regex %make_build @@ -80,6 +86,9 @@ rmdir $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d %{_includedir}/srchilite/*.h %changelog +* Wed Jan 6 2021 Keith Seitz - 3.1.9-6 +- Disable ctags support for RHEL9+. + * Wed Jul 29 2020 Fedora Release Engineering - 3.1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild