BuildReq cargo

This commit is contained in:
Daniel Berteaud 2022-08-18 20:15:21 +02:00
parent fc79fb7a1f
commit 542bc009a8
1 changed files with 14 additions and 13 deletions

View File

@ -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