Fix builds for EPEL-8

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
This commit is contained in:
Jonathan Dieter 2019-12-10 20:07:40 +00:00
parent 631d382e38
commit bafed36430
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Name: duperemove
Version: 0.11.1
Release: 1%{?dist}
Release: 1%{?dist}.1
Summary: Tools for deduping file systems
License: GPLv2
URL: https://github.com/markfasheh/%{name}
@ -12,8 +12,8 @@ BuildRequires: libgcrypt-devel
BuildRequires: xxhash-devel
BuildRequires: libatomic
BuildRequires: gcc
# Enable devtoolset so we get libatomic in EPEL
%if 0%{?rhel} == 7
# Enable devtoolset so we get libatomic in EPEL-7
%if 0%{?el7}
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
%endif
@ -32,7 +32,7 @@ rm -f xxhash.c xxhash.h
%build
%set_build_flags
%if 0%{?rhel}
%if 0%{?el7}
. /opt/rh/devtoolset-7/enable
%endif
%make_build
@ -53,6 +53,9 @@ rm -f xxhash.c xxhash.h
%{_sbindir}/show-shared-extents
%changelog
* Tue Dec 10 2019 Jonathan Dieter <jdieter@gmail.com> - 0.11.1-1.1
- Fix build for EPEL-8
* Sun Dec 08 2019 Jonathan Dieter <jdieter@gmail.com> - 0.11.1-1
- New release