Name: med Version: 4.1.0 Release: 18%{?dist} Summary: Library to exchange meshed data License: LGPL-3.0-or-later URL: http://www.salome-platform.org/user-section/about/med Source0: http://files.salome-platform.org/Salome/other/%{name}-%{version}.tar.gz # - Install headers in %%_includedir/med # - Install cmake config files to %%_libdir/cmake # - Install doc to %%_pkgdocdir Patch0: med_cmake.patch # hdf5-1.12 compatibility # https://gist.githubusercontent.com/jedbrown/527ef81ff59a0dccf833da40fdd15a47/raw/7482f9a42fdd277f5f9cf0167ea7a3381032ca7a/hdf5-1.12.patch Patch1: med-hdf5-1.12.patch # Fix python3.13 build Patch2: med-py3.13.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-gfortran BuildRequires: hdf5-devel BuildRequires: make BuildRequires: python3-devel BuildRequires: swig BuildRequires: zlib-devel # For autoreconf BuildRequires: autoconf automake libtool %description MED-fichier (Modélisation et Echanges de Données, in English Modelisation and Data Exchange) is a library to store and exchange meshed data or computation results. It uses the HDF5 file format to store the data. %package -n python3-%{name} Summary: Python3 bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python3-%{name} The python3-%{name} package contains python3 bindings for %{name}. %package tools Summary: Runtime tools for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: tk %description tools This package contains runtime tools for %{name}: - mdump: a tool to dump MED files - xmdump: graphical version of mdump. - medconforme: a tool to validate a MED file - medimport: a tool to convert a MED v2.1 or v2.2 file into a MED v2.3 file %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake-filesystem %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc The %{name}-doc package contains the documentation for %{name}. %prep %autosetup -p1 -n %{name}-%{version} # Fix file not utf8 iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog > ChangeLog.new && \ touch -r ChangeLog ChangeLog.new && \ mv ChangeLog.new ChangeLog %build %cmake -DMEDFILE_BUILD_PYTHON=1 \ -DPYTHON_EXECUTABLE=%{__python3} \ -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version}$(python3-config --abiflags)/ \ -DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so %cmake_build %install %cmake_install # Remove test-suite files rm -rf %{buildroot}%{_bindir}/testc rm -rf %{buildroot}%{_bindir}/testf rm -rf %{buildroot}%{_bindir}/testpy %check %ctest || : %files %doc AUTHORS ChangeLog README %license COPYING.LESSER %{_libdir}/libmed.so.1* %{_libdir}/libmedC.so.1* %{_libdir}/libmedimport.so.0* %{_libdir}/libmedfwrap.so.11* %files -n python3-%{name} %{python3_sitearch}/%{name}/ %files tools %{_bindir}/*mdump* %{_bindir}/medconforme %{_bindir}/medimport %files devel %{_libdir}/*.so %{_libdir}/cmake/MEDFile/ %{_includedir}/%{name}/ %files doc %license COPYING.LESSER %doc %{_pkgdocdir} %changelog * Thu Jul 18 2024 Fedora Release Engineering - 4.1.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 4.1.0-17 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 4.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 4.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Nov 03 2023 Sandro Mani - 4.1.0-14 - Fix python-3.13 build * Thu Jul 20 2023 Fedora Release Engineering - 4.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 4.1.0-12 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 4.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 4.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.1.0-9 - Rebuilt for Python 3.11 * Sat Mar 05 2022 Sandro Mani - 4.1.0-8 - Fix FTBFS with cmake 3.23.0 * Thu Jan 20 2022 Fedora Release Engineering - 4.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 03 2021 Sandro Mani - 4.1.0-3 - Port to hdf5-1.12 * Tue Aug 10 2021 Orion Poplawski - 4.1.0-5 - Rebuild for hdf5 1.10.7 * Thu Jul 22 2021 Fedora Release Engineering - 4.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 4.1.0-3 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jul 30 2020 Sandro Mani - 4.1-1 - Update to 4.1 * Tue Jul 28 2020 Fedora Release Engineering - 4.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Orion Poplawski - 4.0.0-8 - Rebuild for hdf5 1.10.6 * Tue May 26 2020 Miro Hrončok - 4.0.0-7 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 4.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 4.0.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 4.0.0-4 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 03 2019 Charalampos Stratakis - 4.0.0-2 - Don't hard-code python's abi flags * Wed Mar 13 2019 Sandro Mani - 4.0.0-1 - Update to 4.0.0 * Fri Feb 01 2019 Fedora Release Engineering - 3.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 03 2018 Miro Hrončok - 3.3.1-4 - Remove python2 subpackage (#1627343) * Fri Jul 13 2018 Fedora Release Engineering - 3.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.3.1-2 - Rebuilt for Python 3.7 * Fri Mar 09 2018 Sandro Mani - 3.3.1-1 - Update to 3.3.1 * Thu Feb 08 2018 Fedora Release Engineering - 3.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Feb 05 2018 Jitka Plesnikova - 3.2.1-4 - Rebuild for new gfortran * Thu Aug 03 2017 Fedora Release Engineering - 3.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat May 06 2017 Sandro Mani - 3.2.1-1 - Update to 3.2.1 * Fri Feb 10 2017 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Sandro Mani - 3.2.0-2 - Rebuild (gfortran) * Mon Oct 03 2016 Sandro Mani - 3.2.0-1 - Update to 3.2.0 * Tue Jul 19 2016 Fedora Release Engineering - 3.1.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sat Feb 06 2016 Sandro Mani - 3.1.0-1 - Update to 3.1.0 * Thu Feb 04 2016 Fedora Release Engineering - 3.0.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 21 2016 Orion Poplawski - 3.0.8-5 - Rebuild for hdf5 1.8.16 * Wed Jun 17 2015 Fedora Release Engineering - 3.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun May 17 2015 Orion Poplawski - 3.0.8-3 - Rebuild for hdf5 1.8.15 * Sat May 02 2015 Kalev Lember - 3.0.8-2 - Rebuilt for GCC 5 C++11 ABI change * Wed Mar 25 2015 Sandro Mani - 3.0.8-1 - Update to 3.0.8 * Wed Jan 07 2015 Orion Poplawski - 3.0.7-7 - Rebuild for hdf5 1.8.14 * Sun Aug 17 2014 Fedora Release Engineering - 3.0.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.0.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 21 2014 Sandro Mani - 3.0.7-4 - Fix tests on arm * Tue May 20 2014 Sandro Mani - 3.0.7-3 - Removed -Wl,--as-needed again - Fixed license LGPLv3 -> LGPLv3+ - BR python2-devel instead of python-devel * Sat May 17 2014 Sandro Mani - 3.0.7-2 - Added -Wl,--as-needed to LDFLAGS - Run autoreconf to remove rpath - Fixed ChangeLog encoding - Removed dependency on main package for -doc subpackage * Sat May 17 2014 Sandro Mani - 3.0.7-1 - Initial package