diff --git a/crypto-policies.spec b/crypto-policies.spec index 100679219579c0459c6fb3c4a53a1828ca5a4c6a..8061889268546c1bf151e374bb35685b8a00e6e3 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -1,8 +1,8 @@ -%define anolis_release 3 +%define anolis_release 4 %global git_date 20221215 %global git_commit a4c31a34711325447363d87ba9fec5bb5535903a %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})} - +%bcond_with check %global _python_bytecompile_extra 0 Name: crypto-policies @@ -28,12 +28,15 @@ BuildRequires: perl-generators BuildRequires: perl(File::pushd), perl(File::Temp), perl(File::Copy) BuildRequires: perl(File::Which) BuildRequires: python3-devel >= 3.6 +Buildrequires: python3-toml +%if %{with check} BuildRequires: python3-pytest BuildRequires: python3-pylint BuildRequires: python3-flake8 BuildRequires: python3-coverage BuildRequires: python3-platformdirs BuildRequires: codespell +%endif BuildRequires: make BuildRequires: krb5-devel BuildRequires: openssh-clients @@ -122,9 +125,10 @@ done %generate_compatibility_deps +%if %{with check} %check make test %{?_smp_mflags} - +%endif %post -p if not posix.access("%{_sysconfdir}/crypto-policies/config") then @@ -217,6 +221,9 @@ end %doc NEWS README.md CONTRIBUTING.md %changelog +* Mon Mar 27 2023 happy_orange - 20221215-4 +- disable python check + * Wed Mar 22 2023 happy_orange - 20221215-3 - fix the build error beacuse of asciidoc update to 10.x.x