File butt.spec of Package butt

#
# spec file for package butt
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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:           butt
Version:        0.1.16
Release:        0
Summary:        Broadcast Using This Tool
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Mixers
URL:            http://danielnoethen.de
Source:         https://sf.net/projects/%{name}/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
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

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

%prep
%setup -q
%patch -P 1 -p1
%patch -P 2 -p1

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

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

%files
%defattr(-,root,root)
%doc ChangeLog COPYING KNOWN_BUGS README
%{_bindir}/butt

%changelog