From 732f65b463bbb68e05a530dfa6655d1246160d00 Mon Sep 17 00:00:00 2001 From: badshah400 <> Date: Sep 16 2022 12:57:40 +0000 Subject: Update libmbd to version 0.12.6 / rev 1 via SR 1003990 https://build.opensuse.org/request/show/1003990 by user badshah400 + dimstar_suse Many-body dispersion lib, needed for upcoming quantum-espresso update --- diff --git a/.files b/.files new file mode 100644 index 0000000..052442a Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..2890387 --- /dev/null +++ b/.meta @@ -0,0 +1,10 @@ + + Many-body dispersion library + Libmbd implements the many-body dispersion (MBD) method in several programming +languages and frameworks. This is the reference implementation in Fortran and +C. + + + + https://github.com/libmbd/libmbd + diff --git a/.rev b/.rev new file mode 100644 index 0000000..af55f3c --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + 4142fbeb4289ced5fba33aeee26281e9 + 0.12.6 + + dimstar_suse + Many-body dispersion lib, needed for upcoming quantum-espresso update + 1003990 + + diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..cc4a2d7 --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + mvapich2 + openmpi4 + diff --git a/libmbd-0.12.6.tar.gz b/libmbd-0.12.6.tar.gz new file mode 120000 index 0000000..ddadfba --- /dev/null +++ b/libmbd-0.12.6.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreibat2wqgzuq5le6gcfagbiulrxyro73la5br4gs4rrsgnmdhurldi \ No newline at end of file diff --git a/libmbd.changes b/libmbd.changes new file mode 100644 index 0000000..bb9c06e --- /dev/null +++ b/libmbd.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 14 17:35:47 UTC 2022 - Atri Bhattacharya + +- Update to version 0.12.6: + * Ewald cutoff scaling to Python/C API + * Density evaluation to Python/C API + * Access to intermediate vdW params to Python/C API + +------------------------------------------------------------------- +Mon Aug 1 22:05:22 UTC 2022 - Atri Bhattacharya + +- Initial package. diff --git a/libmbd.spec b/libmbd.spec new file mode 100644 index 0000000..defe190 --- /dev/null +++ b/libmbd.spec @@ -0,0 +1,122 @@ +# +# spec file for package libmbd +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%global srcname libmbd + +# SECTION MPI DEFINITIONS +%if "%{flavor}" == "mvapich2" +%global mpi_flavor mvapich2 +%endif + +%if "%{flavor}" == "openmpi4" +%global mpi_flavor openmpi +%define mpi_vers 4 +%endif + +%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}} +%{?with_mpi:%{!?mpi_flavor:error "No MPI family specified!"}} + +%if %{with mpi} +%define my_prefix %{_libdir}/mpi/gcc/%{mpi_flavor}%{?mpi_vers} +%define my_bindir %{my_prefix}/bin +%define my_libdir %{my_prefix}/%{_lib} +%define my_incdir %{my_prefix}/include +%define my_datadir %{my_prefix}/share +%define my_suffix -%{mpi_flavor}%{?mpi_vers} +%else +%define my_prefix %{_prefix} +%define my_bindir %{_bindir} +%define my_libdir %{_libdir} +%define my_incdir %{_includedir} +%define my_datadir %{_datadir} +%endif +# /SECTION MPI DEFINITIONS + +Name: %{srcname}%{?my_suffix} +Version: 0.12.6 +Release: 0 +Summary: Many-body dispersion library +License: MPL-2.0 +URL: https://github.com/libmbd/libmbd +Source: %{url}/releases/download/%{version}/%{srcname}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc-fortran +BuildRequires: lapack-devel +%if %{with mpi} +BuildRequires: %{mpi_flavor}%{?mpi_vers}-devel +BuildRequires: scalapack%{?my_suffix}-devel +%if 0%{?suse_version} >= 1550 && "%{flavor}" != "mvapich2" +BuildRequires: %{mpi_flavor}%{?mpi_vers}-config +%endif +%endif + +%description +Libmbd implements the many-body dispersion (MBD) method in several programming +languages and frameworks. This is the reference implementation in Fortran and +C. + +%package devel +Summary: Many-body dispersion library -- headers and sources +Requires: %{name} = %{version} +%if %{with mpi} +Requires: scalapack%{?my_suffix}-devel +%endif + +%description devel +Libmbd implements the many-body dispersion (MBD) method in several programming +languages and frameworks. This is the reference implementation in Fortran and +C. + +This package provides the files needed for developing against %{name}. + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +%build +%if %{with mpi} +source %{my_bindir}/mpivars.sh +%endif + +%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{my_prefix} \ + -DCMAKE_PREFIX_PATH:PATH=%{my_prefix} \ + -DCMAKE_INSTALL_LIBDIR:PATH=%{my_libdir} \ + -DENABLE_SCALAPACK_MPI:BOOL=%{?with_mpi:ON}%{!?with_mpi:OFF} \ + -DSCALAPACK_LIBRARY:PATH=%{my_libdir}/libscalapack.so \ + %{nil} +%cmake_build + +%install +%cmake_install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%{my_libdir}/libmbd.so + +%files devel +%license LICENSE +%doc README.md +%{my_incdir}/mbd +%if %{with mpi} +%dir %{my_libdir}/cmake +%endif +%{my_libdir}/cmake/mbd/ + +%changelog