File libsndfile-progs.spec of Package libsndfile.4961

# spec file for package libsndfile-progs
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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:           libsndfile-progs
BuildRequires:  alsa-devel
BuildRequires:  flac-devel
BuildRequires:  gcc-c++
BuildRequires:  libjack-devel
BuildRequires:  libtool
BuildRequires:  libvorbis-devel
BuildRequires:  pkgconfig
BuildRequires:  sqlite-devel
Summary:        Example Programs for libsndfile
License:        LGPL-2.1+
Group:          System/Libraries
Version:        1.0.25
Release:        0
Patch:          libsndfile-example-fix.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package includes the example programs for libsndfile.

    Erik de Castro Lopo <>

%setup -q -n libsndfile-%{version}

%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
# autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
export CFLAGS
%configure --disable-silent-rules \
	--disable-static \
        --enable-sqlite \
make %{?_smp_mflags}

make DESTDIR="$RPM_BUILD_ROOT" install
# remove unnecessary lib files
rm -rf $RPM_BUILD_ROOT%{_libdir}
rm -rf $RPM_BUILD_ROOT%{_includedir}
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libsndfile1-dev

%defattr(-, root, root)
%doc %{_mandir}/man?/*

openSUSE Build Service is sponsored by