c03de52
Name:           med
39062b9
Version:        4.1.0
abad9fc
Release:        2%{?dist}
c03de52
Summary:        Library to exchange meshed data
c03de52
c03de52
License:        LGPLv3+
ba21583
URL:            http://www.salome-platform.org/user-section/about/med
c03de52
Source0:        http://files.salome-platform.org/Salome/other/%{name}-%{version}.tar.gz
c03de52
ba21583
# - Install headers in %%_includedir/med
ba21583
# - Install cmake config files to %%_libdir/cmake
12b90d8
# - Install doc to %%_pkgdocdir
39062b9
Patch0:         med_cmake.patch
ba21583
Igor Gnatenko 8ac0465
BuildRequires:  gcc-c++
ba21583
BuildRequires:  cmake
ba21583
BuildRequires:  gcc
c03de52
BuildRequires:  gcc-gfortran
ba21583
BuildRequires:  hdf5-devel
ba21583
BuildRequires:  make
ba21583
BuildRequires:  python3-devel
ba21583
BuildRequires:  swig
d84894e
BuildRequires:  zlib-devel
c03de52
c03de52
# For autoreconf
c03de52
BuildRequires: autoconf automake libtool
c03de52
c03de52
c03de52
%description
c03de52
MED-fichier (Modélisation et Echanges de Données, in English Modelisation
c03de52
and Data Exchange) is a library to store and exchange meshed data or
c03de52
computation results. It uses the HDF5 file format to store the data.
c03de52
c03de52
ba21583
%package -n     python3-%{name}
ba21583
Summary:        Python3 bindings for %{name}
ba21583
Requires:       %{name}%{?_isa} = %{version}-%{release}
ba21583
ba21583
%description -n python3-%{name}
ba21583
The python3-%{name} package contains python3 bindings for %{name}.
c03de52
c03de52
c03de52
%package        tools
c03de52
Summary:        Runtime tools for %{name}
c03de52
Requires:       %{name}%{?_isa} = %{version}-%{release}
c03de52
Requires:       tk
c03de52
c03de52
%description    tools
c03de52
This package contains runtime tools for %{name}:
c03de52
  - mdump: a tool to dump MED files
c03de52
  - xmdump: graphical version of mdump.
c03de52
  - medconforme: a tool to validate a MED file
c03de52
  - medimport: a tool to convert a MED v2.1 or v2.2 file into a MED v2.3 file
c03de52
c03de52
c03de52
%package        devel
c03de52
Summary:        Development files for %{name}
c03de52
Requires:       %{name}%{?_isa} = %{version}-%{release}
ba21583
Requires:       cmake-filesystem
c03de52
c03de52
%description    devel
c03de52
The %{name}-devel package contains libraries and header files for
c03de52
developing applications that use %{name}.
c03de52
c03de52
c03de52
%package        doc
c03de52
Summary:        Documentation for %{name}
c03de52
BuildArch:      noarch
c03de52
c03de52
%description    doc
c03de52
The %{name}-doc package contains the documentation for %{name}.
c03de52
c03de52
c03de52
%prep
12b90d8
%autosetup -p1 -n %{name}-%{version}
c03de52
c03de52
# Fix file not utf8
c03de52
iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog > ChangeLog.new && \
c03de52
touch -r ChangeLog ChangeLog.new && \
c03de52
mv ChangeLog.new ChangeLog
c03de52
c03de52
c03de52
%build
ba21583
%cmake -DMEDFILE_BUILD_PYTHON=1 \
ba21583
    -DPYTHON_EXECUTABLE=%{__python3} \
1271e48
    -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version}$(python3-config --abiflags)/ \
1271e48
    -DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so  .
d361b3f
%cmake_build
c03de52
c03de52
c03de52
%install
d361b3f
%cmake_install
c03de52
c03de52
# Remove test-suite files
c03de52
rm -rf %{buildroot}%{_bindir}/testc
c03de52
rm -rf %{buildroot}%{_bindir}/testf
c03de52
rm -rf %{buildroot}%{_bindir}/testpy
c03de52
c03de52
%check
12b90d8
ctest -V || :
c03de52
1699ff0
%ldconfig_scriptlets
c03de52
c03de52
%files
7eb9395
%doc AUTHORS ChangeLog  README
7eb9395
%license COPYING.LESSER
7eb9395
%{_libdir}/libmed.so.1*
7eb9395
%{_libdir}/libmedC.so.1*
7eb9395
%{_libdir}/libmedimport.so.0*
39062b9
%{_libdir}/libmedfwrap.so.11*
c03de52
ba21583
%files -n python3-%{name}
ba21583
%{python3_sitearch}/%{name}/
ba21583
c03de52
%files tools
3c51061
%{_bindir}/*mdump*
3c51061
%{_bindir}/medconforme
3c51061
%{_bindir}/medimport
c03de52
c03de52
%files devel
c03de52
%{_libdir}/*.so
ba21583
%{_libdir}/cmake/MEDFile/
ba21583
%{_includedir}/%{name}/
c03de52
c03de52
%files doc
7eb9395
%license COPYING.LESSER
12b90d8
%doc %{_pkgdocdir}
c03de52
c03de52
c03de52
%changelog
abad9fc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
abad9fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
abad9fc
39062b9
* Thu Jul 30 2020 Sandro Mani <manisandro@gmail.com> - 4.1-1
39062b9
- Update to 4.1
39062b9
15400a3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-9
15400a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
15400a3
8fbe399
* Thu Jun 25 2020 Orion Poplawski <orion@cora.nwra.com> - 4.0.0-8
8fbe399
- Rebuild for hdf5 1.10.6
8fbe399
957cd83
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.0.0-7
957cd83
- Rebuilt for Python 3.9
957cd83
0702d2e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-6
0702d2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0702d2e
d820681
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.0.0-5
d820681
- Rebuilt for Python 3.8.0rc1 (#1748018)
d820681
77aea07
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.0.0-4
77aea07
- Rebuilt for Python 3.8
77aea07
dd3dc2e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
dd3dc2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dd3dc2e
1271e48
* Mon Jun 03 2019 Charalampos Stratakis <cstratak@redhat.com> - 4.0.0-2
1271e48
- Don't hard-code python's abi flags
1271e48
12b90d8
* Wed Mar 13 2019 Sandro Mani <manisandro@gmail.com> - 4.0.0-1
12b90d8
- Update to 4.0.0
12b90d8
0ee9dee
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-5
0ee9dee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0ee9dee
7fb149f
* Wed Oct 03 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-4
12b90d8
- Remove python2 subpackage (#1627343)
7fb149f
e693b02
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
e693b02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e693b02
a999624
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.1-2
a999624
- Rebuilt for Python 3.7
a999624
ba21583
* Fri Mar 09 2018 Sandro Mani <manisandro@gmail.com> - 3.3.1-1
ba21583
- Update to 3.3.1
ba21583
4b7304f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-5
4b7304f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4b7304f
105a740
* Mon Feb 05 2018 Jitka Plesnikova <jplesnik@redhat.com> - 3.2.1-4
105a740
- Rebuild for new gfortran
105a740
1196d71
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
1196d71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1196d71
f070f4f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
f070f4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f070f4f
72d9504
* Sat May 06 2017 Sandro Mani <manisandro@gmail.com> - 3.2.1-1
72d9504
- Update to 3.2.1
72d9504
aee2e4f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
aee2e4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aee2e4f
6ed0556
* Wed Feb 01 2017 Sandro Mani <manisandro@gmail.com> - 3.2.0-2
6ed0556
- Rebuild (gfortran)
6ed0556
a23b597
* Mon Oct 03 2016 Sandro Mani <manisandro@gmail.com> - 3.2.0-1
a23b597
- Update to 3.2.0
a23b597
2f354ff
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-2
2f354ff
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2f354ff
3c51061
* Sat Feb 06 2016 Sandro Mani <manisandro@gmail.com> - 3.1.0-1
3c51061
- Update to 3.1.0
3c51061
fc5b248
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-6
fc5b248
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc5b248
Orion Poplawski d23ff69
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 3.0.8-5
Orion Poplawski d23ff69
- Rebuild for hdf5 1.8.16
Orion Poplawski d23ff69
9d1737f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.8-4
9d1737f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9d1737f
Orion Poplawski aa598bc
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 3.0.8-3
Orion Poplawski aa598bc
- Rebuild for hdf5 1.8.15
Orion Poplawski aa598bc
062fbf4
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0.8-2
062fbf4
- Rebuilt for GCC 5 C++11 ABI change
062fbf4
7eb9395
* Wed Mar 25 2015 Sandro Mani <manisandro@gmail.com> - 3.0.8-1
7eb9395
- Update to 3.0.8
7eb9395
Orion Poplawski 2911918
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 3.0.7-7
Orion Poplawski 2911918
- Rebuild for hdf5 1.8.14
Orion Poplawski 2911918
dd815b2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-6
dd815b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dd815b2
a83636d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.7-5
a83636d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a83636d
9552b38
* Wed May 21 2014 Sandro Mani <manisandro@gmail.com> - 3.0.7-4
9552b38
- Fix tests on arm
9552b38
c03de52
* Tue May 20 2014 Sandro Mani <manisandro@gmail.com> - 3.0.7-3
c03de52
- Removed -Wl,--as-needed again
c03de52
- Fixed license LGPLv3 -> LGPLv3+
c03de52
- BR python2-devel instead of python-devel
c03de52
c03de52
* Sat May 17 2014 Sandro Mani <manisandro@gmail.com> - 3.0.7-2
c03de52
- Added -Wl,--as-needed to LDFLAGS
c03de52
- Run autoreconf to remove rpath
c03de52
- Fixed ChangeLog encoding
c03de52
- Removed dependency on main package for -doc subpackage
c03de52
c03de52
* Sat May 17 2014 Sandro Mani <manisandro@gmail.com> - 3.0.7-1
c03de52
- Initial package