med/med.spec

108 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: med
Version: 4.0.0
Release: 1mamba
Summary: Modelization and data exchange library
Group: Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 4.0.0-1mamba
- package created using the webbuild interface