diff --git a/crypto-policies-gitb21c8114.tar.bz2 b/crypto-policies-gitb21c8114.tar.bz2 new file mode 100644 index 0000000..1efca4e --- /dev/null +++ b/crypto-policies-gitb21c8114.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17971f8765691d71f971a9845d8423ee3251ee0c665ba06ab2855bb3b6ff8fc8 +size 46974 diff --git a/crypto-policies.spec b/crypto-policies.spec index c7739b0..32c3f6c 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -17,6 +17,8 @@ %global git_date 20210127 +%global git_commit b21c8114995e07965c2ccde5f5767d0618d854bf +%{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:8})} %global _python_bytecompile_extra 0 Name: crypto-policies Version: %{git_date} @@ -24,8 +26,8 @@ Release: 0 Summary: System-wide crypto policies License: LGPL-2.1-or-later Group: Productivity/Networking/Security -URL: https://gitlab.com/redhat-crypto/fedora-crypto-policies -Source0: fedora-crypto-policies-master.tar.bz2 +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 Source1: README.SUSE Patch0: crypto-policies-asciidoc.patch Patch1: crypto-policies-typos.patch @@ -69,7 +71,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-master +%autosetup -p1 -n fedora-crypto-policies-%{git_commit_hash}-%{git_commit} %build %make_build diff --git a/fedora-crypto-policies-master.tar.bz2 b/fedora-crypto-policies-master.tar.bz2 deleted file mode 100644 index 025e292..0000000 --- a/fedora-crypto-policies-master.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c7422144adbc57c281cfdecd5cb45b05d32cb2f5969de94b270ca216ab79e47 -size 46672