%global pkgvers 0 %global scdate0 20240122 %global schash0 64a70d0850f2ab6b69693b7fb728b7c6eb759a7e %global branch0 main %global source0 https://github.com/tensorflow/probability.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: tensorflow-probability Version: 0.23.0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: TensorFlow Probability License: Apache BuildArch: noarch URL: https://github.com/tensorflow/probability BuildRequires: git python3 python3-rpm-macros python3-setuptools Requires: tensorflow dm-tree %description TensorFlow Probability is a library for probabilistic reasoning and statistical analysis in TensorFlow. %package python3 Summary: %{summary} Provides: tensorflow-probability %description python3 TensorFlow Probability is a library for probabilistic reasoning and statistical analysis in TensorFlow. %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git log --format=fuller %build %py3_build %install %py3_install %files python3 %license LICENSE %doc README.md %{python3_sitelib}/* %changelog * Thu Apr 14 2022 Cristian Balint - git update releases