diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:21:55 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:21:55 +0000 |
| commit | 4c772532208436b655d153f9276f7a612e1da1e0 (patch) | |
| tree | e78ecd86a04a47309555c480689266eb4c3db2d2 | |
| parent | e526818b047fb50182147786674a6f080f08d648 (diff) | |
automatic import of python-ocrd-validatorsopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-ocrd-validators.spec | 96 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 98 insertions, 0 deletions
@@ -0,0 +1 @@ +/ocrd_validators-2.50.0.tar.gz diff --git a/python-ocrd-validators.spec b/python-ocrd-validators.spec new file mode 100644 index 0000000..f763932 --- /dev/null +++ b/python-ocrd-validators.spec @@ -0,0 +1,96 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ocrd-validators +Version: 2.50.0 +Release: 1 +Summary: OCR-D framework - data validators +License: Apache License 2.0 +URL: https://github.com/OCR-D/core +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/49/eb52829c9a0ea429b2fabcc80ffd6891063657a60fa9a0fe14cd8212c169/ocrd_validators-2.50.0.tar.gz +BuildArch: noarch + +Requires: python3-bagit +Requires: python3-bagit-profile +Requires: python3-click +Requires: python3-jsonschema +Requires: python3-pyyaml +Requires: python3-shapely +Requires: python3-ocrd-utils +Requires: python3-ocrd-models +Requires: python3-ocrd-modelfactory + +%description +# ocrd_validators + +> OCR-D framework - data validators + +See also: https://github.com/OCR-D/core + + +%package -n python3-ocrd-validators +Summary: OCR-D framework - data validators +Provides: python-ocrd-validators +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ocrd-validators +# ocrd_validators + +> OCR-D framework - data validators + +See also: https://github.com/OCR-D/core + + +%package help +Summary: Development documents and examples for ocrd-validators +Provides: python3-ocrd-validators-doc +%description help +# ocrd_validators + +> OCR-D framework - data validators + +See also: https://github.com/OCR-D/core + + +%prep +%autosetup -n ocrd-validators-2.50.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-ocrd-validators -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.50.0-1 +- Package Spec generated @@ -0,0 +1 @@ +2d06a2fab210e6ce490ca26bf8d47831 ocrd_validators-2.50.0.tar.gz |
