File butt.spec of Package butt

# spec file for package butt
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Pascal Bleser <>
# 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

Name:           butt
Version:        0.1.16
Release:        0
Summary:        Broadcast Using This Tool
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Mixers
Patch1:         butt-fix.patch
Patch2:         butt-gcc6.patch
BuildRequires:  automake
BuildRequires:  fdk-aac-devel
BuildRequires:  flac-devel
BuildRequires:  fltk-devel
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
# These ones are not really needed. Here only because fltk-config is stupid.
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libmp3lame-devel
BuildRequires:  libogg-devel
BuildRequires:  libopus-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libvorbis-devel
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  portaudio-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(x11)
BuildRequires:  zlib-devel

butt (broadcast using this tool) is an easy to use, multi OS streaming tool.
It supports ShoutCast and IceCast.

%setup -q
%patch1 -p1
%patch2 -p1

export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
autoreconf -fi
make %{?_smp_mflags}

make prefix="%{_prefix}" DESTDIR=%{buildroot} install