6a7cc32
%global soversion 1
6a7cc32
6a7cc32
Name:           mopac
61ac4f4
Version:        22.0.4
61ac4f4
Release:        1%{?dist}
6a7cc32
Summary:        A semiempirical quantum chemistry program
6a7cc32
License:        LGPLv3+
6a7cc32
URL:            http://openmopac.net
6a7cc32
Source0:        https://github.com/openmopac/mopac/archive/v%{version}/%{name}-%{version}.tar.gz
6a7cc32
6a7cc32
BuildRequires:  flexiblas-devel
6a7cc32
BuildRequires:  python3-devel
6a7cc32
BuildRequires:  python3-numpy
6a7cc32
BuildRequires:  gcc-gfortran
6a7cc32
BuildRequires:  cmake
6a7cc32
BuildRequires:  make
6a7cc32
6a7cc32
# Turn off rpath
6a7cc32
Patch1:         mopac-22.0.1-rpath.patch
6a7cc32
6a7cc32
# For license file
6a7cc32
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
6a7cc32
6a7cc32
%description
6a7cc32
The modern open-source version of the Molecular Orbital PACkage
6a7cc32
(MOPAC), a semiempirical quantum chemistry program based on Dewar and
6a7cc32
Thiel's NDDO approximation.
6a7cc32
6a7cc32
%package libs
6a7cc32
Summary:        MOPAC runtime libraries
6a7cc32
6a7cc32
%description libs
6a7cc32
This package contains MOPAC's runtime libraries.
6a7cc32
6a7cc32
%package devel
6a7cc32
Summary:        MOPAC development library
6a7cc32
Requires:       %{name}-libs%{_isa} = %{version}-%{release}
6a7cc32
6a7cc32
%description devel
6a7cc32
This package contains MOPAC's development library.
6a7cc32
6a7cc32
%prep
6a7cc32
%setup -q
6a7cc32
%patch1 -p1 -b .rpath
6a7cc32
6a7cc32
%build
6a7cc32
%cmake -DENABLE_MKL=OFF -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF
6a7cc32
%cmake_build
6a7cc32
6a7cc32
%install
6a7cc32
%cmake_install
6a7cc32
6a7cc32
%check
6a7cc32
# Turn off use of OpenMP parallel BLAS since CTest runs in parallel
6a7cc32
export OMP_NUM_THREADS=1
6a7cc32
%ctest
6a7cc32
6a7cc32
%files
6a7cc32
%{_bindir}/mopac
6a7cc32
%{_bindir}/mopac-makpol
6a7cc32
%{_bindir}/mopac-param
6a7cc32
6a7cc32
%files libs
6a7cc32
%license COPYING COPYING.lesser
6a7cc32
%doc README.md AUTHORS.rst
6a7cc32
%{_libdir}/libmopac.so.%{soversion}*
6a7cc32
6a7cc32
%files devel
6a7cc32
%{_libdir}/libmopac.so
6a7cc32
6a7cc32
%changelog
61ac4f4
* Thu Jul 28 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.4-1
61ac4f4
- Update to 22.0.4.
61ac4f4
4ce7664
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 22.0.3-2
4ce7664
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4ce7664
b1beb85
* Sat Jun 25 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.3-1
b1beb85
- Update to 22.0.3.
b1beb85
2d7beaa
* Tue Jun 21 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.2-1
2d7beaa
- Update to 22.0.2.
2d7beaa
6a7cc32
* Thu Jun 09 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.1-2
6a7cc32
- Fix build in mock.
6a7cc32
6a7cc32
* Tue May 17 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.1-1
6a7cc32
- Update to 22.0.1.
6a7cc32
6a7cc32
* Mon May 02 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 22.0.0-1
6a7cc32
- First release.
6a7cc32