# The naming scheme in non-Mandriva-based distros %if 0%{!?mklibname:1} %define mklibname(ds) lib%{1}%{?2:%{2}}%{-s:-static}%{-d:-devel} %endif %define libname %mklibname %{name} %define devname %mklibname %{name} -d Name: openfec Version: 1.4.2.11 Release: 1.1%{?dist} Summary: Application-Level Forward Erasure Correction codes License: CeCILL-C and GPLv2+ and BSD # GPLv2+: # tools/descr_stats_v1.2/descr_stats.c # BSD: # src/lib_stable/reed-solomon_gf_2_8/of_reed-solomon_gf_2_8.c # src/lib_stable/reed-solomon_gf_2_m/galois_field_codes_utils/algebra_2_4.c # src/lib_stable/reed-solomon_gf_2_m/galois_field_codes_utils/algebra_2_4.h # src/lib_stable/reed-solomon_gf_2_m/galois_field_codes_utils/algebra_2_8.c # src/lib_stable/reed-solomon_gf_2_m/galois_field_codes_utils/algebra_2_8.h URL: https://github.com/roc-streaming/openfec Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: coreutils BuildRequires: findutils %description Application-Level Forward Erasure Correction codes %package -n %{libname} Summary: Application-Level Forward Erasure Correction codes Provides: %{name}%{?_isa} = %{version}-%{release} %description -n %{libname} Application-Level Forward Erasure Correction codes, or AL-FEC (also called UL-FEC, for Upper-Layers FEC). The idea, in one line, is to add redundancy in order to be able to recover from erasures. Because of their position in the communication stack, these codes are implemented as software codecs, and they find many applications in robust transmission and distributed storage systems. %package -n %{devname} Summary: Development libraries for openfec Requires: %{name}%{?_isa} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{devname} The %{devname} package contains header files necessary for developing programs using openfec. %package utils Summary: Utilities for openfec Requires: %{name}%{?_isa} = %{version}-%{release} %description utils Utilities for openfec. %prep %autosetup -p1 %build %cmake -DOPTIMIZE=DEFAULT -DINSTALL_DEVTOOLS=ON %cmake_build %install %cmake_install # Install headers mkdir -p %{buildroot}%{_includedir}/%{name} pushd src find -name '*.h' -type f -exec install -pDm 0644 '{}' %{buildroot}%{_includedir}/%{name}/'{}' \; popd %check cd %{_vpath_builddir} make test %files -n %{libname} %license LICENCE_CeCILL-C_V1-en.txt Licence_CeCILL_V2-en.txt %doc README CHANGELOG %{_libdir}/libopenfec.so.1* %files -n %{devname} %{_includedir}/%{name} %{_libdir}/libopenfec.so %{_libdir}/pkgconfig/openfec.pc %files utils %{_bindir}/eperftool %{_bindir}/simple_client %{_bindir}/simple_server %changelog * Thu Jul 18 2024 Fedora Release Engineering - 1.4.2.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.4.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.4.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.4.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 26 2023 Jaroslav Škarvada - 1.4.2.6-1 - New version Resolves: rhbz#2164074 * Thu Jan 19 2023 Fedora Release Engineering - 1.4.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Sep 5 2022 Jaroslav Škarvada - 1.4.2.4-3 - Updated license according to the review Related: rhbz#2121558 * Tue Aug 30 2022 Jaroslav Škarvada - 1.4.2.4-2 - Fixed tests on s390x * Mon Aug 29 2022 Jaroslav Škarvada - 1.4.2.4-1 - New version - Switched to roc-streaming fork * Tue Aug 23 2022 Jaroslav Škarvada - 1.4.2-1 - Initial version