From 115528d35f1535934bdf68ae3cdac6d8c6fef4ee Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 22 Apr 2023 21:15:58 +0200 Subject: [PATCH] - now separate from vapoursynth; epoch 1 --- vapoursynth-plugin-ocr.spec | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 vapoursynth-plugin-ocr.spec diff --git a/vapoursynth-plugin-ocr.spec b/vapoursynth-plugin-ocr.spec new file mode 100644 index 0000000..6c974fe --- /dev/null +++ b/vapoursynth-plugin-ocr.spec @@ -0,0 +1,49 @@ +Summary: Tesseract-based OCR plugin for Vapoursynth +Summary(pl.UTF-8): Oparta na Tesserakcie wtyczka OCR dla programu Vapoursynth +Name: vapoursynth-plugin-ocr +Version: 1 +Release: 1 +# it was vapoursynth.spec subpackage up to 54 +Epoch: 1 +License: MIT +Group: Libraries +Source0: https://github.com/vapoursynth/vs-ocr/archive/R%{version}/vs-ocr-R%{version}.tar.gz +# Source0-md5: 108bc131d6b94479f3dc93033af7478e +Patch0: vs-ocr-meson.patch +URL: https://github.com/vapoursynth/vs-ocr +BuildRequires: meson +BuildRequires: ninja >= 1.5 +BuildRequires: vapoursynth-devel >= 55 +BuildRequires: tesseract-devel >= 4.1.1 +Requires: vapoursynth >= 55 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Vapoursynth filter that performs optical character recognition on +video frames. + +%description -l pl.UTF-8 +Filtr Vapoursynth dokonujący optycznego rozpoznawania znaków w +klatkach obrazu. + +%prep +%setup -q -n vs-ocr-R%{version} +%patch0 -p1 + +%build +%meson build + +%ninja_build -C build + +%install +rm -rf $RPM_BUILD_ROOT + +%ninja_install -C build + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE docs/ocr.rst +%attr(755,root,root) %{_libdir}/vapoursynth/libocr.so -- 2.44.0