# Created by pyp2rpm-3.3.3 %global pypi_name empy Name: python-%{pypi_name} Version: 3.3.4 Release: %mkrel 7 Summary: A templating system for Python Group: Development/Python License: LGPLv3 URL: http://www.alcyone.com/software/empy Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and produces output. %package -n python3-%{pypi_name} Summary: A templating system for Python 3 Group: Development/Python %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and produces output. %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install # add symlink to bindir mkdir -p %{buildroot}%{_bindir} ln -s %{python3_sitelib}/em.py %{buildroot}%{_bindir}/empy3 ln -s empy3 %{buildroot}%{_bindir}/empy chmod 655 %{buildroot}%{python3_sitelib}/em.py # python shebangs pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitelib}/em.py %files -n python3-%{pypi_name} %{_bindir}/empy* %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/em.py %changelog * Wed Mar 23 2022 umeabot <umeabot> 3.3.4-7.mga9 + Revision: 1822632 - Mageia 9 Mass Rebuild * Mon Feb 14 2022 mrambo3501 <mrambo3501> 3.3.4-6.mga9 + Revision: 1774756 - rebuild for python-3.10 * Mon Mar 15 2021 wally <wally> 3.3.4-5.mga9 + Revision: 1703195 - rebuild for python 3.9 * Sun Dec 13 2020 wally <wally> 3.3.4-4.mga8 + Revision: 1656707 - pkg em.py * Mon Feb 17 2020 daviddavid <daviddavid> 3.3.4-3.mga8 + Revision: 1537256 - fix python shebangs + umeabot <umeabot> - Mageia 8 Mass Rebuild * Sun Oct 27 2019 wally <wally> 3.3.4-2.mga8 + Revision: 1456095 - install scripts to /usr/bin/ * Sun Oct 27 2019 wally <wally> 3.3.4-1.mga8 + Revision: 1456088 - imported package python-empy