19647fd
Name:           mctc-lib
19647fd
Version:        0.3.0
7ab7550
Release:        8%{?dist}
19647fd
Summary:        Modular computation tool chain library
19647fd
License:        ASL 2.0
19647fd
URL:            https://grimme-lab.github.io/mctc-lib/
19647fd
Source0:        https://github.com/grimme-lab/mctc-lib/archive/v%{version}/%{name}-%{version}.tar.gz
19647fd
19647fd
BuildRequires:  python3-devel
19647fd
BuildRequires:  gcc-gfortran
19647fd
BuildRequires:  meson
19647fd
BuildRequires:  ninja-build
19647fd
BuildRequires:  json-fortran-devel
19647fd
# For docs
19647fd
BuildRequires:  rubygem-asciidoctor
19647fd
19647fd
# Patch to use python3 instead of env python
19647fd
Patch0:         mctc-lib-0.3.0-python3.patch
19647fd
19647fd
%description
19647fd
Common tool chain for working with molecular structure data in various
19647fd
applications. This library provides a unified way to perform
19647fd
operations on molecular structure data, like reading and writing to
19647fd
common geometry file formats.
19647fd
19647fd
%package        devel
19647fd
Summary:        Development files for %{name}
19647fd
Requires:       %{name}%{?_isa} = %{version}-%{release}
19647fd
19647fd
%description    devel
19647fd
The %{name}-devel package contains libraries and header files for
19647fd
developing applications that use %{name}.
19647fd
19647fd
%prep
19647fd
%setup -q
19647fd
%patch0 -p1 -b .python3
19647fd
19647fd
%build
19647fd
export FFLAGS="%{optflags} -I%{_fmoddir} -fPIC"
19647fd
export FCLAGS="%{optflags} -I%{_fmoddir} -fPIC"
19647fd
%meson
19647fd
%meson_build
19647fd
19647fd
%install
19647fd
%meson_install
19647fd
# Remove static libraries
19647fd
rm -f %{buildroot}%{_libdir}/*.a
19647fd
19647fd
# Move module files
19647fd
mkdir -p %{buildroot}%{_fmoddir}
19647fd
mv %{buildroot}%{_includedir}/mctc-lib/*/*.mod %{buildroot}%{_fmoddir}
19647fd
rm -rf %{buildroot}%{_includedir}/mctc-lib/
19647fd
19647fd
%files
19647fd
%license LICENSE
19647fd
%doc README.md
19647fd
%{_bindir}/mctc-convert
19647fd
%{_mandir}/man1/mctc-convert.1*
19647fd
%{_libdir}/libmctc-lib*.so.0*
19647fd
19647fd
%files devel
19647fd
%{_fmoddir}/mctc_*.mod
19647fd
%{_libdir}/pkgconfig/mctc-lib.pc
19647fd
%{_libdir}/libmctc-lib.so
19647fd
19647fd
%changelog
7ab7550
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
7ab7550
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7ab7550
9d69b1b
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
9d69b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
9d69b1b
15f58f5
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
15f58f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
15f58f5
37f3e80
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
37f3e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
37f3e80
b3dece8
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
b3dece8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b3dece8
19647fd
* Wed Jun 15 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.0-3
19647fd
- Use %%{_fmoddir} in spec.
19647fd
19647fd
* Thu Jun 09 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.0-2
19647fd
- Fix build in mock.
19647fd
19647fd
* Tue May 24 2022 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.3.0-1
19647fd
- Initial release.