File dvbcut.spec of Package dvbcut

# spec file for package dvbcut
# 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

Name:           dvbcut
Version:        0.7.2
Release:        0
Summary:        Qt application for cutting parts out of DVB streams
License:        GPL-2.0-or-later AND LGPL-2.1-only
Group:          Productivity/Multimedia/Video/Editors and Convertors
# PATCH-FIX-OPENSUSE dvbcut-qt5_utils.patch -- also search for binaries with -qt5 ending
Patch0:         dvbcut-qt5_utils.patch
# PATCH-FIX-OPENSUSE dvbcut-use_pkgconfig.patch -- use pkgconfig for ffmpeg libraries
Patch1:         dvbcut-use_pkgconfig.patch
# PATCH-FIX-OPENSUSE dvbcut-a52.patch -- Support new version of liba52
Patch2:         dvbcut-a52.patch
# PATCH-FIX-OPENSUSE dvbcut-appicon-patch -- install icon in the proper path
Patch3:         dvbcut-appicon.patch
# PATCH-FIX-OPENSUSE dvbcut-locale.patch -- also install .qm locale files
Patch4:         dvbcut-locale.patch
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  libqt5-linguist
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(ao)
BuildRequires:  pkgconfig(liba52)
%if 0%{?suse_version} > 1500
BuildRequires:  pkgconfig(libavcodec) >= 58.7.100
BuildRequires:  pkgconfig(libavformat) >= 58.0.102
BuildRequires:  pkgconfig(libavutil) >= 56.6.100
BuildRequires:  pkgconfig(libswscale) >= 5.0.101
BuildRequires:  pkgconfig(libavcodec) = 57.107.100
BuildRequires:  pkgconfig(libavfilter) = 6.107.100
BuildRequires:  pkgconfig(libavformat) = 57.83.100
BuildRequires:  pkgconfig(libavutil) = 55.78.100
BuildRequires:  pkgconfig(mad)

DVBcut is a Qt application that allows you to select certain parts of an MPEG
transport stream (as received via Digital Video Broadcasting, DVB) and save
these parts into a single MPEG output file. It follows a `keyhole surgery''
approach where the input video and audio data is mostly kept unchanged, and
only very few frames at the beginning and/or end of the selected range are re-
encoded in order to obtain a valid MPEG file.

%setup -q -n %{name}-deb-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

export CXXFLAGS="-std=c++11 %{optflags}"
export CPPFLAGS=-DDVBCUT_VERSION=\\\"%{version}\\\"
autoreconf -fiv
make %{?_smp_mflags}

%fdupes -s %{buildroot}%{_datadir}

%doc ChangeLog README README.icons
%license COPYING

openSUSE Build Service is sponsored by