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
This commit is contained in:
Jeff Moyer 2021-08-02 12:27:39 -04:00
parent ab61d75a0d
commit da5ddcbe11

View File

@ -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 <jmoyer@redhat.com> - 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 <jmoyer@redhat.com> - 1.12-4.el9
- Disable make check
- Resolves: rhbz#1970104