[packages/vobsub2srt] - pl, added includes patch (missing <climits> include) - rel 2 (rebuild with tesseract 5)

qboosh qboosh at pld-linux.org
Sun Apr 9 07:49:14 CEST 2023


commit 00fcb0acfa5f3dcab2c83878d2251801338dfe98
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 9 07:51:50 2023 +0200

    - pl, added includes patch (missing <climits> include)
    - rel 2 (rebuild with tesseract 5)

 vobsub2srt-includes.patch | 10 ++++++++++
 vobsub2srt.spec           | 24 +++++++++++++++++-------
 2 files changed, 27 insertions(+), 7 deletions(-)
---
diff --git a/vobsub2srt.spec b/vobsub2srt.spec
index b739f69..3a1e622 100644
--- a/vobsub2srt.spec
+++ b/vobsub2srt.spec
@@ -1,7 +1,8 @@
 %define commit 0ba6e25
 %define subver	pre7
-%define rel	1
+%define rel	2
 Summary:	VobSub2SRT .sub/.idx to .srt subtitle converter
+Summary(pl.UTF-8):	VobSub2SRT - konwerter podpisów .sub/.idx do .srt
 Name:		vobsub2srt
 Version:	1.0
 Release:	%{rel}.%{subver}+g%{commit}
@@ -11,8 +12,9 @@ Source0:	https://github.com/ruediger/VobSub2SRT/archive/%{commit}/%{name}-%{vers
 # Source0-md5:	e291abe6f4fca5dd8df4db98e97c69bb
 Patch0:		https://github.com/ruediger/VobSub2SRT/pull/72.patch
 # Patch0-md5:	fd20b401b96fc646c74c399b57a07b65
+Patch1:		%{name}-includes.patch
 URL:		https://github.com/ruediger/VobSub2SRT
-BuildRequires:	cmake
+BuildRequires:	cmake >= 2.6.4
 BuildRequires:	libtiff-devel
 BuildRequires:	tesseract-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,26 +24,34 @@ VobSub2SRT is a simple command line program to convert .idx / .sub
 subtitles into .srt text subtitles by using OCR. It is based on code
 from the MPlayer project.
 
+%description -l pl.UTF-8
+VobSub2SRT to prosty, działający z linii poleceń program do konwersji
+podpisów .idx/.sub do podpisów tekstowych .srt przy użyciu OCR. Jest
+oparty na kodzie z projektu MPlayer.
+
 %prep
 %setup -qc
-mv VobSub2SRT-%{commit}*/* .
+%{__mv} VobSub2SRT-%{commit}*/* .
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
 cd build
 %cmake \
-	-D INSTALL_DOC_DIR=%{_docdir}/%{name}-%{version} \
+	-DBASH_COMPLETION_PATH=%{bash_compdir} \
+	-DINSTALL_DOC_DIR=%{_docdir}/%{name}-%{version} \
 	..
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install -C build \
+
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/copyright .
-mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README .
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/copyright .
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README .
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/vobsub2srt-includes.patch b/vobsub2srt-includes.patch
new file mode 100644
index 0000000..23acebb
--- /dev/null
+++ b/vobsub2srt-includes.patch
@@ -0,0 +1,10 @@
+--- vobsub2srt-1.0/src/vobsub2srt.c++.orig	2017-12-19 00:13:38.000000000 +0100
++++ vobsub2srt-1.0/src/vobsub2srt.c++	2023-04-09 07:42:21.499041205 +0200
+@@ -30,6 +30,7 @@
+ #include <string>
+ #include <cstdio>
+ #include <vector>
++#include <climits>
+ using namespace std;
+ 
+ #include "langcodes.h++"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vobsub2srt.git/commitdiff/00fcb0acfa5f3dcab2c83878d2251801338dfe98



More information about the pld-cvs-commit mailing list