Drop gtest-devel dependency
Resolves: rhbz#1977606
This commit is contained in:
parent
9bb00cc2d9
commit
29fdc19583
16
zstd.spec
16
zstd.spec
@ -11,9 +11,12 @@
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# Disable gtest
|
||||
%bcond_with gtest
|
||||
|
||||
Name: zstd
|
||||
Version: 1.4.9
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Zstd compression library
|
||||
|
||||
License: BSD and GPLv2
|
||||
@ -23,7 +26,10 @@ Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{n
|
||||
Patch1: pzstd.1.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc gtest-devel
|
||||
BuildRequires: gcc
|
||||
%if %{with gtest}
|
||||
BuildRequires: gtest-devel
|
||||
%endif
|
||||
%if %{with pzstd}
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
@ -74,9 +80,11 @@ export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export LDFLAGS="$RPM_LD_FLAGS"
|
||||
make -C tests test-zstd
|
||||
%if %{with pzstd}
|
||||
%if %{with gtest}
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
make -C contrib/pzstd test
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||
@ -121,6 +129,10 @@ install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
|
||||
%ldconfig_scriptlets -n lib%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jul 01 2021 Jakub Martisko <jamartis@redhat.com> - 1.4.9-3
|
||||
- Drop gtest-devel dependency
|
||||
Resolves: rhbz#1977606
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.9-2
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user