From 87619027990ffc0dac0d4e41830fe897a4b8c794b6102e52e94f1387c3dbe795 Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Tue, 2 Feb 2021 17:19:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/security:tls/crypto-policies?expand=0&rev=6 --- crypto-policies.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto-policies.spec b/crypto-policies.spec index 32c3f6c..943b8b3 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -19,6 +19,8 @@ %global git_date 20210127 %global git_commit b21c8114995e07965c2ccde5f5767d0618d854bf %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:8})} +# source_validator doesn't allow command execution +%global git_commit_shash b21c8114 %global _python_bytecompile_extra 0 Name: crypto-policies Version: %{git_date} @@ -27,7 +29,7 @@ Summary: System-wide crypto policies License: LGPL-2.1-or-later Group: Productivity/Networking/Security URL: https://gitlab.com/redhat-crypto/fedora-%{name} -Source0: https://gitlab.com/redhat-crypto/fedora-%{name}/-/archive/%{git_commit_hash}/%{name}-git%{git_commit_hash}.tar.bz2 +Source0: https://gitlab.com/redhat-crypto/fedora-%{name}/-/archive/%{git_commit_shash}/%{name}-git%{git_commit_shash}.tar.bz2 Source1: README.SUSE Patch0: crypto-policies-asciidoc.patch Patch1: crypto-policies-typos.patch @@ -71,7 +73,7 @@ The package also provides a tool fips-mode-setup, which can be used to enable or disable the system FIPS mode. %prep -%autosetup -p1 -n fedora-crypto-policies-%{git_commit_hash}-%{git_commit} +%autosetup -p1 -n fedora-crypto-policies-%{git_commit_shash}-%{git_commit} %build %make_build