diff --git a/python-testrepository.spec b/python-testrepository.spec index e5e382bc43c0d51f0403d567a2a0780dd5e7b1e5..e2f16b32180a8f3614262a315cde948385fd46ed 100644 --- a/python-testrepository.spec +++ b/python-testrepository.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-testrepository Version: 0.0.21 -Release: 1 +Release: 2 Summary: A repository of test results. License: Apache-2.0 and BSD-3-Clause URL: https://github.com/testing-cabal/testrepository @@ -23,6 +23,9 @@ Summary: A repository of test results. Provides: python-testrepository = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling +BuildRequires: python3-pip python3-wheel %description -n python3-testrepository This project provides a database of test results which can be used as part of developer workflow to ensure/check things like: @@ -32,59 +35,26 @@ developer workflow to ensure/check things like: * What tests have failed since the last commit (to run just a subset). * What tests are currently failing and need work. -%package help -Summary: Development documents and examples for testrepository -Provides: python3-testrepository-doc -%description help -This project provides a database of test results which can be used as part of -developer workflow to ensure/check things like: - -* No commits without having had a test failure, test fixed cycle. -* No commits without new tests being added. -* What tests have failed since the last commit (to run just a subset). -* What tests are currently failing and need work. - %prep %autosetup -n testrepository-%{version} %build -%py3_build +%pyproject_build %install -%py3_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 . +%pyproject_install -%files -n python3-testrepository -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* +%files -n python3-testrepository +%license COPYING Apache-2.0 BSD +%doc README.rst NEWS +%{_bindir}/testr +%{python3_sitelib}/testrepository +%{python3_sitelib}/testrepository-%{version}.dist-info %changelog +* Thu Jul 24 2025 yaoxin <1024769339@qq.com> - 0.0.21-2 +- Fix build failure + * Sun Dec 01 2024 sqfu - 0.0.21-1 - Update package to version 0.0.21 - Fix formatting in packages section of setpy.py