%global pkgvers 3 %global scdate0 20190410 %global schash0 4f828eb9282c302dc6b187d91df5e77c8a6f2d61 %global branch0 master %global source0 https://github.com/myriadrf/pyLMS7002Soapy.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: pylms7002soapy Version: 0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Python package LMS700X chip and eval boards License: Apache 2.0 BuildArch: noarch URL: https://github.com/myriadrf/pyLMS7002Soapy BuildRequires: git python3 python3-devel python3-setuptools %description High level convenience functions for controlling the LMS7002M chip and evaluation boards. %prep %setup -T -c -n %{name} find %{_builddir} -name SPECPARTS -exec rm -rf {} + 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 %license COPYING %doc README.md examples %{python3_sitelib}/* %changelog * Tue Aug 21 2018 Balint Cristian - github update releases