Fix conditional around polkit Recommends for building on EL7

This commit is contained in:
Neal Gompa 2020-09-07 17:15:02 -04:00
parent 81e8fe7195
commit 247c58e5e3

View File

@ -59,7 +59,7 @@
Name: udisks2 Name: udisks2
Summary: Disk Manager Summary: Disk Manager
Version: 2.9.1 Version: 2.9.1
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://github.com/storaged-project/udisks URL: https://github.com/storaged-project/udisks
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2 Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
@ -118,7 +118,7 @@ Requires: eject
# For utab monitor # For utab monitor
Requires: libmount Requires: libmount
%if (0%{?rhel}) && (0%{?rhel} <= 7) %if ! (0%{?rhel} && 0%{?rhel} < 8)
# Not really needed but doesn't make much sense to use UDisks without polkit # Not really needed but doesn't make much sense to use UDisks without polkit
# (weak deps don't work on older versions of RHEL) # (weak deps don't work on older versions of RHEL)
Recommends: polkit Recommends: polkit
@ -460,6 +460,9 @@ fi
%endif %endif
%changelog %changelog
* Mon Sep 07 2020 Neal Gompa <ngompa13@gmail.com> - 2.9.1-2
- Fix conditional around polkit Recommends for building on EL7
* Wed Aug 12 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.1-1 * Wed Aug 12 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.1-1
- Version 2.9.1 - Version 2.9.1
- Renamed zram-setup@.service to udisks2-zram-setup@.service - Renamed zram-setup@.service to udisks2-zram-setup@.service