%global pkgvers 1 %global scdate0 20221113 %global schash0 349e8f836142b2ed0efeb6bb99b1b715d87202e9 %global branch0 master %global source0 https://github.com/Maratyszcza/PeachPy.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: peachpy Version: 0 Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Portable Efficient Assembly Code-generator in Higher-level Python License: MIT BuildArch: noarch URL: https://github.com/Maratyszcza/PeachPy BuildRequires: git python3-devel python3-setuptools python3-six opcodes-python3 %description Portable Efficient Assembly Code-generator in Higher-level Python %package python3 Summary: Development files %description python3 Portable Efficient Assembly Code-generator in Higher-level Python %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 sed -i 's|, "enum34"||g' setup.py CFLAGS="${RPM_OPT_FLAGS}" %{__python3} setup.py build %install rm -rf %{buildroot} %{__python3} setup.py install -O1 --skip-build --root %{buildroot} %files python3 %license LICENSE.rst %doc MANIFEST.in README.rst %{python3_sitelib}/* %changelog * Tue Jul 11 2017 Cristian Balint - github update releases