diff --git a/bootstrap.sh b/bootstrap.sh index bcd67ce..aeaad17 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -745,7 +745,7 @@ BuildRequires: pkgconfig, redhat-lsb$( if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT; then echo -n ", qt5-qtwebkit-devel"; fi) -%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} +%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} ) $(if testtag AX_USE_DOXYGEN; then echo -n "BuildRequires: mscgen"; fi) $(if testtag AX_REQUIRE_QT || testtag AX_CHECK_QT; then echo -n "BuildRequires: qt5-qtbase-devel, qt5-qttools, qt5-qtwebkit-devel"; fi) %else diff --git a/libxml-cxx.spec.in b/libxml-cxx.spec.in index e8b470e..ea7a313 100644 --- a/libxml-cxx.spec.in +++ b/libxml-cxx.spec.in @@ -9,7 +9,7 @@ BuildRequires: gnupg, subversion, automake, autoconf, doxygen, graphviz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} BuildRequires: pkgconfig, redhat-lsb, cppunit-devel -%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} +%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} ) BuildRequires: mscgen %else