353d06d
Name:           kim-api
92622f6
Version:        2.2.1
7e964d0
%global sover   2
700e421
Release:        9%{?dist}
eef6648
Summary:        Open Knowledgebase of Interatomic Models KIM API
eef6648
License:        CDDL-1.0
eef6648
Url:            https://www.openkim.org
eef6648
Source0:        https://s3.openkim.org/kim-api/kim-api-%{version}.txz
353d06d
BuildRequires:  gcc-c++
353d06d
BuildRequires:  gcc-gfortran
eef6648
BuildRequires:  pkgconfig
353d06d
BuildRequires:  bash-completion
e7d8a27
%global b_compdir %(pkg-config --variable=completionsdir bash-completion)
e7d8a27
%if "%{b_compdir}" == ""
0067e20
%global b_compdir /etc/bash_completion.d
353d06d
%endif
0067e20
%global z_compdir %{_datadir}/zsh/site-functions
eef6648
BuildRequires:  cmake3 >= 3.4
eef6648
BuildRequires:  vim
353d06d
353d06d
%description
353d06d
OpenKIM is an online framework for making molecular simulations reliable,
eef6648
reproducible, and portable.  Models conforming to the KIM application
eef6648
programming interface work seamlessly with major simulation codes that have
eef6648
adopted the KIM-API standard.
eef6648
eef6648
This package can be used to load all the files (libraries, headers, and
eef6648
documentation) for the KIM-API.
353d06d
353d06d
%package devel
353d06d
Summary:    Development headers and libraries for kim-api
7e964d0
Requires:   %{name}%{?_isa} = %{version}-%{release}
353d06d
353d06d
%description devel
353d06d
OpenKIM is an online framework for making molecular simulations reliable,
eef6648
reproducible, and portable.  Models conforming to the KIM application
eef6648
programming interface work seamlessly with major simulation codes that have
eef6648
adopted the KIM-API standard.
eef6648
eef6648
This package contains the development files (headers and documentation) for the
eef6648
KIM-API.
eef6648
eef6648
%package examples
eef6648
Summary:    Example models for kim-api
7e964d0
Requires:   %{name}%{?_isa} = %{version}-%{release}
eef6648
eef6648
%description examples
eef6648
OpenKIM is an online framework for making molecular simulations reliable,
eef6648
reproducible, and portable.  Models conforming to the KIM application
eef6648
programming interface work seamlessly with major simulation codes that have
eef6648
adopted the KIM-API standard.
353d06d
eef6648
This package contains the example models for the KIM-API.
353d06d
353d06d
%prep
eef6648
%setup -q
353d06d
353d06d
%build
c104a1b
%{cmake3} -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} -DBASH_COMPLETION_COMPLETIONSDIR=%{b_compdir} -DZSH_COMPLETION_COMPLETIONSDIR=%{z_compdir}
c104a1b
%cmake_build
353d06d
353d06d
%install
c104a1b
%cmake_install
eef6648
eef6648
# emacs files
7e964d0
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
eef6648
mv %{buildroot}/usr/share/emacs/site-lisp/kim-api/kim-api-c-style.el %{buildroot}%{_datadir}/emacs/site-lisp/kim-api-c-style.el
b26db05
rm %{buildroot}/usr/share/doc/kim-api/{LICENSE.CDDL,NEWS}
eef6648
eef6648
%ldconfig_scriptlets
353d06d
353d06d
%files
b26db05
%doc README.md NEWS
353d06d
%license LICENSE.CDDL
eef6648
%{_bindir}/kim-api-*
7e964d0
%dir %{_libexecdir}/kim-api
b26db05
%{_libexecdir}/kim-api/kim-api-*
b26db05
%{_libdir}/libkim-api.so.%{sover}*
e7d8a27
%{b_compdir}/kim-api-collections-management.bash
e7d8a27
%{z_compdir}/_kim-api-collections-management
eef6648
%{_datadir}/emacs/site-lisp/kim-api-c-style.el
353d06d
353d06d
%files devel
eef6648
%{_includedir}/kim-api/
eef6648
%{_libdir}/kim-api/mod/
eef6648
%{_datadir}/cmake/
eef6648
%dir %{_libdir}/kim-api/
eef6648
%{_libdir}/libkim-api.so
eef6648
%{_libdir}/pkgconfig/libkim-api.pc
eef6648
eef6648
%files examples
eef6648
%{_libdir}/kim-api/model-drivers/
ae89b97
%{_libdir}/kim-api/portable-models/
eef6648
%{_libdir}/kim-api/simulator-models/
353d06d
353d06d
%changelog
700e421
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-9
700e421
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
700e421
e3fcb57
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-8
e3fcb57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e3fcb57
1f55f5d
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
1f55f5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
1f55f5d
a410f5c
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-6
a410f5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
a410f5c
e920ef1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-5
e920ef1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e920ef1
f02514d
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
f02514d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f02514d
2e103b5
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-3
2e103b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2e103b5
d6bbe88
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
d6bbe88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d6bbe88
92622f6
* Mon Dec 14 14:51:28 MST 2020 Christoph Junghans <junghans@votca.org> - 2.2.1-1
92622f6
- Version bump to v2.2.1 (bug #1907279)
92622f6
b26db05
* Wed Nov 18 19:45:40 MST 2020 Christoph Junghans <junghans@votca.org> - 2.2.0-1
b26db05
- Version bump to v2.2.0 (bug #1899347)
b26db05
c104a1b
* Mon Aug 03 2020 Christoph Junghans <junghans@votca.org> - 2.1.3-5
c104a1b
- Fix out-of-source build on F33 (bug #1863940)
c104a1b
95f1529
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-4
95f1529
- Second attempt - Rebuilt for
95f1529
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
95f1529
234fb0b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-3
234fb0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
234fb0b
336398c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-2
336398c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
336398c
dd9b9ee
* Mon Aug 26 2019 Christoph Junghans <junghans@votca.org> - 2.1.3-1
dd9b9ee
- Version bump to 2.1.3 (bug #1742785)
dd9b9ee
ae89b97
* Tue Jul 30 2019 Ryan S. Elliott <relliott@umn.edu> - 2.1.2-1
ae89b97
- update to 2.1.2 and add zsh completions
ae89b97
8327d55
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
8327d55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8327d55
1f61c0c
* Thu Jun 06 2019 Christoph Junghans <junghans@votca.org> - 2.0.2-3
1f61c0c
- fix pkg-config file on 32-bit archs
1f61c0c
7e964d0
* Sat Apr 13 2019 Christoph Junghans <junghans@votca.org> - 2.0.2-2
7e964d0
- Comments from review (bug #1699487)
7e964d0
eef6648
* Wed Apr 10 2019 Christoph Junghans <junghans@votca.org> - 2.0.2-1
353d06d
- Initial commit