%global _empty_manifest_terminate_build 0 Name: python-anchorpoint Version: 0.7.0 Release: 1 Summary: Text substring selectors for anchoring annotations License: Free To Use But Restricted URL: https://github.com/mscarey/anchorpoint Source0: https://mirrors.aliyun.com/pypi/web/packages/c7/15/cc333b469bf1aad914f3719fb4229270ba6c7c101dda78410ed8836b5fce/anchorpoint-0.7.0.tar.gz BuildArch: noarch Requires: python3-pydantic %description A Python library for anchoring annotations with text substring selectors. Anchorpoint supplies TextQuoteSelector and TextPositionSelector classes based on the Web Annotation Data Model, which is a `W3C Recommendation`_. Anchorpoint includes helper methods for switching between selector types, and a `pydantic`_ schema for serialization. Anchorpoint is used by `Legislice`_ for referencing laws such as statutes, and by `AuthoritySpoke`_ for referencing judicial opinions. `API Documentation`_ is available on readthedocs. Anchorpoint relies on `python-ranges`_ to perform set operations on spans of text. Related Packages ~~~~~~~~~~~~~~~~ In Javascript, try the `Text Quote Anchor`_ and `Text Position Anchor`_ packages. In Python try python-ranges_, which is the basis for much of the TextPositionSelector class's behavior. %package -n python3-anchorpoint Summary: Text substring selectors for anchoring annotations Provides: python-anchorpoint BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-anchorpoint A Python library for anchoring annotations with text substring selectors. Anchorpoint supplies TextQuoteSelector and TextPositionSelector classes based on the Web Annotation Data Model, which is a `W3C Recommendation`_. Anchorpoint includes helper methods for switching between selector types, and a `pydantic`_ schema for serialization. Anchorpoint is used by `Legislice`_ for referencing laws such as statutes, and by `AuthoritySpoke`_ for referencing judicial opinions. `API Documentation`_ is available on readthedocs. Anchorpoint relies on `python-ranges`_ to perform set operations on spans of text. Related Packages ~~~~~~~~~~~~~~~~ In Javascript, try the `Text Quote Anchor`_ and `Text Position Anchor`_ packages. In Python try python-ranges_, which is the basis for much of the TextPositionSelector class's behavior. %package help Summary: Development documents and examples for anchorpoint Provides: python3-anchorpoint-doc %description help A Python library for anchoring annotations with text substring selectors. Anchorpoint supplies TextQuoteSelector and TextPositionSelector classes based on the Web Annotation Data Model, which is a `W3C Recommendation`_. Anchorpoint includes helper methods for switching between selector types, and a `pydantic`_ schema for serialization. Anchorpoint is used by `Legislice`_ for referencing laws such as statutes, and by `AuthoritySpoke`_ for referencing judicial opinions. `API Documentation`_ is available on readthedocs. Anchorpoint relies on `python-ranges`_ to perform set operations on spans of text. Related Packages ~~~~~~~~~~~~~~~~ In Javascript, try the `Text Quote Anchor`_ and `Text Position Anchor`_ packages. In Python try python-ranges_, which is the basis for much of the TextPositionSelector class's behavior. %prep %autosetup -n anchorpoint-0.7.0 %build %py3_build %install %py3_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} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi 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}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-anchorpoint -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 0.7.0-1 - Package Spec generated