python-cookiecutter/python-cookiecutter.spec

93 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgname %(echo %name | cut -d- -f2-)
Name: python-cookiecutter
Version: 2.5.0
Release: 1mamba
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: libpython311-devel
BuildRequires: python3.11dist(arrow)
BuildRequires: python3.11dist(binaryornot)
BuildRequires: python3.11dist(click)
BuildRequires: python3.11dist(jinja2)
BuildRequires: python3.11dist(python-slugify)
BuildRequires: python3.11dist(pyyaml)
BuildRequires: python3.11dist(requests)
BuildRequires: python3.11dist(rich)
BuildRequires: python3.11dist(setuptools)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%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
* Wed Dec 13 2023 Automatic Build System <autodist@mambasoft.it> 2.5.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.2.3-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Wed Jul 12 2023 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
- automatic version update by autodist
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
- automatic version update by autodist
* Fri Jul 07 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
- automatic version update by autodist
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 2.1.1-2mamba
- rebuilt with python 3.10
* Fri Jun 03 2022 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist
* Tue May 31 2022 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.3-1mamba
- package created using the webbuild interface