Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
quantum-espresso
quantum-espresso.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File quantum-espresso.spec of Package quantum-espresso
# # spec file for package quantum-espresso # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %if 0%{?sles_version} %define _mvapich2 1 %endif %if 0%{?suse_version} %define _openmpi 1 %endif %define _mpi %{?_openmpi:openmpi} %{?_mvapich2:mvapich2} Name: quantum-espresso Version: 5.1.2 Release: 0 Summary: A suite for electronic-structure calculations and materials modeling License: GPL-2.0 Group: Productivity/Scientific/Physics Url: http://www.quantum-espresso.org Source0: http://qe-forge.org/gf/download/frsrelease/185/753/espresso-%{version}.tar.gz Source1: http://qe-forge.org/gf/download/frsrelease/185/760/neb-%{version}.tar.gz Source2: http://qe-forge.org/gf/download/frsrelease/185/755/PHonon-%{version}.tar.gz Source3: http://qe-forge.org/gf/download/frsrelease/185/756/pwcond-%{version}.tar.gz Source4: http://qe-forge.org/gf/download/frsrelease/185/752/atomic-%{version}.tar.gz Source5: http://qe-forge.org/gf/download/frsrelease/185/758/tddfpt-%{version}.tar.gz Source6: http://qe-forge.org/gf/download/frsrelease/185/757/xspectra-%{version}.tar.gz # PATCH-FIX-UPSTREAM espresso-implicit-pointer-decl.patch Patch0: espresso-implicit-pointer-decl.patch Patch1: quantum_espresso_add_ppc64le_archi_to_configure.patch Patch2: quantum_espresso_do_not_set_xlf_for_powerpc.patch BuildRequires: fdupes BuildRequires: fftw3-devel BuildRequires: gcc-fortran BuildRequires: lapack-devel %if 0%{?_openmpi} BuildRequires: openmpi-devel %endif %if 0%{?_mvapich2} BuildRequires: mvapich2-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: ppc %description Quantum ESPRESSO is an integrated suite of Open-Source computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials. %package doc Summary: Documentation files for Quantum Espresso Group: Documentation/Other %description doc This package contains the documentation files for Quantum Espresso. Quantum ESPRESSO is an integrated suite of Open-Source computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials. %package openmpi Summary: A suite for electronic-structure calculations and materials modeling Group: Productivity/Scientific/Physics %description openmpi Quantum ESPRESSO is an integrated suite of Open-Source computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials. This package contains the nespresso binary compiled with openmpi support. %if 0%{?sles_version} %package mvapich2 Summary: A suite for electronic-structure calculations and materials modeling Group: Productivity/Scientific/Physics %description mvapich2 Quantum ESPRESSO is an integrated suite of Open-Source computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials. This package contains the nespresso binary compiled with mvapich2 support. %endif %prep %setup -q -n espresso-%{version} %setup -q -n espresso-%{version} -a1 -a2 -a3 -a5 -a4 -a6 %patch0 -p1 %ifarch ppc64 ppc64le %patch1 -p1 %patch2 -p1 %endif echo "prepare parallel builds: %_mpi" set -- * for i in %_mpi do mkdir espresso-$i cp -ap "$@" espresso-$i done %build %configure --disable-parallel make all for mpi in %_mpi; do cd espresso-$mpi export CC="%{_libdir}/mpi/gcc/$mpi/bin/mpicc" export FC="%{_libdir}/mpi/gcc/$mpi/bin/mpif90" export F77="%{_libdir}/mpi/gcc/$mpi/bin/mpif77" %configure --enable-parallel make all cd .. done %install mkdir -p %{buildroot}%{_bindir} cd bin for bin in *.x; do install -m 755 $bin %{buildroot}%{_bindir}/qe_$bin done cd .. for mpi in %_mpi; do mkdir -p %{buildroot}%{_libdir}/mpi/gcc/$mpi/bin cd espresso-$mpi/bin for bin in *.x; do install -m 755 $bin %{buildroot}%{_libdir}/mpi/gcc/$mpi/bin/qe_$bin done cd ../.. done %fdupes -s Doc/ %files %defattr(-,root,root) %doc License README %{_bindir}/*.x %files openmpi %defattr(-,root,root) %doc License README %{_libdir}/mpi/gcc/openmpi/bin/*.x %if 0%{?sles_version} %files mvapich2 %defattr(-,root,root) %doc License README %{_libdir}/mpi/gcc/mvapich2/bin/*.x %endif %files doc %defattr(-,root,root) %doc Doc/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor