Simplify spec now that we no longer support el7

Less conditionals = more win
This commit is contained in:
Jonathan Lebon 2019-03-27 17:34:21 -04:00
parent 1bbf6bb833
commit d4c62747b8

View File

@ -19,13 +19,9 @@ ExclusiveArch: %{rust_arches}
%if 0%{?fedora}
BuildRequires: rust-packaging
%else
%if 0%{?rhel} < 8
# really, this is for CentOS 7 (CAHC)
BuildRequires: cargo
%else
# assume el8
BuildRequires: rust-toolset
%endif
%endif
# For the autofiles bits below
BuildRequires: /usr/bin/python3
@ -64,11 +60,7 @@ BuildRequires: pkgconfig(libcurl)
BuildRequires: cmake
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(check)
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
BuildRequires: libsolv-devel
%else
BuildRequires: pkgconfig(libsolv)
%endif
# We need g++ for libdnf
BuildRequires: gcc-c++
@ -87,11 +79,6 @@ BuildRequires: gpgme-devel
Requires: libmodulemd%{?_isa} >= %{libmodulemd_version}
# In CentOS7/RHEL the package is client-only right now, but we can do both
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
Provides: rpm-ostree-client
%endif
# For now...see https://github.com/projectatomic/rpm-ostree/pull/637
# and https://github.com/fedora-infra/fedmsg-atomic-composer/pull/17
# etc. We'll drop this dependency at some point in the future when
@ -128,13 +115,7 @@ The %{name}-devel package includes the header files for %{name}-libs.
%build
env NOCONFIGURE=1 ./autogen.sh
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
# https://github.com/projectatomic/rpm-ostree/pull/1732/
# https://bugzilla.redhat.com/show_bug.cgi?id=1672404
%configure --disable-silent-rules --enable-gtk-doc --disable-dfd-over-dbus
%else
%configure --disable-silent-rules --enable-gtk-doc
%endif
make %{?_smp_mflags}
%install