]> git.pld-linux.org Git - packages/vobsub2srt.git/blob - vobsub2srt.spec
- pl, added includes patch (missing <climits> include)
[packages/vobsub2srt.git] / vobsub2srt.spec
1 %define commit 0ba6e25
2 %define subver  pre7
3 %define rel     1
4 Summary:        VobSub2SRT .sub/.idx to .srt subtitle converter
5 Name:           vobsub2srt
6 Version:        1.0
7 Release:        %{rel}.%{subver}+g%{commit}
8 License:        GPL v3+
9 Group:          Applications/Multimedia
10 Source0:        https://github.com/ruediger/VobSub2SRT/archive/%{commit}/%{name}-%{version}%{subver}+g%{commit}.tar.gz
11 # Source0-md5:  e291abe6f4fca5dd8df4db98e97c69bb
12 Patch0:         https://github.com/ruediger/VobSub2SRT/pull/72.patch
13 # Patch0-md5:   fd20b401b96fc646c74c399b57a07b65
14 URL:            https://github.com/ruediger/VobSub2SRT
15 BuildRequires:  cmake
16 BuildRequires:  libtiff-devel
17 BuildRequires:  tesseract-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 VobSub2SRT is a simple command line program to convert .idx / .sub
22 subtitles into .srt text subtitles by using OCR. It is based on code
23 from the MPlayer project.
24
25 %prep
26 %setup -qc
27 mv VobSub2SRT-%{commit}*/* .
28 %patch0 -p1
29
30 %build
31 install -d build
32 cd build
33 %cmake \
34         -D INSTALL_DOC_DIR=%{_docdir}/%{name}-%{version} \
35         ..
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 %{__make} install -C build \
41         DESTDIR=$RPM_BUILD_ROOT
42
43 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/copyright .
44 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README .
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc README copyright
52 %attr(755,root,root) %{_bindir}/vobsub2srt
53 %{_mandir}/man1/vobsub2srt.1*
54 %{bash_compdir}/vobsub2srt
This page took 0.105805 seconds and 3 git commands to generate.