Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fixmath for openSUSE:Factory checked in at 2023-08-09 17:24:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fixmath (Old) and /work/SRC/openSUSE:Factory/.fixmath.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fixmath" Wed Aug 9 17:24:32 2023 rev:6 rq:1103049 version:2022.07.20 Changes: -------- --- /work/SRC/openSUSE:Factory/fixmath/fixmath.changes 2023-03-24 15:16:03.729510719 +0100 +++ /work/SRC/openSUSE:Factory/.fixmath.new.11712/fixmath.changes 2023-08-09 17:24:35.089130569 +0200 @@ -1,0 +2,9 @@ +Tue Aug 8 21:14:42 UTC 2023 - Fridrich Strba <[email protected]> + +- Build with g++ >= 7 in order to be able to use C++17 features +- Added patch: + * cmake-tests-old-cmake.patch + + allow building with cmake >= 3.5 + + conditionally applied on SLE12-SP5 whose cmake is old + +------------------------------------------------------------------- New: ---- cmake-tests-old-cmake.patch fixmath-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fixmath.spec ++++++ --- /var/tmp/diff_new_pack.tn8CJP/_old 2023-08-09 17:24:36.821141353 +0200 +++ /var/tmp/diff_new_pack.tn8CJP/_new 2023-08-09 17:24:36.825141377 +0200 @@ -24,17 +24,21 @@ URL: https://github.com/PetteriAimonen/libfixmath Group: Development/Libraries/C and C++ Source0: %{url}/archive/refs/heads/master.tar.gz#:/%{name}-%{version}.tar.gz +Source1000: %{name}-rpmlintrc # PATCH-FIX-SUSE build shared lib instead of static one Patch0: build-shared-library.patch # PATCH-FIX-SUSE use cmake for installation Patch1: cmake-install.patch -BuildRequires: gcc-c++ -# Use cmake3 package on SLE12 because cmake is too old (version 3.5) -%if !0%{?is_opensuse} && 0%{?sle_version} < 150000 -BuildRequires: cmake3-full >= 3.13 -# Requires C++17 +%if 0%{?suse_version} < 1500 +# PATCH-FIX-SUSE allow building with lower cmake version +Patch2: cmake-tests-old-cmake.patch +BuildRequires: cmake >= 3.5 +BuildRequires: gcc7 +BuildRequires: gcc7-c++ %else BuildRequires: cmake >= 3.13 +BuildRequires: gcc >= 7 +BuildRequires: gcc-c++ >= 7 %endif %description @@ -57,6 +61,10 @@ %autosetup -n lib%{name}-master -p1 %build +%if 0%{?suse_version} < 1500 +export CC="gcc-7" +export CXX="g++-7" +%endif # Fix lto-no-text-in-archive rpmlint error export CFLAGS="%{optflags} -ffat-lto-objects" export CXXFLAGS="%{optflags} -ffat-lto-objects" ++++++ cmake-tests-old-cmake.patch ++++++ --- libfixmath-master/tests/tests.cmake 2023-08-08 13:51:26.281477312 +0200 +++ libfixmath-master/tests/tests.cmake 2023-08-08 14:00:31.281701768 +0200 @@ -26,13 +26,11 @@ ${CMAKE_CURRENT_SOURCE_DIR}) target_compile_definitions(libfixmath_${name} PRIVATE ${defs}) target_compile_options(libfixmath_${name} PRIVATE ${sanitizer_opts}) - target_link_options(libfixmath_${name} PRIVATE ${sanitizer_opts}) add_executable(tests_${name} ${tests-srcs}) target_link_libraries(tests_${name} PRIVATE libfixmath_${name} m) target_include_directories(tests_${name} PRIVATE ${CMAKE_SOURCE_DIR}) target_compile_definitions(tests_${name} PRIVATE ${defs}) target_compile_options(tests_${name} PRIVATE ${sanitizer_opts}) - target_link_options(tests_${name} PRIVATE ${sanitizer_opts}) add_dependencies(make_tests tests_${name}) add_test(NAME tests_${name} COMMAND tests_${name}) endfunction() ++++++ fixmath-rpmlintrc ++++++ addFilter("shlib-policy-name-error")
