diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 07:14:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 07:14:45 +0000 |
commit | c77e07840587709dafc44896b0f5b96705ad629e (patch) | |
tree | 7713cc2eb4a95c8aaf8351a0d797a10d177da55c | |
parent | 5308238cb869be2cdf35a03a8afb81fd86bdfa8e (diff) |
automatic import of python-anchorpointopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-anchorpoint.spec | 112 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 114 insertions, 0 deletions
@@ -0,0 +1 @@ +/anchorpoint-0.7.0.tar.gz diff --git a/python-anchorpoint.spec b/python-anchorpoint.spec new file mode 100644 index 0000000..6530bd6 --- /dev/null +++ b/python-anchorpoint.spec @@ -0,0 +1,112 @@ +%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 <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +b3a2d3254788894ac5212d3f8102aae9 anchorpoint-0.7.0.tar.gz |