File tsMuxer.spec of Package tsMuxer

#
# spec file for package bluefish
#
# Copyright (c) 2017 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:		tsMuxer
Version:	2.7.0
Release:	1%{?dist}
License:	Apache-2.0
Group:      Productivity/Multimedia/Video/Editors and Convertors
Summary:	A simple program to mux video to TS/M2TS files or create BD disks
URL:		https://github.com/justdan96/tsMuxer
Source0:	%{name}-%{version}.tar.gz
#ExclusiveArch:	x86_64
BuildRequires:  gcc 
BuildRequires:  cmake
%if 0%{?suse_version}
BuildRequires:	ninja
BuildRequires:	libQt5Core-devel
BuildRequires:	libQt5Widgets-devel
BuildRequires:	libQt5Multimedia-devel
BuildRequires:	libQt5Gui-devel
BuildRequires:	freetype2-devel
BuildRequires:	zlib-devel
BuildRequires:	libqt5-linguist-devel
%endif
BuildRequires:  hicolor-icon-theme

%description 
A transport stream muxer for remuxing/muxing elementary streams,
EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS

%debug_package

%prep
%setup -q

%build
rm -rf build
mkdir build
cd build
cmake ../ -G Ninja -DTSMUXER_GUI=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
ninja
cp %{_sourcedir}/tsMuxerGUI.desktop %{_builddir}/%{name}-%{version}/tsMuxerGUI.desktop

%check

%install 
mkdir -p %{buildroot}%{_bindir}
install -m 755 -t %{buildroot}%{_bindir} build/tsMuxer/tsmuxer
install -m 755 -t %{buildroot}%{_bindir} build/tsMuxerGUI/tsMuxerGUI
install -D -m 0644 tsMuxerGUI.desktop %{buildroot}%{_datadir}/applications/tsMuxerGUI.desktop
install -D -m 0644 tsMuxerGUI/images/icon.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/tsMuxerGUI.png

%files 
%defattr(-,root,root,-)
%license LICENSE
%doc README.md
%{_bindir}/tsmuxer
%{_bindir}/tsMuxerGUI
%{_datadir}/applications/tsMuxerGUI.desktop
%{_datadir}/icons/hicolor/128x128/apps/tsMuxerGUI.png

%changelog
openSUSE Build Service is sponsored by