%define pkgname %(echo %name | cut -d- -f2-) Name: python-cookiecutter Version: 2.1.1 Release: 2mamba Summary: A command-line utility that creates projects from project templates Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/cookiecutter/cookiecutter Source: https://pypi.debian.net/cookiecutter/cookiecutter-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(binaryornot) BuildRequires: python3.7dist(click) BuildRequires: python3.7dist(jinja2) BuildRequires: python3.7dist(jinja2-time) BuildRequires: python3.7dist(python-slugify) BuildRequires: python3.7dist(pyyaml) BuildRequires: python3.7dist(requests) BuildRequires: python3.7dist(setuptools) ## AUTOBUILDREQ-END %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n cookiecutter-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ --install-headers=%{python_inc} \ --install-lib=%{python_sitearch} \ --record=%{name}.filelist 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) %{_bindir}/cookiecutter* %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %doc LICENSE %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 * Tue May 31 2022 Automatic Build System 2.1.0-1mamba - automatic version update by autodist * Sun Feb 13 2022 Silvan Calarco 1.7.3-1mamba - package created using the webbuild interface