2 Commits

8 changed files with 37 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">libcorrect</param>
<param name="versionformat">0.0.0+git.%cd</param>
<param name="versionformat">%cd</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
@@ -14,4 +14,3 @@
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@@ -1,4 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/quiet/libcorrect</param>
<param name="changesrevision">85c026df9aebeb61af448d2ffc151fe3e0c8f084</param></service></servicedata>
<service name="tar_scm">
<param name="url">https://github.com/quiet/libcorrect</param>
<param name="changesrevision">f5a28c74fba7a99736fe49d3a5243eca29517ae9</param>
</service>
</servicedata>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de1eef65907e90f8a799ffcb00a74ce2b057eb176d9f0ceb7904dae34e4496e5
size 214920

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:99f6619aa5f93d43756c2fda1b1110ec27719080404e35195081a7e3ecacce16
size 151160

View File

@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8de9197..e73e2a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,7 +62,7 @@ add_subdirectory(tools)
Index: libcorrect-0.0.0+git.20181010/CMakeLists.txt
===================================================================
--- libcorrect-0.0.0+git.20181010.orig/CMakeLists.txt
+++ libcorrect-0.0.0+git.20181010/CMakeLists.txt
@@ -86,7 +86,7 @@ add_subdirectory(tools)
# add_subdirectory(benchmarks)
install(TARGETS correct correct_static
@@ -11,11 +11,11 @@ index 8de9197..e73e2a3 100644
install(FILES ${INSTALL_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
add_library(fec_shim_static EXCLUDE_FROM_ALL src/fec_shim.c ${correct_obj_files})
@@ -73,6 +73,6 @@ add_custom_target(fec-shim-h COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR
@@ -97,6 +97,6 @@ add_custom_target(fec-shim-h COMMAND ${C
add_custom_target(shim DEPENDS fec_shim_static fec_shim_shared fec-shim-h)
install(TARGETS fec_shim_static fec_shim_shared
- DESTINATION lib
+ DESTINATION lib${LIB_SUFFIX}
OPTIONAL)
install(FILES ${CMAKE_BINARY_DIR}/include/fec.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include" OPTIONAL)
install(FILES ${PROJECT_BINARY_DIR}/include/fec.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include" OPTIONAL)

View File

@@ -1,12 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe8bbb7..9cc390d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,6 +59,7 @@ else()
Index: libcorrect-0.0.0+git.20181010/CMakeLists.txt
===================================================================
--- libcorrect-0.0.0+git.20181010.orig/CMakeLists.txt
+++ libcorrect-0.0.0+git.20181010/CMakeLists.txt
@@ -73,6 +73,7 @@ else()
set(correct_obj_files $<TARGET_OBJECTS:correct-reed-solomon> $<TARGET_OBJECTS:correct-convolutional>)
endif()
add_library(correct SHARED ${correct_obj_files})
+set_property(TARGET correct PROPERTY SOVERSION 0.0.0)
add_library(correct_static ${correct_obj_files})
set_target_properties(correct_static PROPERTIES OUTPUT_NAME "correct")
if(HAVE_SSE)

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 26 19:50:01 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to version 20181010:
* Fixes for SSE detection and propagation
* cmake build system fixes
-------------------------------------------------------------------
Thu Feb 29 15:52:02 UTC 2024 - pgajdos@suse.com

View File

@@ -19,7 +19,7 @@
%define sover 0_0_0
Name: libcorrect
Version: 0.0.0+git.20180109
Version: 20181010
Release: 0
Summary: C library for Convolutional codes and Reed-Solomon
License: BSD-3-Clause
@@ -28,8 +28,8 @@ URL: https://github.com/quiet/libcorrect
Source: %{name}-%{version}.tar.xz
Patch0: libcorrect-cmake-libsuffix.diff
Patch1: libcorrect-cmake-set-soversion.diff
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: gcc-c++
%description
libcorrect is a library for Forward Error Correction. By using libcorrect,
@@ -73,7 +73,7 @@ applications that want to make use of libcorrect.
%build
%cmake
%make_jobs
%cmake_build
%install
%cmake_install
@@ -93,8 +93,10 @@ Libs: -lcorrect
Cflags: -I${_includedir}/
EOF
%post -n libcorrect%{sover} -p /sbin/ldconfig
%postun -n libcorrect%{sover} -p /sbin/ldconfig
%check
%ctest
%ldconfig_scriptlets -n libcorrect%{sover}
%files -n libcorrect%{sover}
%license LICENSE
@@ -102,6 +104,7 @@ EOF
%{_libdir}/libcorrect.so.0*
%files devel
%license LICENSE
%{_includedir}/correct*.h
%{_libdir}/libcorrect.so
%{_libdir}/pkgconfig/libcorrect.pc