Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package netgen for openSUSE:Factory checked in at 2026-04-17 21:03:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/netgen (Old) and /work/SRC/openSUSE:Factory/.netgen.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "netgen" Fri Apr 17 21:03:59 2026 rev:22 rq:1347592 version:6.2.2602 Changes: -------- --- /work/SRC/openSUSE:Factory/netgen/netgen.changes 2026-04-07 16:49:55.951080343 +0200 +++ /work/SRC/openSUSE:Factory/.netgen.new.11940/netgen.changes 2026-04-17 21:04:30.266440332 +0200 @@ -1,0 +2,7 @@ +Thu Apr 9 19:30:02 UTC 2026 - Stefan BrĂ¼ns <[email protected]> + +- Add SOVERSION to libraries, as upstream keeps breaking ABI, add + * 0001-Version-shared-libraries.patch +- Separate nglib and ngcore packages + +------------------------------------------------------------------- New: ---- 0001-Version-shared-libraries.patch ----------(New B)---------- New:- Add SOVERSION to libraries, as upstream keeps breaking ABI, add * 0001-Version-shared-libraries.patch - Separate nglib and ngcore packages ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ netgen.spec ++++++ --- /var/tmp/diff_new_pack.HXJlDE/_old 2026-04-17 21:04:30.926467351 +0200 +++ /var/tmp/diff_new_pack.HXJlDE/_new 2026-04-17 21:04:30.930467515 +0200 @@ -26,6 +26,8 @@ %bcond_with pytest %endif +%define LIBVERSION 6_2_2602 + Name: netgen Version: 6.2.2602 Release: 0 @@ -58,6 +60,8 @@ Patch16: 0001-Fix-incorrect-py-keep_alive-syntax-for-def_property.patch # PATCH-FIX-OPENSUSE -- https://github.com/NGSolve/netgen/issues/226 Patch17: 0001-Fix-implicit-conversions-for-signed-unsigned-types-i.patch +# PATCH-FIX-OPENSUSE -- https://github.com/NGSolve/netgen/issues/61 +Patch18: 0001-Version-shared-libraries.patch %if %{with opencascade} BuildRequires: occt-devel BuildRequires: (pkgconfig(catch2) >= 2.13.4 with pkgconfig(catch2) < 3) @@ -108,33 +112,41 @@ contains modules for mesh optimization and hierarchical mesh refinement. -%package -n netgen-libs -Summary: NETGEN mesher libraries +%package -n libngcore_%{LIBVERSION} +Summary: NETGEN mesher core library Group: System/Libraries -Conflicts: %{name} < %{version} -Provides: %{name}:%{_libdir}/netgen/libngcore.so -%description -n netgen-libs -NETGEN mesh generator shared libraries. +%description -n libngcore_%{LIBVERSION} +NETGEN mesh generator core shared library. + +%package -n libnglib_%{LIBVERSION} +Summary: NETGEN mesher main library +Group: System/Libraries -%package -n netgen-gui-libs +%description -n libnglib_%{LIBVERSION} +NETGEN mesh generator main shared library. + +%package -n libnggui_%{LIBVERSION} Summary: NETGEN mesher library - GUI part Group: System/Libraries -Conflicts: netgen-libs < 6.2.2204 -Provides: %{name}:%{_libdir}/netgen/libnggui.so -%description -n netgen-gui-libs +%description -n libnggui_%{LIBVERSION} GUI support for NETGEN mesh generator shared libraries. %package devel Summary: Development files for netgen -# Should not depend on the netgen binary, but the cmake config is broken Group: Development/Libraries/C and C++ +# Should not depend on the netgen binary, but the cmake config is broken Requires: %{name} = %{version} -Requires: netgen-libs = %{version} +Requires: libngcore_%{LIBVERSION} = %{version} +Requires: libnggui_%{LIBVERSION} = %{version} +Requires: libnglib_%{LIBVERSION} = %{version} %if %{with opencascade} Requires: occt-devel %endif +# Old packages had unversioned libraries +Conflicts: netgen-libs < %{version}.%{release} +Conflicts: netgen-gui-libs < %{version}.%{release} %description devel Development files for NETGEN. @@ -244,13 +256,15 @@ %files examples %{_datadir}/netgen -%files -n netgen-libs +%files -n libngcore_%{LIBVERSION} %dir %{_libdir}/netgen -%{_libdir}/netgen/libngcore.so -%{_libdir}/netgen/libnglib.so +%{_libdir}/netgen/libngcore.so.* -%files -n netgen-gui-libs -%{_libdir}/netgen/libnggui.so +%files -n libnglib_%{LIBVERSION} +%{_libdir}/netgen/libnglib.so.* + +%files -n libnggui_%{LIBVERSION} +%{_libdir}/netgen/libnggui.so.* %files -n python3-%{name} %{python3_sitearch}/netgen @@ -261,4 +275,7 @@ %dir %{_libdir}/cmake %{_includedir}/netgen %{_libdir}/cmake/netgen +%{_libdir}/netgen/libngcore.so +%{_libdir}/netgen/libnglib.so +%{_libdir}/netgen/libnggui.so ++++++ 0001-Version-shared-libraries.patch ++++++ >From d4a4f4d0b7004630611a0064518bc389be48f805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <[email protected]> Date: Thu, 9 Apr 2026 21:19:08 +0200 Subject: [PATCH] Version shared libraries --- CMakeLists.txt | 2 ++ libsrc/core/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6c09a9..44840a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -250,8 +250,10 @@ endif(APPLE) ####################################################################### add_library(nglib ${NGLIB_LIBRARY_TYPE}) +set_target_properties(nglib PROPERTIES VERSION ${NETGEN_VERSION_MAJOR}.${NETGEN_VERSION_MINOR}.${NETGEN_VERSION_PATCH}) if(USE_GUI) add_library(nggui ${NGGUI_LIBRARY_TYPE}) + set_target_properties(nggui PROPERTIES VERSION ${NETGEN_VERSION_MAJOR}.${NETGEN_VERSION_MINOR}.${NETGEN_VERSION_PATCH}) if(WIN32) set_target_properties( nggui PROPERTIES OUTPUT_NAME "libnggui") endif(WIN32) diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index 6d1a03f..9655afe 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -18,6 +18,7 @@ add_library(ngcore ${NGCORE_LIBRARY_TYPE} string(REPLACE "|" ";" ng_compile_flags_replace_sep "${NG_COMPILE_FLAGS}") target_compile_options(ngcore PUBLIC ${ng_compile_flags_replace_sep}) +set_target_properties(ngcore PROPERTIES VERSION ${NETGEN_VERSION_MAJOR}.${NETGEN_VERSION_MINOR}.${NETGEN_VERSION_PATCH}) if(EMSCRIPTEN) set(PYTHON_MODULE_EXTENSION ".so") -- 2.53.0
