Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37044700
en ru br
ALT Linux repositórios
S:1.1.0-alt1

Group :: Sistema/Bibliotecas
RPM: libmmtf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_without doc

Name: libmmtf
Version: 1.1.0
Release: alt1

Summary: The pure C++ implementation of the MMTF API, decoder and encoder

License: MIT
Group: System/Libraries
Url: https://github.com/rcsb/mmtf-cpp/

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-url: https://github.com/rcsb/mmtf-cpp/archive/v%version.tar.gz

Source: %name-%version.tar

ExcludeArch: armh

%if_with doc
BuildRequires: doxygen
%endif

BuildRequires(pre): rpm-macros-cmake
BuildRequires: gcc-c++ cmake

BuildRequires: msgpack-cxx-devel

BuildRequires: ctest catch2-devel
BuildRequires: mmtf_spec >= 1.0

%description
The pure C++ implementation of the MMTF API, decoder and encoder.
The macromolecular transmission format (MMTF) is a binary encoding of biological structures.

%package devel
Summary: Header files for the %name library
Group: Development/C++

%description devel
Header files for the %name library.

%prep
%setup
%__subst "s|.*INTERFACE msgpackc.*||" CMakeLists.txt
%__subst "s|Catch msgpackc | |" tests/CMakeLists.txt
%__subst 's|#include "catch.hpp"|#include <catch2/catch.hpp>|' tests/mmtf_tests.cpp
# fix working dir for tests
#__subst "s| COMMAND mmtf_tests|/tests COMMAND mmtf_tests|" tests/CMakeLists.txt
# use specs from package mmtf_spec
rm -rfv submodules/mmtf_spec && ln -sv %_datadir/mmtf_spec submodules/mmtf_spec

%build
%cmake_insource \
   -DBUILD_TESTS:BOOL=ON
%make_build

%if_with doc
doxygen
%endif

%install
%makeinstall_std

%check
#make test
cd tests
./mmtf_tests
./multi_cpp_test

%files devel
%doc README.md
%if_with doc
%doc doc/html
%endif
%dir %_includedir/mmtf/
%_includedir/mmtf/*.hpp
%_includedir/mmtf.hpp

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009