%{?mingw_package_header} Name: mingw-wavpack Version: 4.60.1 Release: 1%{?dist} Summary: Completely open audiocodec License: BSD URL: http://www.wavpack.com/ Source: http://www.wavpack.com/wavpack-%{version}.tar.bz2 Patch1: wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch Patch2: wavpack-strict-aliasing.patch BuildArch: noarch BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc %description WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality. %package -n mingw32-wavpack Summary: %{summary} %description -n mingw32-wavpack WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality. This package is MinGW compiled wavpack library for the Win32 target. %package -n mingw32-wavpack-tools Summary: %{summary} tools Requires: mingw32-wavpack = %{version}-%{release} %description -n mingw32-wavpack-tools WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality. This package is MinGW compiled wavpack tools for the Win32 target. %package -n mingw64-wavpack Summary: %{summary} %description -n mingw64-wavpack WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality. This package is MinGW compiled wavpack library for the Win64 target. %package -n mingw64-wavpack-tools Summary: %{summary} tools Requires: mingw64-wavpack = %{version}-%{release} %description -n mingw64-wavpack-tools WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality. This package is MinGW compiled wavpack tools for the Win64 target. %{?mingw_debug_package} %prep %setup -q -n wavpack-%{version} %patch1 -p1 -b .pkgconfig_values %patch2 -p1 -b .strict_aliasing %build %mingw_configure --disable-static %mingw_make %{?_smp_mflags} %install %mingw_make_install DESTDIR=%{buildroot} # remove libtool files rm -f %{buildroot}%{mingw32_libdir}/*.la rm -f %{buildroot}%{mingw64_libdir}/*.la # remove documentation (it's in the native version) rm -rf %{buildroot}%{mingw32_mandir} rm -rf %{buildroot}%{mingw64_mandir} %files -n mingw32-wavpack %doc license.txt %dir %{mingw32_includedir}/wavpack %{mingw32_bindir}/libwavpack-1.dll %{mingw32_includedir}/wavpack/*.h %{mingw32_libdir}/pkgconfig/* %{mingw32_libdir}/libwavpack.dll.a %files -n mingw32-wavpack-tools %{mingw32_bindir}/*.exe %files -n mingw64-wavpack %doc license.txt %dir %{mingw64_includedir}/wavpack %{mingw64_bindir}/libwavpack-1.dll %{mingw64_includedir}/wavpack/*.h %{mingw64_libdir}/pkgconfig/* %{mingw64_libdir}/libwavpack.dll.a %files -n mingw64-wavpack-tools %{mingw64_bindir}/*.exe %changelog * Wed Feb 12 2014 František Dvořák - 4.60.1-1 - Initial package