From 4c772532208436b655d153f9276f7a612e1da1e0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 10:21:55 +0000 Subject: automatic import of python-ocrd-validators --- python-ocrd-validators.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 python-ocrd-validators.spec (limited to 'python-ocrd-validators.spec') 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 - 2.50.0-1 +- Package Spec generated -- cgit v1.2.3