File split2flac.spec of Package split2flac
#
# spec file for package split2flac
#
# 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: split2flac
Version: 122
Release: 0
Summary: Split flac/ape/wv/wav + cue sheet into separate tracks
License: MIT
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: https://github.com/ftrvxmtrx/%{name}
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
Requires: cuetools
Requires: shntool
Recommends: ImageMagick
Recommends: aacgain
Recommends: enca
Recommends: faac
Recommends: flac
Recommends: glibc
Recommends: id3lib
Recommends: lame
Recommends: libmp4v2
Recommends: mac
Recommends: mp3gain
Recommends: ttaenc
Recommends: wavpack
Recommends: vorbis-tools
Recommends: vorbisgain
%description
split2flac splits one big APE/FLAC/TTA/WV/WAV audio image (or a collection of such files, recursively) with CUE sheet into FLAC/M4A/MP3/OGG_VORBIS/WAV tracks with tagging, renaming, charset conversion of cue sheet, album cover images. It also uses configuration file, so no need to pass a lot of arguments every time, only an input file. Should work in any POSIX-compliant shell.
%prep
%setup -q
%build
%install
%{__install} -D -m 0755 -p %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -D -m 0644 -p %{name}-bash-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}.sh
%{__ln_s} -r %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/split2mp3
%{__ln_s} -r %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/split2ogg
%{__ln_s} -r %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/split2m4a
%{__ln_s} -r %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/split2wav
%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_bindir}/split2mp3
%{_bindir}/split2ogg
%{_bindir}/split2m4a
%{_bindir}/split2wav
%{_sysconfdir}/bash_completion.d/%{name}.sh
%doc README.md
%changelog