diff --git a/python-cookiecutter.spec b/python-cookiecutter.spec index 1a84b24..9788db6 100644 --- a/python-cookiecutter.spec +++ b/python-cookiecutter.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2-) Name: python-cookiecutter Version: 2.1.1 -Release: 1mamba +Release: 2mamba Summary: A command-line utility that creates projects from project templates Group: System/Libraries Vendor: openmamba @@ -46,16 +46,25 @@ CFLAGS="%{optflags}" %{__python} setup.py build sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/cookiecutter; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +sed -i "\,%{_bindir},d" %{name}.filelist +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -## note: this list is just an example; modify as required +%{_bindir}/cookiecutter* %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %doc LICENSE -## note: add extra documentation (if any) -# %doc README.md %changelog +* Fri Apr 07 2023 Sdk Build System 2.1.1-2mamba +- rebuilt with python 3.10 + * Fri Jun 03 2022 Automatic Build System 2.1.1-1mamba - automatic version update by autodist