diff --git a/python-pytest-django.spec b/python-pytest-django.spec index bb28cb74ab2ab6f4a2c2cfff456ce73dd077b430..0146fa32e5b51b99942fb87b0c887a2e752cf16b 100644 --- a/python-pytest-django.spec +++ b/python-pytest-django.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-pytest-django Version: 4.5.2 -Release: 1 +Release: 2 Summary: A Django plugin for pytest. License: BSD URL: https://pytest-django.readthedocs.io/ @@ -21,6 +21,7 @@ BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-setuptools_scm +BuildRequires: python3-hatchling # General requires BuildRequires: python3-pytest BuildRequires: python3-sphinx @@ -44,10 +45,10 @@ project/applications with the pytest testing tool %autosetup -n pytest-django-%{version} %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 @@ -55,33 +56,24 @@ 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-pytest-django -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-pytest-django +%{python3_sitelib}/pytest_django +%{python3_sitelib}/pytest_django-*.dist-info/* %files help -f doclist.lst %{_docdir}/* %changelog +* Wed Jul 05 2023 zoujiancang <jczou@isoftstone.com> - 4.5.2-2 +- Modify Compiling Mode of package python3-pytest-django to pyproject + * Fri Jul 15 2022 renliang16 <renliang@uniontech.com> - 4.5.2-1 - Upgrade package python3-pytest-django to version 4.5.2