67 lines
1.7 KiB
RPMSpec
67 lines
1.7 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name linkify-it-py
|
|
|
|
%global _description %{expand:
|
|
This is a Python port of linkify-it [1], a link recognition library with
|
|
FULL unicode support. It is focused on high quality link pattern
|
|
detection in plain text. See a JavaScript demo [2].
|
|
|
|
References:
|
|
[1] https://github.com/markdown-it/linkify-it
|
|
[2] https://markdown-it.github.io/linkify-it/}
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 2.0.2
|
|
Release: 2
|
|
Summary: Link recognition library with full Unicode support
|
|
License: MIT
|
|
URL: https://github.com/tsutsu3/linkify-it-py
|
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
# for test
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-uc-micro-py
|
|
BuildRequires: python3-pytest-cov
|
|
BuildRequires: python3-coverage
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: Link recognition library with full Unicode support
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python3_sitelib}/linkify_it/__pycache__/
|
|
%{python3_sitelib}/linkify_it_py-*.dist-info/
|
|
%{python3_sitelib}/linkify_it/
|
|
|
|
%changelog
|
|
* Wed Aug 30 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 2.0.2-2
|
|
- Start self-test of software package
|
|
|
|
* Thu Aug 17 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 2.0.2-1
|
|
- Package init
|