# Created by pyp2rpm-3.3.5 %global pypi_name recommonmark Name: python-%{pypi_name} Version: 0.0.1 Release: 1%{?dist} Summary: UNKNOWN License: None URL: None Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %description UNKNOWN %package -n python2-%{pypi_name} Summary: UNKNOWN Requires: python2-CommonMark >= 0.5.4 Requires: python2-docutils >= 0.11 Requires: python2-setuptools %description -n python2-%{pypi_name} UNKNOWN %package -n python%{python3_pkgversion}-%{pypi_name} Summary: UNKNOWN Requires: python%{python3_pkgversion}-CommonMark >= 0.5.4 Requires: python%{python3_pkgversion}-docutils >= 0.11 Requires: python%{python3_pkgversion}-setuptools %description -n python%{python3_pkgversion}-%{pypi_name} UNKNOWN %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python2} setup.py build %{__python3} setup.py build %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %{__python2} setup.py install --skip-build --root %{buildroot} rm -rf %{buildroot}%{_bindir}/* %{__python3} setup.py install --skip-build --root %{buildroot} %files -n python2-%{pypi_name} %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info %files -n python%{python3_pkgversion}-%{pypi_name} %{_bindir}/cm2html %{_bindir}/cm2latex %{_bindir}/cm2man %{_bindir}/cm2pseudoxml %{_bindir}/cm2xetex %{_bindir}/cm2xml %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Thu Apr 22 2021 mockbuilder - 0.0.1-1 - Initial package.