diff --git a/-25.10.1.tar.gz b/-25.10.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/25.10.1.tar.gz b/25.10.1.tar.gz deleted file mode 100644 index 992e1b5e1cbb81e16c778812fa45037dfc60c710..0000000000000000000000000000000000000000 Binary files a/25.10.1.tar.gz and /dev/null differ diff --git a/python-pydoctor.spec b/python-pydoctor.spec index 5ee0f9a0d938f179bb68a705c04a7d948a461d19..571ff49a84394678ca29d5851d3f4efc0e61a52c 100644 --- a/python-pydoctor.spec +++ b/python-pydoctor.spec @@ -1,12 +1,14 @@ %global srcname pydoctor +%global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-%{srcname} Version: 25.10.1 Release: 1 Summary: This is an API documentation generator that works by static analysis License: MIT URL: https://github.com/twisted/pydoctor -Source0: %{url}/archive/refs/tags/%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/-//-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel @@ -15,32 +17,58 @@ BuildRequires: python3-setuptools %global _description %{expand: pydoctor puts a fair bit of effort into resolving imports and computing inheritance hierarchies and, as it aims at documenting Twisted, knows about zope.interface’s declaration API and can present information about which classes implement which interface, and vice versa.} +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-build +BuildRequires: python3-hatchling +BuildRequires: python%{python3_pkgversion}-devel + %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} -BuildRequires: python%{python3_pkgversion}-devel %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi + %build -%py3_build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_build %install -%py3_install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" +%pyproject_install %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst %{_bindir}/pydoctor -%{python3_sitelib}/pydoctor-*.egg-info/ +%{python3_sitelib}/pydoctor-*.dist-info/ %{python3_sitelib}/pydoctor/ %changelog +* Mon Dec 01 2025 zhangzeyang0718 - 25.10.1-1 +- Update package to version 25.10.1 + * Mon Nov 24 2025 lixiaoyong 25.10.1-1 - Update to 25.10.1 - Fix the tag name of the release