[mingw-wavpack] Initial import (#1047707).

František Dvořák valtri at fedoraproject.org
Fri Feb 14 20:31:07 UTC 2014


commit 88bcada7a0fce3fb6af0fa8fc26ef5c35a32bde8
Author: František Dvořák <valtri at civ.zcu.cz>
Date:   Fri Feb 14 21:23:27 2014 +0100

    Initial import (#1047707).

 .gitignore                                         |    1 +
 mingw-wavpack.spec                                 |  133 ++++++++++++++++++++
 sources                                            |    1 +
 ...01-Fixed-default-values-in-pkgconfig-file.patch |   32 +++++
 wavpack-strict-aliasing.patch                      |   13 ++
 5 files changed, 180 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2e3da01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/wavpack-4.60.1.tar.bz2
diff --git a/mingw-wavpack.spec b/mingw-wavpack.spec
new file mode 100644
index 0000000..f3d9a12
--- /dev/null
+++ b/mingw-wavpack.spec
@@ -0,0 +1,133 @@
+%{?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 <valtri at civ.zcu.cz> - 4.60.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..35325dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7bb1528f910e4d0003426c02db856063  wavpack-4.60.1.tar.bz2
diff --git a/wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch b/wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch
new file mode 100644
index 0000000..be205b3
--- /dev/null
+++ b/wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch
@@ -0,0 +1,32 @@
+From 194af7649ea958e6609289e8d210e66b168d57cf Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Sun, 9 Jan 2011 16:10:20 +0300
+Subject: [PATCH] Fixed default values in pkgconfig file
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ wavpack.pc.in |    6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/wavpack.pc.in b/wavpack.pc.in
+index fe6b231..58e74ac 100644
+--- a/wavpack.pc.in
++++ b/wavpack.pc.in
+@@ -1,5 +1,5 @@
+ prefix=@prefix@
+-libdir=${prefix}/lib
++libdir=@libdir@
+ includedir=${prefix}/include
+ 
+ Name: wavpack
+@@ -7,5 +7,5 @@ Description: wavpack library
+ Version: @PACKAGE_VERSION@
+ Requires:
+ Conflicts:
+-Libs: -L${libdir} -lwavpack @LIBM@ @ICONV@
+-Cflags: -I${includedir}
++Libs: -lwavpack @LIBM@ @ICONV@
++Cflags:
+-- 
+1.7.2.3
+
diff --git a/wavpack-strict-aliasing.patch b/wavpack-strict-aliasing.patch
new file mode 100644
index 0000000..8229af0
--- /dev/null
+++ b/wavpack-strict-aliasing.patch
@@ -0,0 +1,13 @@
+diff -up wavpack-4.60.1/cli/md5.c.strict_aliasing wavpack-4.60.1/cli/md5.c
+--- wavpack-4.60.1/cli/md5.c.strict_aliasing	2009-12-01 05:24:52.000000000 +0100
++++ wavpack-4.60.1/cli/md5.c	2013-01-03 18:38:00.647181420 +0100
+@@ -151,8 +151,7 @@ void MD5Final(digest, ctx)
+     byteReverse(ctx->in, 14);
+ 
+     /* Append length in bits and transform */
+-    ((uint32 *) ctx->in)[14] = ctx->bits[0];
+-    ((uint32 *) ctx->in)[15] = ctx->bits[1];
++    memcpy(ctx->in + 14 * sizeof (uint32), ctx->bits, 2 * sizeof (uint32));
+ 
+     MD5Transform(ctx->buf, (uint32 *) ctx->in);
+     byteReverse((unsigned char *) ctx->buf, 4);


More information about the scm-commits mailing list