%global srcname clazzes-tools %global sum clazzes.org basic 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 38 Summary: %{sum} Name: clazzes-tools Packager: Christoph Lechleitner Version: 0.3.2 Release: 3 License: Apache License 2.0 Group: Development/Libraries Source: clazzes-tools-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-setuptools 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 # 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} Requires: python%{python3_pkgversion}-pytz 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