N
NiceOS Build Portal
Enterprise build observability for published NiceOS package builds.

input/python3-smartypants.spec

raw · 2.9 KiB

Name:           python3-smartypants
Version:        2.0.2
Release:        1%{?dist}
Summary:        Converts plain ASCII punctuation characters into "smart" typographic punctuation HTML entities
Summary(ru):    Преобразование обычной пунктуации ASCII в «умную» типографскую пунктуацию (HTML-сущности)

License:        BSD-3-Clause
URL:            https://github.com/leohemsted/smartypants.py
Source0:        https://github.com/leohemsted/smartypants.py/archive/v%{version}/smartypants-%{version}.tar.gz

Packager:       NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor:         NiceSOFT
Distribution:   NiceOS.Core
BugURL:         https://bugs.niceos.ru/
VCS:            https://specs.niceos.ru/rmps/%{name}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pip
BuildRequires:  python3-wheel

%description
smartypants is a Python library that converts plain ASCII punctuation into
typographically “smart” punctuation, emitting HTML entities suitable for
well-formatted text output.

%description -l ru
smartypants — библиотека Python, которая преобразует обычные ASCII-символы
пунктуации в типографски «умные» знаки, формируя HTML-сущности для аккуратного
вывода текста.

%prep
%autosetup -n smartypants.py-%{version}

%build
pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD

%install
pip3 install --no-index --find-links=dist --no-cache-dir --no-user --root=%{buildroot} smartypants
if [ -d "%{buildroot}%{python3_sitelib}" ]; then
  find "%{buildroot}%{python3_sitelib}" -type f -name '*.pyc' -delete || :
  find "%{buildroot}%{python3_sitelib}" -type d -name '__pycache__' -prune -exec rm -rf {} + || :
fi

%files
%{_bindir}/smartypants
%{python3_sitelib}/*

%changelog
* Sat May 09 2026 NiceOS Team <support@niceos.ru> - 2.0.2-1
<<<<<<< Updated upstream
- EN: Tue May 09 2026 NiceOS Team <niceos@ncsgp.ru> - 2.0.2-1
- Update to 2.0.2: fix double closing quotes after HTML blocks, refresh regex/tests for Python 3.12+, and move documentation to ReadTheDocs.
- RU: Tue May 09 2026 NiceOS Team <niceos@ncsgp.ru> - 2.0.2-1
=======
- Update to 2.0.2: fix double closing quotes after HTML blocks, refresh regex/tests for Python 3.12+, and move documentation to ReadTheDocs.
>>>>>>> Stashed changes
- Обновление до 2.0.2: исправлена обработка двойных закрывающих кавычек после HTML-блоков, обновлены регулярные выражения и тесты для Python 3.12+, документация перенесена на ReadTheDocs.


* Fri Jan 09 2026 NiceOS Team <niceos@ncsgp.ru> - 2.0.1-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)