File ccextractor.spec of Package ccextractor
#
# spec file for package ccextractor
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ccextractor
Version: 0.87
Release: 0
Summary: A closed captions and teletext subtitles extractor for video streams
License: GPL-2.0-only
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Productivity/Multimedia/Other
Url: https://www.ccextractor.org/
Source: https://github.com/CCExtractor/ccextractor/archive/v0.87.tar.gz
Patch0: fixes.patch
Patch1: fix-64bit-portability-issue.patch
Patch2: add-includes.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: tesseract-ocr
BuildRequires: tesseract-ocr-devel
BuildRequires: leptonica-devel
BuildRequires: pkgconfig(glfw3)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(xi)
%description
CCExtractor is a software that extracts closed captions from videos of various
formats, including live video streams. It's available as a multi-platform desktop
application.
%prep
%setup -q
%autopatch -p1
%build
cd linux
./autogen.sh
%configure --enable-ocr --with-gui --prefix="/usr"
%make_build
%install
cd linux
mkdir -p %{buildroot}/usr/bin
install ccextractor %{buildroot}/usr/bin/ccextractor
install ccextractorGUI %{buildroot}/usr/bin/ccextractorGUI
%files
%license LICENSE.txt
%doc README.md
/usr/bin/ccextractor
/usr/bin/ccextractorGUI
%changelog