Name:           python-ablog
Version:        0.11.13
Release:       	1
Summary:        A Sphinx extension that converts any documentation or personal website project into a full-fledged blog.

License:        MIT
URL:            https://github.com/sunpy/ablog
Source0:        %{url}/archive/v%{version}/ablog-%{version}.tar.gz
BuildArch:      noarch

%description 
%{summary}

%package -n python3-ablog
Summary:      %{summary}

# Base build requires
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-pip
BuildRequires:  python3-wheel

# for test
BuildRequires:  python3-pytest
BuildRequires:  python3-docutils
BuildRequires:  python3-sphinx
BuildRequires:  python3-dateutil
BuildRequires:  python3-feedgen

%description -n python3-ablog
ablog provides cross platform hidden file detection.

%prep
%autosetup -n ablog-%{version}

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%pyproject_build

%install
%pyproject_install
cp -p -r src/ablog/stylesheets %{buildroot}%{python3_sitelib}/ablog/stylesheets
cp -p -r src/ablog/templates %{buildroot}%{python3_sitelib}/ablog/templates
cp -p -r src/ablog/locales %{buildroot}%{python3_sitelib}/ablog/locales

%check
# skip test_not_safe_for_parallel_read for ci noweb
k="${k-}${k+ and }not test_not_safe_for_parallel_read"
k="${k-}${k+ and }not feed"
%pytest -- -k "${k-}" -vv

%files -n python3-ablog
%license LICENSE.rst
%doc README.rst
%{python3_sitelib}/ablog-*dist-info/
%{python3_sitelib}/ablog/
%{_bindir}/ablog

%changelog
* Mon Jan 26 2026  openeuler_bot <infra@openeuler.sh> - 0.11.13-1
- Make '_strip' function return as list not set. (version:0.11.13)

* Fri Jul 11 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.11.12-2
- Fix package file missing

* Fri May 23 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.11.12-1
- Update package to version 0.11.12
  Improve ablog-configuration-options.rst
  Fix sidebars CSS naming
  Fix theme support for ablog

* Tue Oct 29 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.11.11-1
- Update package to version 0.11.11
  Metadata for parallel_read_safe
  Add stylesheet for tagcloud
  Add span to more items
  Adds IT locale
  Fix incorrect /div when using discuss

* Wed Sep 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 0.11.4.post1-2
- Start self-test of software package

* Mon Jul 31 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.11.4.post1-1
- Init package python3-ablog of version 0.11.4.post1