diff --git a/python-spacy-legacy.spec b/python-spacy-legacy.spec new file mode 100644 index 0000000000000000000000000000000000000000..10f224c92a3ced7122374956589d900c16fb7bd3 --- /dev/null +++ b/python-spacy-legacy.spec @@ -0,0 +1,60 @@ +%define anolis_release 1 +%global pypi_name spacy-legacy +%global pypi_version 3.0.12 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: Legacy registered functions for spaCy backwards compatibility + +License: MIT +URL: https://spacy.io +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools) + +%description +This package includes outdated registered functions for spaCy v3.x, for example +model architectures, pipeline components and utilities. It's installed automatically +as a dependency of spaCy, and allows us to provide backwards compatibility, while +keeping the core library tidy and up to date. All of this happens under the hood, +so you typically shouldn't have to care about this package. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(setuptools) +%description -n python3-%{pypi_name} +This package includes outdated registered functions for spaCy v3.x, for example +model architectures, pipeline components and utilities. It's installed automatically +as a dependency of spaCy, and allows us to provide backwards compatibility, while +keeping the core library tidy and up to date. All of this happens under the hood, +so you typically shouldn't have to care about this package. + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/spacy_legacy +%{python3_sitelib}/spacy_legacy-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Thu Jan 18 2024 Zhongling He - 3.0.12-1 +- Initial package. \ No newline at end of file diff --git a/spacy-legacy-3.0.12.tar.gz b/spacy-legacy-3.0.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c898214e0c9615389a2e4c6d65799fe1a4662e5 Binary files /dev/null and b/spacy-legacy-3.0.12.tar.gz differ