%global srcname clazzes-math %global sum clazzes.org Math tools for python3. # this shortcut overwrites what is usally a macro, but it is required due to lack of EPEL's srpm macros in debian %global python3_pkgversion 36 Summary: %{sum} Name: clazzes-math Packager: Wolfgang Glas Version: 0.2.0 Release: 1 License: Apache License 2.0 Group: Development/Libraries Source: clazzes-math-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python3-setuptools BuildRequires: python%{python3_pkgversion}-clazzes-tools BuildRoot: /var/tmp/%{name}-buildroot ###XBCS-PBA-Category: pytools ###XBCS-PBA-Generation: 1 ###XBCS-PBA-Distributions: centos8 ###XBCS-PBA-Repository: rpm.clazzes.org ###XBCS-PBA-Build-Source-pba: http://rpm.clazzes.org/repos/pba-1.0/pba-1.0.repo ###XBCS-PBA-Build-Source-pytools: http://rpm.clazzes.org/repos/pytools-1/pytools-1.repo # epel-release should be installed in all centos8 tarballs # based on # https://fedoraproject.org/wiki/Packaging:Python # https://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL %description %{sum} %package -n python%{python3_pkgversion}-%{srcname} Requires: python%{python3_pkgversion} Summary: %{sum} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %{sum} %prep %autosetup %build %py3_build %install %py3_install %check #%{__python3} setup.py test %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README %{python3_sitelib}/* #%{python38_sitelib}/%{srcname}/ #%{python38_sitelib}/%{srcname}-*.egg-info/ #%{_bindir}/sample-exec %changelog