From e9950465a9d5c736af7d981a115190963a276b93 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 27 Sep 2017 14:55:55 -0700 Subject: [PATCH] Cleanup spec file conditionals --- libblockdev.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libblockdev.spec b/libblockdev.spec index 94bb269..5582c2f 100644 --- a/libblockdev.spec +++ b/libblockdev.spec @@ -15,10 +15,8 @@ %define with_fs 1 %define with_gi 1 -%define is_rhel 0%{?rhel} != 0 - -# python3 is not available on RHEL -%if %{is_rhel} +# python3 is not available on older RHEL +%if ! 0%{?fedora} || 0%{?rhel} <= 7 %define with_python3 0 %define with_bcache 0 %define with_lvm_dbus 0 @@ -69,7 +67,7 @@ Name: libblockdev Version: 2.12 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for low-level manipulation with block devices License: LGPLv2+ URL: https://github.com/storaged-project/libblockdev @@ -799,6 +797,9 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm} %files plugins-all %changelog +* Wed Sep 27 2017 Troy Dawson - 2.12-2 +- Cleanup spec file conditionals + * Wed Aug 30 2017 Vratislav Podzimek - 2.12-1 - Own directories /etc/libblockdev and /etc/libblockdev/conf.d (vtrefny) - Wait for resized partition (kailueke)