diff --git a/opensp.spec b/opensp.spec index 88153d935cddace2a42f41ba093e82f1d27d171a..160c1d27edab70ac121476d883ab7a82f6429b7d 100644 --- a/opensp.spec +++ b/opensp.spec @@ -1,6 +1,6 @@ Name: opensp Version: 1.5.2 -Release: 31 +Release: 32 Summary: SGML and XML parser License: MIT BuildRequires: gcc-c++ xmlto @@ -35,6 +35,9 @@ mv -f ChangeLog.tmp ChangeLog touch lib/parser_inst.cxx %build +%if "%{?toolchain}" == "clang" +export CXXFLAGS="$CXXFLAGS -std=c++98" +%endif %configure \ --disable-dependency-tracking --disable-static --enable-http \ --enable-default-catalog=%{_sysconfdir}/sgml/catalog \ @@ -87,5 +90,8 @@ make check || : %changelog +* Fri Jan 24 2025 Suyun - 1.5.2-32 +- Use C++ 98 to fix build errors with Clang + * Sat Nov 30 2019 zoushuangshuang - 1.5.2-31 - Package init