File lplex.spec of Package lplex

#
# spec file for package lplex
#
# 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:           lplex
Version:        0.3
Release:        0
Summary:        LPCM Multiplex/Demultiplex Utility for DVD-Video
License:        GPL-3.0
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Url:            http://audioplex.sourceforge.net/
Source0:        %{name}-%{version}.tar.xz
Patch0:         %{name}-flac.patch
Patch1:         %{name}-main.patch
Patch2:         %{name}-video.patch
Patch3:         %{name}-makefile.patch
BuildRequires:  automake
BuildRequires:  flac-devel
BuildRequires:  gcc-c++
BuildRequires:  libdvdread-devel
BuildRequires:  wxWidgets-ansi-devel < 2.9
Requires:       dvdauthor >= 0.6.14
Requires:       mjpegtools >= 1.9.0
Requires:       mkisofs

%description
LPlex is a LPCM multiplex/demultiplex utility for DVD-Video with md5 verification. It creates full-resolution "audio-only" dvd-video discs from wav/flac filesets, and extracts unencrypted LPCM audio from dvd-video to wav/flac.

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3

%build
%if 0%{?suse_version} && 0%{?suse_version} > 1320
export CXXFLAGS="${CXXFLAGS:-%{optflags}} -std=c++03"
%endif
%configure --docdir=%{_defaultdocdir}/%{name}
%{__make} %{?_smp_mflags}
%{__strip} -s src/%{name}

%install
%{__make} install DESTDIR=%{buildroot}

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.gz
%{_defaultdocdir}/%{name}/

%changelog
openSUSE Build Service is sponsored by