Blob Blame History Raw
Name:           votca
Version:        2023~rc1
%global         uversion 2023-rc.1
%global         sover 2023
Release:        2%{?dist}
Summary:        Versatile Object-oriented Toolkit for Coarse-graining Applications
License:        ASL 2.0
Patch0:         1039.patch

%global with_xtp 1
# libint2 used by xtp is broken on 32-bit archs
%ifarch %ix86 %arm
%global with_xtp 0

%global with_gmx 1
# no gromacs package on 32-bit archs
%ifarch %ix86 %arm
%global with_gmx 0

BuildRequires:  gcc-c++
BuildRequires:  fdupes
BuildRequires:  cmake3
BuildRequires:  expat-devel
BuildRequires:  fftw-devel
BuildRequires:  eigen3-devel
BuildRequires:  boost-devel
%if %{with_gmx}
BuildRequires:  gromacs-devel
BuildRequires:  perl-generators
BuildRequires:  hdf5-devel
BuildRequires:  python3
%if %{with_xtp}
BuildRequires:  python3-lxml
BuildRequires:  python3-h5py
BuildRequires:  libxc-devel
BuildRequires:  libecpint-devel
BuildRequires:  libint2-devel

# mpi packages only used for testing
%if %{with_gmx}
BuildRequires:  gromacs-openmpi
# not available on 32-bit archs
%ifnarch s390x i686 armv7hl
BuildRequires:  python3-espresso-openmpi
BuildRequires:  openmpi-devel

#used for testing only
%if %{with_gmx}
BuildRequires:  gromacs
BuildRequires:  lammps
BuildRequires:  python3-cma
BuildRequires:  python3-pytest
BuildRequires:  gnuplot
BuildRequires:  psmisc

Requires:   %{name}-common = %{version}-%{release}
Requires:   %{name}-libs%{?_isa} = %{version}-%{release}
%if %{with_xtp}
Requires:   %{name}-common-xtp = %{version}-%{release}
Obsoletes:      votca-tools <= 2022~rc1
Provides:       votca-tools = %version-%release
Obsoletes:      votca-csg <= 2022~rc1
Provides:       votca-csg = %version-%release
Obsoletes:      votca-xtp <= 2022~rc1
Provides:       votca-xtp = %version-%release

%global votca_desc \
VOTCA is a software package which focuses on the analysis of molecular \
dynamics data, the development of systematic coarse-graining techniques as \
well as methods used for simulating microscopic charge (and exciton) transport \
in disordered semiconductors.


%package devel
Summary:        Development headers and libraries for votca
Requires:       pkgconfig
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
# votca header include these headers
Requires:       boost-devel
Requires:       expat-devel
Requires:       fftw3-devel
Requires:       libxc-devel
Requires:       libint2-devel
Requires:       libecpint-devel
Requires:       hdf5-devel
Obsoletes:      votca-csg-devel <= 2022~rc1
Provides:       votca-csg-devel = %version-%release
Obsoletes:      votca-tools-devel <= 2022~rc1
Provides:       votca-tools-devel = %version-%release
Obsoletes:      votca-xtp-devel <= 2022~rc1
Provides:       votca-xtp-devel = %version-%release

%description devel

This package contains development headers and libraries for the VOTCA

%package libs
Summary:    Libraries for VOTCA coarse-graining engine
Obsoletes:  votca-csg-libs <= 2022~rc1
Provides:   votca-csg-libs = %version-%release
Obsoletes:  votca-xtp-libs <= 2022~rc1
Provides:   votca-xtp-libs = %version-%release

%description libs

This package contains libraries for the VOTCA package.

%package common
Summary:    Architecture independent data files for VOTCA
BuildArch:  noarch
Obsoletes:  votca-csg-common <= 2022~rc1
Provides:   votca-csg-common = %version-%release

%description common

This package contains architecture independent data files for the VOTCA

%package csg-tutorials
Summary:    Architecture independent csg tutorial files for VOTCA
BuildArch:  noarch
Requires:   %{name} = %{version}-%{release}

%description csg-tutorials

This package contains architecture independent csg tutorial files
for the VOTCA package.

# split off as some arch do not have xtp parts
%if %{with_xtp}
%package xtp-tutorials
Summary:    Architecture independent xtp tutorial files for VOTCA
BuildArch:  noarch
Requires:   %{name} = %{version}-%{release}

%description xtp-tutorials

This package contains architecture independent xtp tutorial files
for the VOTCA package.

%package common-xtp
Summary:    Architecture independent data files for xtp parts of VOTCA
BuildArch:  noarch
Obsoletes:  votca-xtp-common <= 2022~rc1
Provides:   votca-xtp-common = %version-%release

%description common-xtp

This package contains architecture independent data files for the xtp
parts of the VOTCA package.

%package bash
Summary:    Bash completion for VOTCA
Requires:   %{name} = %{version}-%{release}
Requires:   bash-completion
BuildArch:  noarch
Obsoletes:  votca-csg-bash <= 2022~rc1
Provides:   votca-csg-bash = %version-%release

%description bash

This package contains bash completion support for the VOTCA package.

%setup -q -n %{name}-%{uversion}
%patch0 -p1

# we don't have an espressopp package in Fedora yet
rm -rf csg-tutorials/spce/ibi_espressopp

# load openmpi, so that cmake can find mdrun_openmpi for testing only
# not a 100% sure why this is needed, but otherwise espressomd cannot be found

 -DBUILD_XTP=%{with_xtp} \

# Install bash completion file
%__install -D -m0644 %{__cmake_builddir}/csg/scripts/csg-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/votca

%fdupes %{buildroot}%{_prefix}



%files common
%license LICENSE
%exclude %{_datadir}/votca/*-tutorials/
%exclude %{_datadir}/votca/xtp/

%files csg-tutorials

%if %{with_xtp}
%files xtp-tutorials

%files common-xtp
%license LICENSE

%files libs
%license LICENSE

%files devel

%files bash

* Mon Feb 20 2023 Jonathan Wakely <> - 2023~rc1-2
- Rebuilt for Boost 1.81

* Fri Feb 03 2023 Christoph Junghans <> - 2023-1
- Version bump to v2023-rc.1 (bug #2166654)

* Sat Jan 21 2023 Fedora Release Engineering <> - 2022.1-2
- Rebuilt for

* Wed Dec 21 2022 Christoph Junghans <> - 2022.1-1
- Version bump to v2022.1

* Tue Nov 29 2022 Christoph Junghans <> - 2022-11
- Rebuild for libxc again

* Thu Oct 27 2022 Mamoru TASAKA <> - 2022-10
- Rebuild for new libxc

* Mon Oct 24 2022 Christoph Junghans <> - 2022-9
- Rebuild for libxc-6.0.0

* Mon Aug 08 2022 Christoph Junghans <> - 2022-8
- Fix build wtih espresso-4.2.0

* Sat Jul 23 2022 Fedora Release Engineering <> - 2022-7
- Rebuilt for

* Wed May 04 2022 Thomas Rodgers <> - 2022-6
- Rebuilt for Boost 1.78

* Wed Apr 27 2022 Christoph Junghans <> - 2022-5
- Rebuild for gromacs-2022.1

* Sat Feb 05 2022 Christoph Junghans <> - 2022-4
- Rebuild for gromacs-2021

* Tue Feb 01 2022 Christoph Junghans <> - 2022-3
- Remove espressopp tutorial and hence py2 dep

* Sat Jan 22 2022 Fedora Release Engineering <> - 2022-2
- Rebuilt for

* Sun Jan 16 2022 Christoph Junghans <> - 2022-1
- Version bump to v2020 (bug #2041116)

* Wed Dec 29 2021 Christoph Junghans <> - 2022~rc2-2
- Incorporated changes from package review (bug #2032487#c7)

* Thu Dec 23 2021 Christoph Junghans <> - 2022~rc2-1
- initial import (bug #2032487)