From 90a4de47d4e164cb6c5afc14262260b78fc6874f Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 8 Feb 2021 22:33:42 +0100 Subject: [PATCH 1/2] Update to 1.2 --- libmysofa.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libmysofa.spec b/libmysofa.spec index 4342650..8c65dad 100644 --- a/libmysofa.spec +++ b/libmysofa.spec @@ -12,7 +12,7 @@ %endif Name: libmysofa -Version: 1.1 +Version: 1.2 Release: 4%{?dist} Summary: C functions for reading HRTFs @@ -102,6 +102,9 @@ make test || (cat Testing/Temporary/LastTest.log && exit 1) %changelog +* Mon Feb 08 2021 Nicolas Chauvet - 1.2-4 +- Update to 1.2 + * Tue Jan 26 2021 Fedora Release Engineering - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 3146b02..fea7da5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libmysofa-1.1.tar.gz) = 8feafbf447f21f3ef5a283f5f494a647dd5db47cc43af4cc26efeae9f8684c93f5aa1131d8c5570d1d7811c3e3b08763fabdfad2beff0858eeb3cb78dda22332 +SHA512 (libmysofa-1.2.tar.gz) = 5d6f46b8c3a9c464db25fbb2cda1f7172429f4ac79d95d29396edcb49312cf80fdfc0d46132745892b502be142f80e70126c7bae5891c1423b19bde7df0e8a56 From 9a817750d024bfa7ac8cf6e2c0efcb51e208d100 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 8 Feb 2021 22:39:27 +0100 Subject: [PATCH 2/2] Drop patch --- libmysofa-no_static.patch | 87 --------------------------------------- libmysofa.spec | 2 - 2 files changed, 89 deletions(-) delete mode 100644 libmysofa-no_static.patch diff --git a/libmysofa-no_static.patch b/libmysofa-no_static.patch deleted file mode 100644 index a840252..0000000 --- a/libmysofa-no_static.patch +++ /dev/null @@ -1,87 +0,0 @@ -diff -up libmysofa-1.1/CMakeLists.txt.static libmysofa-1.1/CMakeLists.txt ---- libmysofa-1.1/CMakeLists.txt.static 2020-06-13 17:02:13.000000000 +0200 -+++ libmysofa-1.1/CMakeLists.txt 2020-07-08 10:13:45.639569055 +0200 -@@ -7,6 +7,7 @@ include(GNUInstallDirs) - - option(BUILD_TESTS "Build test programs" ON) - option(BUILD_SHARED_LIBS "Build shared library" ON) -+option(BUILD_STATIC_LIBS "Build static library" OFF) - option(CODE_COVERAGE "Enable coverage reporting" ON) - - set(CPACK_PACKAGE_DESCRIPTION "SOFA file reader for better HRTFs") -diff -up libmysofa-1.1/src/CMakeLists.txt.static libmysofa-1.1/src/CMakeLists.txt ---- libmysofa-1.1/src/CMakeLists.txt.static 2020-06-13 17:02:13.000000000 +0200 -+++ libmysofa-1.1/src/CMakeLists.txt 2020-07-08 10:18:22.885044829 +0200 -@@ -75,6 +75,7 @@ set(libsrc - hrtf/easy.c - hrtf/cache.c - resampler/speex_resampler.c) -+if(BUILD_STATIC_LIBS) - add_library(mysofa-static STATIC ${libsrc}) - target_link_libraries(mysofa-static LINK_PRIVATE ${MATH} ${ZLIB_LIBRARIES}) - set_target_properties( -@@ -83,15 +84,16 @@ set_target_properties( - ON) - install(TARGETS mysofa-static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) - --if(UNIX -- AND CODE_COVERAGE -- AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") -- target_compile_options(mysofa-static PUBLIC -g -O0 -Wall -fprofile-arcs -- -ftest-coverage) -- if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13) -- target_link_options(mysofa-static PUBLIC --coverage) -- else() -- target_link_libraries(mysofa-static LINK_PUBLIC gcov --coverage) -+ if(UNIX -+ AND CODE_COVERAGE -+ AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") -+ target_compile_options(mysofa-static PUBLIC -g -O0 -Wall -fprofile-arcs -+ -ftest-coverage) -+ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13) -+ target_link_options(mysofa-static PUBLIC --coverage) -+ else() -+ target_link_libraries(mysofa-static LINK_PUBLIC gcov --coverage) -+ endif() - endif() - endif() - -@@ -137,7 +139,11 @@ install(FILES hrtf/mysofa.h DESTINATION - - if(BUILD_TESTS) - add_executable(mysofa2json tests/sofa2json.c tests/json.c) -- target_link_libraries(mysofa2json mysofa-static) -+ if(BUILD_STATIC_LIBS) -+ target_link_libraries(mysofa2json mysofa-static) -+ else() -+ target_link_libraries(mysofa2json mysofa-shared) -+ endif() - - add_executable( - external -@@ -159,7 +159,11 @@ if(BUILD_TESTS) - tests/cache.c - tests/json.c - tests/user_defined_variable.c) -- target_link_libraries(external mysofa-static ${CUNIT_LIBRARIES}) -+ if(BUILD_STATIC_LIBS) -+ target_link_libraries(external mysofa-static ${CUNIT_LIBRARIES}) -+ else() -+ target_link_libraries(external mysofa-shared ${CUNIT_LIBRARIES} m) -+ endif() - add_test( - NAME external - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} -@@ -173,7 +177,11 @@ if(BUILD_TESTS) - COMMAND internal) - - add_executable(multithread tests/multithread.c) -- target_link_libraries(multithread mysofa-static pthread) -+ if(BUILD_STATIC_LIBS) -+ target_link_libraries(multithread mysofa-static pthread) -+ else() -+ target_link_libraries(multithread mysofa-shared pthread m) -+ endif() - add_test( - NAME multithread - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} diff --git a/libmysofa.spec b/libmysofa.spec index 8c65dad..16d2e83 100644 --- a/libmysofa.spec +++ b/libmysofa.spec @@ -19,8 +19,6 @@ Summary: C functions for reading HRTFs License: BSD URL: https://github.com/hoene/libmysofa Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz -# See https://github.com/hoene/libmysofa/pull/127 -Patch0: libmysofa-no_static.patch BuildRequires: cmake3 BuildRequires: gcc