From e07fc9b3ba36829cff76f5b1055accb9271de80f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:59:35 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.7.3-1mamba;Sun Feb 13 2022] --- README.md | 2 ++ python-cookiecutter.spec | 61 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 python-cookiecutter.spec diff --git a/README.md b/README.md index 737c643..9c54e85 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-cookiecutter +A command-line utility that creates projects from project templates. + diff --git a/python-cookiecutter.spec b/python-cookiecutter.spec new file mode 100644 index 0000000..d973b17 --- /dev/null +++ b/python-cookiecutter.spec @@ -0,0 +1,61 @@ +%define pkgname %(echo %name | cut -d- -f2-) +Name: python-cookiecutter +Version: 1.7.3 +Release: 1mamba +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(poyo) +BuildRequires: python3.7dist(python-slugify) +BuildRequires: python3.7dist(requests) +BuildRequires: python3.7dist(setuptools) +BuildRequires: python3.7dist(six) +## 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 + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +## note: this list is just an example; modify as required +%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 +* Sun Feb 13 2022 Silvan Calarco 1.7.3-1mamba +- package created using the webbuild interface