File cm256cc.spec of Package cm256cc
#
# spec file for package cm256cc
#
# Copyright (c) 2017-2025, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#
%define sover 1
Name: cm256cc
Version: 1.1.2
Release: 0
Summary: Fast GF(256) Cauchy MDS Block Erasure Codec in C++
License: BSD-2-Clause
Group: Development/Languages/C and C++
URL: https://github.com/f4exb/cm256cc
Source: https://github.com/f4exb/cm256cc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
This is the rewrite in (as much as possible) clean C++ of cm256.
cm256cc is a simple library for erasure codes. From given data it
generates redundant data that can be used to recover the originals.
%package devel
Summary: Development files for the cm256cc library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
This is the rewrite in (as much as possible) clean C++ of cm256.
cm256cc is a simple library for erasure codes. From given data it
generates redundant data that can be used to recover the originals.
This subpackage contains libraries and header files for developing
applications that want to make use of libcm256cc.
%prep
%autosetup
%build
%cmake
%make_jobs
%install
%cmake_install
%ldconfig_scriptlets
%files
%doc README.md
%{_bindir}/cm256_rx
%{_bindir}/cm256_test
%{_bindir}/cm256_tx
%{_libdir}/libcm256cc.so.%{sover}*
%files devel
%{_includedir}/cm256cc
%{_libdir}/libcm256cc.so
%{_libdir}/pkgconfig/libcm256cc.pc
%changelog