diff --git a/README.md b/README.md index 51ad2e7..628d731 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # med +Modelization and data exchange library. + diff --git a/med.spec b/med.spec new file mode 100644 index 0000000..0a05afe --- /dev/null +++ b/med.spec @@ -0,0 +1,107 @@ +Name: med +Version: 4.0.0 +Release: 1mamba +Summary: Modelization and data exchange library +Group: Applications/Scientific +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.salome-platform.org/ +Source: http://files.salome-platform.org/Salome/other/med-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: gcc-fortran +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libhdf5-devel +BuildRequires: libquadmath-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRequires: libhdf5-tools +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Modelization and data exchange library. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q +%ifarch x86_64 +sed -i "s|DESTINATION lib)|DESTINATION lib64)|" src/CMakeLists.txt src/CMakeLists.txt.in \ + tools/medimport/CMakeLists.txt tools/medimport/CMakeLists.txt.in +%endif + +%build +%cmake -d build + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/mdump2 +%{_bindir}/mdump3 +%{_bindir}/medconforme +%{_bindir}/medimport +%dir %{_bindir}/testc +%{_bindir}/testc/test* +%dir %{_bindir}/testf +%{_bindir}/testf/test* +%{_bindir}/xmdump2 +%{_bindir}/xmdump3 + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libmed.so.* +%{_libdir}/libmedC.so.* +%{_libdir}/libmedfwrap.so.* +%{_libdir}/libmedimport.so.* +%doc AUTHORS COPYING COPYING.LESSER + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/med* +%{_includedir}/MED* +%dir %{_includedir}/2.3.6 +%{_includedir}/2.3.6/* +%{_libdir}/libmed.so +%{_libdir}/libmedC.so +%{_libdir}/libmedfwrap.so +%{_libdir}/libmedimport.so +%dir %{_datadir}/cmake/med-fichier-%{version} +%{_datadir}/cmake/med-fichier-%{version}/MEDFile*.cmake +%dir %{_datadir}/doc/med-fichier-%{version} +%{_datadir}/doc/med-fichier-%{version}/* +%doc ChangeLog README + +%changelog +* Tue Dec 03 2019 Silvan Calarco 4.0.0-1mamba +- package created using the webbuild interface