File mingw32-flac.spec of Package mingw32-flac
#
# spec file for package mingw32-flac
#
# 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-flac
Version: 1.4.3
Release: 0
Summary: Free Lossless Audio Codec Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://xiph.org/flac/
Source: https://github.com/xiph/flac/releases/download/%{version}/flac-%{version}.tar.xz
#!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 >= 23
BuildRequires: mingw32-libogg-devel
BuildRequires: mingw32-win_iconv-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
FLAC is an open source lossless audio codec developed by Josh Coalson.
%package -n mingw32-libFLAC12
Summary: Free Lossless Audio Codec Library
Group: System/Libraries
Provides: mingw32-libflac
%description -n mingw32-libFLAC12
This package contains the library for FLAC (Free Lossless Audio Codec)
developed by Josh Coalson.
%package -n mingw32-libFLAC++10
Summary: Free Lossless Audio Codec C++ Library
Group: System/Libraries
Provides: mingw32-libflac++
%description -n mingw32-libFLAC++10
This package contains the C++ library for FLAC (Free Lossless Audio
Codec) developed by Josh Coalson.
%package devel
Summary: Free Lossless Audio Codec Library (development files)
Group: Development/Libraries/C and C++
%description devel
This package contains the files needed to compile programs that use the
FLAC library.
%_mingw32_debug_package
%prep
%setup -q -n flac-%{version}
%build
./autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
# fix linker failure: undefined reference to `__memset_chk'
%if 0%{?leap_version} == 420300
%global _mingw32_ldflags %{_mingw32_ldflags} -lssp
%endif
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
--enable-shared --disable-static
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%{_mingw32_bindir}/metaflac.exe
%{_mingw32_bindir}/flac.exe
%{_mingw32_mandir}/man1/metaflac.1*
%{_mingw32_mandir}/man1/flac.1*
%files -n mingw32-libFLAC12
%defattr(-,root,root)
%{_mingw32_bindir}/libFLAC-12.dll
%files -n mingw32-libFLAC++10
%defattr(-,root,root)
%{_mingw32_bindir}/libFLAC++-10.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/FLAC
%{_mingw32_includedir}/FLAC++
%{_mingw32_libdir}/libFLAC.dll.a
%{_mingw32_libdir}/libFLAC++.dll.a
%{_mingw32_libdir}/pkgconfig/flac.pc
%{_mingw32_libdir}/pkgconfig/flac++.pc
%{_mingw32_datadir}/aclocal/libFLAC.m4
%{_mingw32_datadir}/aclocal/libFLAC++.m4
%{_mingw32_datadir}/doc/flac
%changelog