File audenc.spec of Package audenc

#
# spec file for package audenc
#
# Copyright (c) 2022 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:           audenc
Version:        3.3.9
Release:        1699.1.pm.19
Summary:        Batch script for audio encoding
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Url:            http://sourceforge.net/projects/audenc/
Source0:        %{name}-%{version}.tar.gz
Requires:       mplayer
Requires:       aften
Requires:       flac
Requires:       gpac
Requires:       lame
Requires:       mediainfo
Requires:       nano
Requires:       opus-tools
Requires:       vorbis-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
audenc is a small script for encoding audio from one format to another.
Currently, the script supports MP3, AAC (through FAAC or neroAacEnc),
Vorbis, AC3, FLAC and WAV (decoding) output. Automatic tagging, if present
in the original file, is also supported (except for AC3 and WAV output).

The script is intended to be used on directories where you want to re-encode
a given directory with audio files to some other format, so the script does
not accept individual files directly and is in fact a batch script. It can
also be ran under cron to watch a given directory every X minutes so if you
copy tracks to that directory, when cron executes the script, it will encode
and move them over to a given output directory. The script uses a config file,
located in /home/username/.audenc, where the user can set things up (encoding input dir,
output dir, encoder options, paths to the programs, etc). Further, audenc also
accepts the input and output directory as parameters on the command line (which
overwrites the ENCDIR and OUTDIR variables set in the config file).

Since audenc uses MPlayer for decoding to WAV which then gets fed to the chosen
audio encoder, it can also encode audio from video files so you don't have to
first manually dump the audio from a video file and then encode it as audenc will
do it for you.

%prep
%setup -q

%build

%install
install -D -m 755 %{name} %{buildroot}/%{_bindir}/%{name}

gzip -9 man/%{name}.1
install -D -m 644 man/%{name}.1.gz %{buildroot}/%{_mandir}/man1/%{name}.1.gz

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%doc doc/*

%changelog
* Sat Mar  4 2023 neutrino8@gmail.com
- Update to version 3.3.9
  * Use 'title' instead of 'name' for MP4Box tags to comply with newer
    versions
* Wed Feb 15 2023 neutrino8@gmail.com
- Update to version 3.3.8
  * Added -mpeg4 switch to MP4Box
  * Removed the 'track' -itags property for MP4Box. It is not needed
  * Syntax updates
* Tue Feb 14 2023 neutrino8@gmail.com
- Update to version 3.3.7
  * Use MP4Box to add tags when using FDK's aac-enc and aacplusenc encoders
    instead of relying on neroAacTag
  * Update to the default encoding values in the config file
* Sun Feb  6 2022 neutrino8@gmail.com
- Update to version 3.3.6
  * Silence MPlayer warnings
* Thu Jul 26 2018 neutrino8@gmail.com
- Update to version 3.3.5
  * Add webm extension to supported formats
* Mon Oct 17 2016 neutrino8@gmail.com
- Initial package release
openSUSE Build Service is sponsored by