diff --git a/django-crispy-forms-2.0.tar.gz b/django-crispy-forms-2.0.tar.gz deleted file mode 100644 index 50313c157b09fae993b2c2d57f1c6e8f7a5ebb28..0000000000000000000000000000000000000000 Binary files a/django-crispy-forms-2.0.tar.gz and /dev/null differ diff --git a/django-crispy-forms-2.1.tar.gz b/django-crispy-forms-2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2ffaed6800c4180b8264fa5d41176ded4b8a6a7b Binary files /dev/null and b/django-crispy-forms-2.1.tar.gz differ diff --git a/python-django-crispy-forms.spec b/python-django-crispy-forms.spec index 47119a56a4f03c703d5186f5b01a7b17f768e49a..4316292edf95c6624e5269094ebab6014310e5ac 100644 --- a/python-django-crispy-forms.spec +++ b/python-django-crispy-forms.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-django-crispy-forms -Version: 2.0 +Version: 2.1 Release: 1 Summary: Best way to have Django DRY forms License: MIT URL: https://github.com/django-crispy-forms/django-crispy-forms -Source0: https://files.pythonhosted.org/packages/c7/63/a6be73ce8997d02acc6890b5698a4ee95a30404fbf30b998652b30b7dec7/django-crispy-forms-2.0.tar.gz -Source1: setup.py +Source0: https://files.pythonhosted.org/packages/49/c8/bb0667b26f15cd3a595375eb54887d8a3212876c36a98c2cac89d5b46b0e/django-crispy-forms-2.1.tar.gz BuildArch: noarch @@ -19,7 +18,9 @@ to configure and control the rendered HTML. Summary: Best way to have Django DRY forms Provides: python-django-crispy-forms BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-flit %description -n python3-django-crispy-forms Best way to have Django DRY forms.The App provides a tag and filter that lets you quickly render forms in a div format while providing an enormous amount of capability @@ -33,46 +34,27 @@ Development documents and examples for django-crispy-forms %prep %autosetup -n django-crispy-forms-%{version} -cp %{SOURCE1} ./ %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi -if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . -%files -n python3-django-crispy-forms -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-django-crispy-forms +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Fri Dec 01 2023 jiangxinyu - 2.1-1 +- Update package to version 2.1 + * Thu Mar 2 2023 wubijie - 2.0-1 - Update package to version 2.0 diff --git a/setup.py b/setup.py deleted file mode 100644 index 1e7ecb5c456870b4dbf44902a555f9bc3e633f38..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env python -from setuptools import setup -if __name__ == "__main__": - setup( - name = "django-crispy-forms", - version = "2.0", -)