- Align path for document installation between openSUSE versions. OBS-URL: https://build.opensuse.org/request/show/1154913 OBS-URL: https://build.opensuse.org/package/show/science/kim-api?expand=0&rev=74
139 lines
4.4 KiB
RPMSpec
139 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package kim-api
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2018--2020 Christoph Junghans, Ryan S. Elliott
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: kim-api
|
|
Version: 2.3.0
|
|
Release: 0
|
|
Summary: Open Knowledgebase of Interatomic Models KIM API
|
|
License: LGPL-2.1-or-later
|
|
Group: Productivity/Scientific/Chemistry
|
|
URL: https://openkim.org
|
|
Source0: https://s3.openkim.org/kim-api/kim-api-%{version}.txz
|
|
BuildRequires: cmake >= 3.10
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc-fortran
|
|
BuildRequires: pkg-config
|
|
BuildRequires: vim
|
|
Requires: libkim-api2 = %{version}
|
|
|
|
%description
|
|
OpenKIM is an online framework for making molecular simulations reliable,
|
|
reproducible, and portable. Models conforming to the KIM application
|
|
programming interface work seamlessly with major simulation codes that have
|
|
adopted the KIM-API standard.
|
|
|
|
This package can be used to load all the files (libraries, headers, and
|
|
documentation) for the KIM-API.
|
|
|
|
%package -n libkim-api2
|
|
Summary: The kim-api library
|
|
Group: System/Libraries
|
|
|
|
%description -n libkim-api2
|
|
OpenKIM is an online framework for making molecular simulations reliable,
|
|
reproducible, and portable. Models conforming to the KIM application
|
|
programming interface work seamlessly with major simulation codes that have
|
|
adopted the KIM-API standard.
|
|
|
|
This package contains the kim-api library.
|
|
|
|
%package devel
|
|
Summary: Development headers and libraries for kim-api
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: libkim-api2 = %{version}
|
|
Requires: vim
|
|
|
|
%description devel
|
|
OpenKIM is an online framework for making molecular simulations reliable,
|
|
reproducible, and portable. Models conforming to the KIM application
|
|
programming interface work seamlessly with major simulation codes that have
|
|
adopted the KIM-API standard.
|
|
|
|
This package contains the development files (headers and documentation) for the
|
|
KIM-API.
|
|
|
|
%package examples
|
|
Summary: Example models for kim-api
|
|
Group: Productivity/Scientific/Chemistry
|
|
|
|
%description examples
|
|
OpenKIM is an online framework for making molecular simulations reliable,
|
|
reproducible, and portable. Models conforming to the KIM application
|
|
programming interface work seamlessly with major simulation codes that have
|
|
adopted the KIM-API standard.
|
|
|
|
This package contains the example models for the KIM-API.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
|
|
%if 0%{?suse_version} < 1600
|
|
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
|
|
%endif
|
|
-DBASH_COMPLETION_COMPLETIONSDIR=%{_datadir}/bash-completion/completions \
|
|
-DZSH_COMPLETION_COMPLETIONSDIR=%{_datadir}/zsh/functions/Unix ..
|
|
%make_jobs
|
|
|
|
%install
|
|
%cmake_install
|
|
mkdir -p %{buildroot}/usr/share/emacs/site-lisp
|
|
mv %{buildroot}/usr/share/emacs/site-lisp/kim-api/kim-api-c-style.el %{buildroot}%{_datadir}/emacs/site-lisp/kim-api-c-style.el
|
|
rm %{buildroot}%{_docdir}/kim-api/{LICENSE.LGPL,NEWS,README.md}
|
|
|
|
%post -n libkim-api2 -p /sbin/ldconfig
|
|
%postun -n libkim-api2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc README.md NEWS
|
|
%license LICENSE.LGPL
|
|
%{_bindir}/kim-api-*
|
|
%{_libexecdir}/kim-api/kim-api-*
|
|
%ifnarch i686
|
|
%dir %{_libexecdir}/kim-api
|
|
%endif
|
|
%{_datadir}/bash-completion/completions/kim-api-collections-management.bash
|
|
%dir %{_datadir}/zsh
|
|
%dir %{_datadir}/zsh/functions
|
|
%dir %{_datadir}/zsh/functions/Unix
|
|
%{_datadir}/zsh/functions/Unix/_kim-api-collections-management
|
|
%{_datadir}/emacs/site-lisp/kim-api-c-style.el
|
|
|
|
%files -n libkim-api2
|
|
%{_libdir}/libkim-api.so.*
|
|
|
|
%files devel
|
|
%license LICENSE.LGPL
|
|
%{_includedir}/kim-api/
|
|
%{_libdir}/kim-api/mod/
|
|
%{_datadir}/cmake/
|
|
%dir %{_libdir}/kim-api/
|
|
%{_libdir}/libkim-api.so
|
|
%{_libdir}/pkgconfig/libkim-api.pc
|
|
|
|
%files examples
|
|
%{_libdir}/kim-api/model-drivers/
|
|
%{_libdir}/kim-api/portable-models/
|
|
%{_libdir}/kim-api/simulator-models/
|
|
|
|
%changelog
|