File darkice.spec of Package darkice
#
# spec file for package darkice
#
# Copyright (c) 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 https://bugs.opensuse.org/
#
Name: darkice
Version: 1.5+git20251015
Release: 0
Summary: Live audio streamer
License: GPL-3.0-or-later
URL: http://www.darkice.org/
#Git-Clone: https://github.com/rafael2k/darkice.git
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(lame)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisenc)
%description
DarkIce is a live audio streamer. It records audio from an audio interface
(e.g. sound card), encodes it and sends it to a streaming server.
%prep
%autosetup -p1
%build
cd darkice/trunk
autoreconf -fiv
%configure \
--with-lame \
--with-vorbis \
--with-opus \
--with-flac \
--with-pulseaudio
# --with-faac use faac for encoding AAC streams [check]
# --with-fdkaac use fdk-aac for encoding AAC HEv2 streams [check]
# --with-twolame use twolame for encoding MP2 streams [check]
# --with-alsa use ALSA sound system [check]
# --with-jack use JACK sound system [check]
# --with-samplerate use Secret Rabbit Code (aka libsamplerate) for
%make_build
%install
cd darkice/trunk
%make_install
%files
%license darkice/trunk/COPYING
%doc darkice/trunk/{ChangeLog,README,NEWS}
%{_bindir}/darkice
%config %{_sysconfdir}/darkice.cfg
%{_mandir}/man1/darkice.1%{?ext_man}
%{_mandir}/man5/darkice.cfg.5%{?ext_man}
%changelog