blob: 03d8598ef0b5b2f6117eda1d3f0ebc5e3af273cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
Name: ccextractor
Version: 0.88
Release: 1%{?dist}
Summary: A closed captions and teletext subtitles extractor for video streams.
License: GPL
URL: http://ccextractor.org/
Source0: https://github.com/CCExtractor/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-system-libraries-and-cflags.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: freetype-devel
BuildRequires: libpng-devel
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glfw3)
BuildRequires: pkgconfig(lept)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(tesseract)
BuildRequires: utf8proc-devel
BuildRequires: zlib-devel
# Unbundle!
Provides: bundled(gpac)
Provides: bundled(protobuf-c)
Provides: bundled(zvbi)
%description
CCExtractor is a tool used to produce subtitles for TV recordings from almost
anywhere in the world. We intend to keep up with all sources and formats.
%prep
%autosetup -p1
rm -fr src/{freetype,libpng,utf8proc,zlib}
%build
cd linux
./pre-build.sh
autoreconf -vif
export CFLAGS="%{optflags} -Wno-maybe-uninitialized"
%configure \
--enable-ffmpeg \
--enable-hardsubx \
--enable-ocr
%make_build
%install
cd linux
%make_install
%files
%{_bindir}/%{name}
%changelog
* Sun Jun 16 2019 Simone Caronni <negativo17@gmail.com> - 0.88-1
- Update to 0.88.
* Wed Apr 03 2019 Simone Caronni <negativo17@gmail.com> - 0.87-2
- Use system libraries.
* Tue Jan 15 2019 Simone Caronni <negativo17@gmail.com> - 0.87-1
- First build.
|