]> 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     2
4 Summary:        VobSub2SRT .sub/.idx to .srt subtitle converter
5 Summary(pl.UTF-8):      VobSub2SRT - konwerter podpisów .sub/.idx do .srt
6 Name:           vobsub2srt
7 Version:        1.0
8 Release:        %{rel}.%{subver}+g%{commit}
9 License:        GPL v3+
10 Group:          Applications/Multimedia
11 Source0:        https://github.com/ruediger/VobSub2SRT/archive/%{commit}/%{name}-%{version}%{subver}+g%{commit}.tar.gz
12 # Source0-md5:  e291abe6f4fca5dd8df4db98e97c69bb
13 Patch0:         https://github.com/ruediger/VobSub2SRT/pull/72.patch
14 # Patch0-md5:   fd20b401b96fc646c74c399b57a07b65
15 Patch1:         %{name}-includes.patch
16 URL:            https://github.com/ruediger/VobSub2SRT
17 BuildRequires:  cmake >= 2.6.4
18 BuildRequires:  libtiff-devel
19 BuildRequires:  tesseract-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 VobSub2SRT is a simple command line program to convert .idx / .sub
24 subtitles into .srt text subtitles by using OCR. It is based on code
25 from the MPlayer project.
26
27 %description -l pl.UTF-8
28 VobSub2SRT to prosty, działający z linii poleceń program do konwersji
29 podpisów .idx/.sub do podpisów tekstowych .srt przy użyciu OCR. Jest
30 oparty na kodzie z projektu MPlayer.
31
32 %prep
33 %setup -qc
34 %{__mv} VobSub2SRT-%{commit}*/* .
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 install -d build
40 cd build
41 %cmake \
42         -DBASH_COMPLETION_PATH=%{bash_compdir} \
43         -DINSTALL_DOC_DIR=%{_docdir}/%{name}-%{version} \
44         ..
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} -C build install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/copyright .
54 %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README .
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README copyright
62 %attr(755,root,root) %{_bindir}/vobsub2srt
63 %{_mandir}/man1/vobsub2srt.1*
64 %{bash_compdir}/vobsub2srt
This page took 0.099707 seconds and 3 git commands to generate.