Add devsettool BR for EPEL

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
This commit is contained in:
Jonathan Dieter 2018-10-20 20:55:27 +01:00
parent bbfe156afe
commit e03676de94
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: duperemove
Version: 0.11
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Tools for deduping file systems
License: GPLv2
URL: https://github.com/markfasheh/%{name}
@ -12,6 +12,10 @@ BuildRequires: libgcrypt-devel
BuildRequires: xxhash-devel
BuildRequires: libatomic
BuildRequires: gcc
# Enable devtoolset so we get libatomic in EPEL
%if 0%{?rhel} == 7
BuildRequires: devtoolset-7-toolchain, devtoolset-7-libatomic-devel
%endif
%description
Duperemove is a simple tool for finding duplicated extents and
@ -28,6 +32,9 @@ rm -f xxhash.c xxhash.h
%build
%set_build_flags
%if 0%{?rhel}
. /opt/rh/devtoolset-7/enable
%endif
%make_build
%install
@ -46,6 +53,9 @@ rm -f xxhash.c xxhash.h
%{_sbindir}/show-shared-extents
%changelog
* Sat Oct 20 2018 Jonathan Dieter <jdieter@gmail.com> - 0.11-3
- Add devsettool BR and build for EPEL
* Fri Oct 19 2018 Jonathan Dieter <jdieter@gmail.com> - 0.11-2
- Add missing BR
- Fix build to use build flags