diff --git a/griffe-0.35.0.tar.gz b/griffe-0.35.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..06e912cca8f72a9fc2233ee4b635f716b06fb7f3 Binary files /dev/null and b/griffe-0.35.0.tar.gz differ diff --git a/python-griffe.spec b/python-griffe.spec new file mode 100644 index 0000000000000000000000000000000000000000..b1f2df4150dcac82381419f1c0e4b92fa05d906e --- /dev/null +++ b/python-griffe.spec @@ -0,0 +1,69 @@ +%global pypi_name griffe + +Name: python-%{pypi_name} +Version: 0.35.0 +Release: 1 +Summary: Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. + +License: ISC +URL: https://mkdocstrings.github.io/griffe/ +Source0: https://files.pythonhosted.org/packages/df/c4/12c184d5182cb1e2c1b73b6938f281753567d75153a522c24f74473c8807/griffe-0.35.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-pdm-pep517 +BuildRequires: python3-pdm-backend + +%description +Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} +%description -n python3-%{pypi_name} +Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. + +%package help +Summary: %{summary} +Provides: python3-%{pypi_name}-doc +%description help +Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. + + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_build + +%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} +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}/doclist.lst . + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/griffe* +%{_bindir}/griffe + +%files help +%{_docdir}/* + +%changelog +* Tue Aug 29 2023 luolu12 - 0.35.0-1 +- Initial package.