File mingw32-libsndfile.spec of Package mingw32-libsndfile
#
# spec file for package mingw32-libsndfile
#
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: mingw32-libsndfile
Version: 1.0.28
Release: 0
Summary: A Library to Handle Various Audio File Formats
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://www.mega-nerd.com/libsndfile/
Source: http://www.mega-nerd.com/libsndfile/files/libsndfile-%{version}.tar.gz
Patch0: libsndfile-1.0.28-canonicalhost.patch
# PATCH-FIX-UPSTREAM CVE-2014-9496 bnc#911796
Patch1: sndfile-src-sd2.c-Fix-segfault-in-SD2-RSRC-parser.patch
# PATCH-FIX-UPSTREAM CVE-2014-9496 bnc#911796
Patch2: sndfile-src-sd2.c-Fix-two-potential-buffer-read-overflows.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-flac-devel
BuildRequires: mingw32-libvorbis-devel
BuildRequires: mingw32-sqlite-devel
BuildRequires: pkg-config
BuildRequires: python
%_mingw32_package_header_debug
BuildArch: noarch
%description
Libsndfile is a C library for reading and writing sound files, such as
AIFF, AU, and WAV files, through one standard interface. It can
currently read and write 8, 16, 24, and 32-bit PCM files as well as
32-bit floating point WAV files and a number of compressed formats.
%package -n mingw32-libsndfile1
Summary: A Library to Handle Various Audio File Formats
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-libsndfile1
Libsndfile is a C library for reading and writing sound files, such as
AIFF, AU, and WAV files, through one standard interface. It can
currently read and write 8, 16, 24, and 32-bit PCM files as well as
32-bit floating point WAV files and a number of compressed formats.
%package devel
Summary: Development package for the libsndfile library
Group: Development/Libraries/C and C++
%description devel
This package contains the files needed to compile programs that use libsndfile.
%package tools
Summary: Example Programs for libsndfile
Group: System/Libraries
%description tools
This package includes the example programs for libsndfile.
%_mingw32_debug_package
%prep
%setup -q -n libsndfile-%{version}
%patch -P 0 -p1 -b .canonicalhost
#%patch1 -p1 -b .canonicalhost
#%patch2 -p1 -b .canonicalhost
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
sh ./autogen.sh || echo $?
%if 0%{?leap_version} == 420300
# fix undefined reference to `__memmove_chk
%global _mingw32_ldflags %{_mingw32_ldflags} -lssp
%endif
%{_mingw32_configure} \
--disable-static \
--enable-sqlite \
--disable-shave
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libsndfile1
%defattr(-, root, root)
%{_mingw32_bindir}/libsndfile-1.dll
%files devel
%defattr(-, root, root)
%{_mingw32_docdir}/libsndfile
%{_mingw32_libdir}/libsndfile*.dll.a
%{_mingw32_includedir}/*
%{_mingw32_libdir}/pkgconfig/*.pc
%files tools
%defattr(-, root, root)
%{_mingw32_bindir}/*.exe
%{_mingw32_mandir}/man?/*
%changelog