diff --git a/python-pytest-checkdocs.spec b/python-pytest-checkdocs.spec index 497c31299a0d7bddd596426c9c4b6e84eac7a22f..b5b8ade5e3b942a1edce33d3a751a454ec228d11 100644 --- a/python-pytest-checkdocs.spec +++ b/python-pytest-checkdocs.spec @@ -1,75 +1,73 @@ %global _empty_manifest_terminate_build 0 -Name: python-pytest-checkdocs +%global pypi_name pytest-checkdocs + +Name: python-%{pypi_name} Version: 2.9.0 -Release: 1 +Release: 2 Summary: check the README when running tests License: ASL 2.0 URL: https://pypi.org/project/pytest-checkdocs/ -Source0: https://files.pythonhosted.org/packages/ad/ab/dad19dd5014ff948dd4d1905b6d6e5beb8a9728e60a156723182abe75286/pytest-checkdocs-2.9.0.tar.gz +Source0: https://files.pythonhosted.org/packages/ad/ab/dad19dd5014ff948dd4d1905b6d6e5beb8a9728e60a156723182abe75286/%{pypi_name}-%{version}.tar.gz Patch0: 0001-add-setup.py.patch BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel %description A pytest plugin that checks the long description of the project to ensure it renders properly. -%package -n python3-pytest-checkdocs +%package -n python3-%{pypi_name} Summary: check the README when running tests Provides: python-pytest-checkdocs = %{version}-%{release} BuildRequires: python3dist(setuptools-scm) BuildRequires: python3dist(toml) -%description -n python3-pytest-checkdocs +%description -n python3-%{pypi_name} A pytest plugin that checks the long description of the project to ensure it renders properly. %package help Summary: Development documents and examples for pytest-checkdocs -Provides: python3-pytest-checkdocs-doc +#Provides: python3-pytest-checkdocs-doc +%{?python_provide:%python_provide python3-%{pypi_name}} + %description help A pytest plugin that checks the long description of the project to ensure it renders properly. %prep -%autosetup -p1 -n pytest-checkdocs-%{version} +%autosetup -p1 -n %{pypi_name}-%{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 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-checkdocs -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-%{pypi_name} +%{python3_sitelib}/pytest_checkdocs/ +%{python3_sitelib}/pytest_checkdocs-*.dist-info/ %files help -f doclist.lst %{_docdir}/* %changelog +* Wed Jul 5 2023 li-miaomiao_zhr - 2.9.0-2 +- Upgrade the installation method to pyproject + * Tue Nov 22 2022 jiangxinyu - 2.9.0-1 - Update package to version 2.9.0