File dvda-author.spec of Package dvda-author
#
# spec file for package dvda-author
#
# Copyright (c) 2019 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: dvda-author
Version: 18.12
Release: 0
Summary: High-Definition DVD-Audio Disc Authoring Tool
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://dvd-audio.sourceforge.net/
Source0: %{name}-dev-%{version}.tar.xz
Patch0: %{name}-makefile.patch
BuildRequires: automake
BuildRequires: binutils-devel
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: flac-devel
BuildRequires: help2man
BuildRequires: hxtools-scripts
BuildRequires: libogg-devel
BuildRequires: libtool
BuildRequires: sox-devel >= 14.3.0
Recommends: ImageMagick
Recommends: a52dec
Recommends: cdrtools >= 3.00
Recommends: dvdauthor >= 0.7.1
Recommends: lplex
Recommends: mjpegtools
Recommends: mpeg2dec
Recommends: vlc
%package doc
Summary: Documentation for DVDA-Author
Group: Documentation/Man
BuildArch: noarch
Requires: %{name} = %{version}
%description
DVDA-Author creates high-definition DVD-Audio disc structures from either WAV, FLAC/Ogg FLAC, or SoX-supported audio formats (.au, .aiff, .gsm, etc.). This version supports multichannel audio up to 5.1. It can also create "hybrid" or "universal" DVD-Audio/Video disc structures, which contain both DVD-Audio and DVD-Video zones. A navigation feature makes it possible to start playing a video title from within audio zone or an audio title from within video zone. Wav header correction, 'gapless' track-to-track playback and DVD-Audio menus are the latest features to date.
%description doc
This package contains the documentation for DVDA-Author.
%prep
%setup -q -c
%{__tar} -xf %{name}-dev.tar
cd %{name}-dev
%{__rm} -f Docs/*.orig Docs/*/*.orig
%patch0
%build
export CFLAGS="${CFLAGS:-%{optflags}} -std=gnu99"
cd %{name}-dev
./autogen
%configure --docdir=%{_defaultdocdir}/%{name} --with-config=%{_datadir}/%{name}
%{__make}
%{__strip} -s src/%{name}-dev
%install
cd %{name}-dev
%{__make} install DESTDIR=%{buildroot}
%{__mv} %{buildroot}%{_bindir}/%{name}-dev %{buildroot}%{_bindir}/%{name}
%{__mv} %{buildroot}%{_mandir}/man1/%{name}-dev.1 %{buildroot}%{_mandir}/man1/%{name}.1
%{__gzip} %{buildroot}%{_mandir}/man1/%{name}.1
%{__rm} -fr %{buildroot}/%{_infodir}
%{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} BUGS COPYING ChangeLog DEPENDENCIES EXAMPLES LIMITATIONS NEWS README README.txt TROUBLESHOOT
%{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name}/doc
%{__cp} -a -t %{buildroot}%{_defaultdocdir}/%{name}/doc Docs/*
/usr/bin/dos2unix -k %{buildroot}%{_defaultdocdir}/%{name}/* %{buildroot}%{_defaultdocdir}/%{name}/doc/* %{buildroot}%{_defaultdocdir}/%{name}/doc/*/* %{buildroot}%{_defaultdocdir}/%{name}/doc/*/*/*
%{__chmod} 644 %{buildroot}%{_defaultdocdir}/%{name}/doc/a1_16_44.wav
%fdupes %{buildroot}%{_defaultdocdir}/%{name}
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/%{name}/
%files doc
%defattr(-,root,root,-)
%{_defaultdocdir}/%{name}/
%changelog