File fdkaac.spec of Package fdkaac

#
# spec file for package fdkaac
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           fdkaac
Version:        1.0.6
Release:        0
Summary:        A command line frontend for the libfdk-aac encoder
License:        Zlib
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            https://github.com/nu774/%{name}/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  automake
BuildRequires:  libfdk-aac-devel

%description
fdkaac reads linear PCM audio in either WAV, raw PCM, or CAF format,
and encodes it into either M4A / AAC file.

If the input file is "-", data is read from stdin. Likewise, if the
output file is "-", data is written to stdout if one of streamable AAC
transport formats are selected by -f.

When CAF input and M4A output is used, tags in CAF file are copied into
the resulting M4A.

%prep
%setup -q

%build
%{_bindir}/autoreconf -if
%configure --docdir=%{_defaultdocdir}/%{name} --enable-silent-rules --disable-static
%make_build
%{__strip} -s %{name}

%install
%make_install
%{__gzip} %{buildroot}/%{_mandir}/man1/%{name}.1

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%doc ChangeLog README
%license COPYING

%changelog
openSUSE Build Service is sponsored by