BuildReq cargo

This commit is contained in:
Daniel Berteaud 2022-08-18 20:15:21 +02:00
parent fc79fb7a1f
commit 542bc009a8

View File

@ -1,28 +1,29 @@
%define debug_package %{nil} %define debug_package %{nil}
Name: drbd-reactor Name: drbd-reactor
Version: 0.8.0 Version: 0.8.0
Release: 1 Release: 1
Summary: React to DRBD events via plugins. Summary: React to DRBD events via plugins.
%global tarball_version %(echo "%{version}" | sed -e 's/~rc/-rc/' -e 's/~alpha/-alpha/') %global tarball_version %(echo "%{version}" | sed -e 's/~rc/-rc/' -e 's/~alpha/-alpha/')
Group: System Environment/Daemons Group: System Environment/Daemons
License: ASL 2.0 License: ASL 2.0
URL: https://www.github.com/LINBIT/drbd-reactor URL: https://www.github.com/LINBIT/drbd-reactor
Source0: https://pkg.linbit.com/downloads/drbd/utils/%{name}-%{tarball_version}.tar.gz 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 # 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. # looks like it would only help for cmake or pkgconfig projects.
# BuildRequires: bash-completion # BuildRequires: bash-completion
Requires: drbd-utils >= 9.21.2 Requires: drbd-utils >= 9.21.2
Requires: python3 Requires: python3
# python3{,6}-toml is for rhel7/8 only in epel, but we mirror that pkg # python3{,6}-toml is for rhel7/8 only in epel, but we mirror that pkg
%if 0%{?suse_version} >= 1500 || 0%{?rhel} >= 8 %if 0%{?suse_version} >= 1500 || 0%{?rhel} >= 8
Requires: python3-toml Requires: python3-toml
%else %else
%if 0%{?rhel} == 7 %if 0%{?rhel} == 7
Requires: python36-toml Requires: python36-toml
%endif %endif
%endif %endif