2020-03-24 17:09:54 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package mmtf-cpp
|
|
|
|
|
#
|
2022-09-07 12:02:44 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-03-24 17:09:54 +00:00
|
|
|
#
|
|
|
|
|
# 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: mmtf-cpp
|
2022-10-26 04:52:30 +00:00
|
|
|
Version: 1.1.0
|
2020-03-24 17:09:54 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: The pure C++ implementation of the MMTF API, decoder and encoder
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Productivity/Scientific/Chemistry
|
2021-02-13 19:19:52 +00:00
|
|
|
URL: https://github.com/rcsb/mmtf-cpp
|
2022-10-26 04:52:30 +00:00
|
|
|
Source0: %{name}-%{version}.tar
|
2021-05-28 20:41:59 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fix_catch2_not_found.patch gh#rcsb/mmtf-cpp#39 andythe_great@pm.me -- Fix issue catch.hpp not found.
|
2021-02-13 19:19:52 +00:00
|
|
|
Patch0: fix_catch2_not_found.patch
|
2021-05-28 20:41:59 +00:00
|
|
|
BuildRequires: cmake >= 3.5
|
2020-03-24 17:09:54 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: gcc-c++
|
2022-09-07 12:02:44 +00:00
|
|
|
BuildRequires: msgpack-cxx-devel
|
2022-10-26 04:52:30 +00:00
|
|
|
BuildRequires: pkgconfig(catch2) < 3
|
2020-03-24 17:09:54 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Macromolecular transmission format documentation, including README, license and HTML docs.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2021-05-28 20:41:59 +00:00
|
|
|
Summary: Development files of %{name}
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2022-09-07 12:02:44 +00:00
|
|
|
Requires: msgpack-cxx-devel
|
2020-03-24 17:09:54 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains libraries and header files for developing
|
|
|
|
|
applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-05-28 20:41:59 +00:00
|
|
|
%autosetup -p1
|
2020-03-24 17:09:54 +00:00
|
|
|
|
|
|
|
|
%build
|
2021-02-13 19:19:52 +00:00
|
|
|
%cmake -DBUILD_TESTS:BOOL=ON \
|
2021-05-28 20:41:59 +00:00
|
|
|
-Dmmtf_build_local:BOOL=ON
|
2022-10-26 04:52:30 +00:00
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
cd ../docs
|
2020-03-24 17:09:54 +00:00
|
|
|
doxygen
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
2022-10-26 04:52:30 +00:00
|
|
|
# Install doc files manually so we can run fdupes on them
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
cp -pr ./docs/html %{buildroot}%{_docdir}/%{name}/
|
|
|
|
|
%fdupes %{buildroot}%{_docdir}/%{name}/html/
|
2020-03-24 17:09:54 +00:00
|
|
|
|
2021-02-13 19:19:52 +00:00
|
|
|
%check
|
|
|
|
|
%ctest
|
2020-03-24 17:09:54 +00:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
2022-10-26 04:52:30 +00:00
|
|
|
%doc %{_docdir}/%{name}/
|
2020-03-24 17:09:54 +00:00
|
|
|
%{_includedir}/mmtf/
|
|
|
|
|
%{_includedir}/*.hpp
|
|
|
|
|
|
|
|
|
|
%changelog
|