From da5ddcbe119b767846455fe7155a3c14e39136a4 Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Mon, 2 Aug 2021 12:27:39 -0400 Subject: [PATCH] Get rid of BuildRequires that are only used for testing We don't run %check during build, and libunwind-devel has been removed from the distro. Disabled building the tests as well. Resolves: rhbz#1984934 --- libpmemobj-cpp.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libpmemobj-cpp.spec b/libpmemobj-cpp.spec index 28e5c1b..5af36c0 100644 --- a/libpmemobj-cpp.spec +++ b/libpmemobj-cpp.spec @@ -4,7 +4,7 @@ Name: libpmemobj-cpp Version: 1.12 -Release: 4%{?dist} +Release: 5%{?dist} Summary: C++ bindings for libpmemobj # Note: tests/external/libcxx is dual licensed using University of Illinois "BSD-Like" license and the MIT license. It's used only during development/testing and is NOT part of the binary RPM. License: BSD @@ -22,11 +22,6 @@ BuildRequires: perl-Encode BuildRequires: gdb BuildRequires: libatomic -# optional dependencies, used only in tests -BuildRequires: ncurses-devel -BuildRequires: libunwind-devel -BuildRequires: valgrind-devel -BuildRequires: tbb-devel # RHEL does not ship SFML-devel. The library is only used for the pmpong # example program, so the library can be built without this dependency, # and without losing any features. @@ -107,7 +102,7 @@ HTML documentation for libpmemobj++. mkdir build cd build # CXX_STANDARD=17 matters only for tests, it can be safely disabled in distros without c++17-compliant compiler -%cmake .. -DCMAKE_INSTALL_DOCDIR=%{_docdir}/libpmemobj++ -DTESTS_USE_FORCED_PMEM=ON -DCXX_STANDARD=17 +%cmake .. -DCMAKE_INSTALL_DOCDIR=%{_docdir}/libpmemobj++ -DBUILD_TESTS=off -DCXX_STANDARD=17 %make_build %install @@ -115,6 +110,10 @@ cd build %make_install %changelog +* Mon Aug 2 2021 Jeff Moyer - 1.12-5.el9 +- Get rid of BuildRequires that are only used for testing (Jeff Moyer) +- Resolves: rhbz#1984934 + * Wed Jun 9 2021 Jeff Moyer - 1.12-4.el9 - Disable make check - Resolves: rhbz#1970104