From 542bc009a89004e561c58afcf8f430510b2e0637 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 18 Aug 2022 20:15:21 +0200 Subject: [PATCH] BuildReq cargo --- drbd-reactor.spec | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drbd-reactor.spec b/drbd-reactor.spec index b0a47ec..d55f1f0 100644 --- a/drbd-reactor.spec +++ b/drbd-reactor.spec @@ -1,28 +1,29 @@ %define debug_package %{nil} -Name: drbd-reactor -Version: 0.8.0 -Release: 1 -Summary: React to DRBD events via plugins. +Name: drbd-reactor +Version: 0.8.0 +Release: 1 +Summary: React to DRBD events via plugins. %global tarball_version %(echo "%{version}" | sed -e 's/~rc/-rc/' -e 's/~alpha/-alpha/') -Group: System Environment/Daemons -License: ASL 2.0 -URL: https://www.github.com/LINBIT/drbd-reactor -Source0: https://pkg.linbit.com/downloads/drbd/utils/%{name}-%{tarball_version}.tar.gz +Group: System Environment/Daemons +License: ASL 2.0 +URL: https://www.github.com/LINBIT/drbd-reactor +Source0: https://pkg.linbit.com/downloads/drbd/utils/%{name}-%{tarball_version}.tar.gz -BuildRequires: systemd +BuildRequires: systemd +BuildRequires: cargo # While most pkgs I looked at have bash-completion as BuildRequires, I don't think we need it # looks like it would only help for cmake or pkgconfig projects. # BuildRequires: bash-completion -Requires: drbd-utils >= 9.21.2 -Requires: python3 +Requires: drbd-utils >= 9.21.2 +Requires: python3 # python3{,6}-toml is for rhel7/8 only in epel, but we mirror that pkg %if 0%{?suse_version} >= 1500 || 0%{?rhel} >= 8 -Requires: python3-toml +Requires: python3-toml %else %if 0%{?rhel} == 7 -Requires: python36-toml +Requires: python36-toml %endif %endif