File ODR-AudioEnc.spec of Package ODR-AudioEnc
#
# spec file for package ODR-AudioEnc
#
# Copyright (c) 2017-2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define sover 0
Name: ODR-AudioEnc
Version: 3.6.0
Release: 0
Summary: DAB and DAB+ audio encoder
License: Apache-2.0
Group: Productivity/Hamradio/Other
URL: https://www.opendigitalradio.org/
#Git-Clone: https://github.com/Opendigitalradio/ODR-AudioEnc.git
Source: https://github.com/Opendigitalradio/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: zeromq-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
BuildRequires: pkgconfig(gstreamer-audio-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-controller-1.0)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libvlc)
Provides: bundled(fdk-aac)
Provides: bundled(libtoolame-dab)
%description
This package contains a DAB and DAB+ encoder that integrates into the ODR-mmbTools.
The DAB encoder is based on toolame. The DAB+ encoder uses a modified library of
the Fraunhofer FDK AAC code from Android, patched for 960-transform to do DAB+
broadcast encoding. FDK-AAC has to be supplied separately.
The main tool is the odr-audioenc encoder, which can read audio from a file
(raw or wav), from an ALSA source, from JACK or using libVLC, and encode to a file,
a pipe, or to a ZeroMQ output compatible with ODR-DabMux.
%prep
%autosetup
%build
autoreconf -fiv
%configure \
--enable-alsa \
--enable-gst \
--enable-jack \
--enable-vlc
%make_build
%install
%make_install
%files
%doc ChangeLog README.md
%{_bindir}/odr-audioenc
%{_mandir}/man1/odr-audioenc.1%{?ext_man}
%changelog