2024-01-06 10:59:35 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2-)
|
|
|
|
Name: python-cookiecutter
|
2024-01-06 10:59:36 +01:00
|
|
|
Version: 2.2.3
|
2024-01-06 10:59:36 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 10:59:35 +01:00
|
|
|
Summary: A command-line utility that creates projects from project templates
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/cookiecutter/cookiecutter
|
|
|
|
Source: https://pypi.debian.net/cookiecutter/cookiecutter-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 10:59:36 +01:00
|
|
|
BuildRequires: python3.7dist(arrow)
|
2024-01-06 10:59:35 +01:00
|
|
|
BuildRequires: python3.7dist(binaryornot)
|
|
|
|
BuildRequires: python3.7dist(click)
|
|
|
|
BuildRequires: python3.7dist(jinja2)
|
|
|
|
BuildRequires: python3.7dist(python-slugify)
|
2024-01-06 10:59:35 +01:00
|
|
|
BuildRequires: python3.7dist(pyyaml)
|
2024-01-06 10:59:35 +01:00
|
|
|
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
|
|
|
|
|
2024-01-06 10:59:36 +01:00
|
|
|
%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
|
|
|
|
|
2024-01-06 10:59:35 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:59:36 +01:00
|
|
|
%{_bindir}/cookiecutter*
|
2024-01-06 10:59:35 +01:00
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:59:36 +01:00
|
|
|
* Wed Jul 12 2023 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:59:36 +01:00
|
|
|
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:59:36 +01:00
|
|
|
* Fri Jul 07 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:59:36 +01:00
|
|
|
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 2.1.1-2mamba
|
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-06 10:59:35 +01:00
|
|
|
* Fri Jun 03 2022 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:59:35 +01:00
|
|
|
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:59:35 +01:00
|
|
|
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.3-1mamba
|
|
|
|
- package created using the webbuild interface
|