# Compat package: libarmadillo.so.12, so that moving `armadillo` to 15.x does not uninstall # the Fedora packages that link the old soname (gdal-libs, mlpack-bin, mlpack-python3 on f44). # Armadillo's soname is its major version, so 12.x and 15.x cannot share a file name. # # Runtime library ONLY: no headers, no -devel, no pkg-config. Anything building against # Armadillo uses `armadillo-devel` (15.x). Retire this once gdal and mlpack have been rebuilt # against libarmadillo.so.15; `rpm -e armadillo12` is then safe. # # Deliberately the same upstream release Fedora ships (12.8.1), so existing consumers see # identical behaviour, bugs included. Name: armadillo12 Version: 12.8.1 Release: 1%{?dist} Summary: Armadillo C++ matrix library, compat runtime for the 12.x soname License: Apache-2.0 URL: https://arma.sourceforge.net/ Source0: https://sourceforge.net/projects/arma/files/armadillo-%{version}.tar.xz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: make BuildRequires: arpack-devel BuildRequires: SuperLU-devel BuildRequires: flexiblas-devel %description The libarmadillo.so.12 runtime library from Armadillo 12.8.1, kept installable alongside armadillo 15.x so packages linked against the old soname keep working. Contains no headers; develop against the armadillo-devel package. %prep %autosetup -n armadillo-%{version} -p1 %build export CMAKE_POLICY_VERSION_MINIMUM=3.5 %cmake -DALLOW_FLEXIBLAS_LINUX=ON -DBUILD_SMOKE_TEST=OFF %cmake_build %install %cmake_install # Runtime library only. -devel files belong to the 15.x package and would conflict. rm -rf %{buildroot}%{_includedir} %{buildroot}%{_datadir}/Armadillo \ %{buildroot}%{_libdir}/pkgconfig %{buildroot}%{_libdir}/libarmadillo.so %check # The one thing this package exists to do. test -e %{buildroot}%{_libdir}/libarmadillo.so.12 readelf -d %{buildroot}%{_libdir}/libarmadillo.so.12 | grep -q 'SONAME.*libarmadillo.so.12' # ...and it must not collide with the 15.x package's files. ! find %{buildroot} -name 'libarmadillo.so.15*' | grep -q . %files %{_libdir}/libarmadillo.so.12* %license LICENSE.txt NOTICE.txt %changelog * Mon Oct 05 2026 Morgan Hough - 12.8.1-1 - New compat package: libarmadillo.so.12 from 12.8.1 for gdal-libs and mlpack, which link that soname, while armadillo itself moves to 15.x.