diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c182c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/wavpack-4.60.1.tar.bz2 diff --git a/.wavpack.metadata b/.wavpack.metadata new file mode 100644 index 0000000..b298bf4 --- /dev/null +++ b/.wavpack.metadata @@ -0,0 +1 @@ +003c65cb4e29c55011cf8e7b10d69120df5e7f30 SOURCES/wavpack-4.60.1.tar.bz2 diff --git a/SOURCES/wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch b/SOURCES/wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch new file mode 100644 index 0000000..be205b3 --- /dev/null +++ b/SOURCES/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 +Date: Sun, 9 Jan 2011 16:10:20 +0300 +Subject: [PATCH] Fixed default values in pkgconfig file + +Signed-off-by: Peter Lemenkov +--- + 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/SOURCES/wavpack-manpages.patch b/SOURCES/wavpack-manpages.patch new file mode 100644 index 0000000..9656f8a --- /dev/null +++ b/SOURCES/wavpack-manpages.patch @@ -0,0 +1,35 @@ +diff -up wavpack-4.60.1/man/wavpack.1.manpages wavpack-4.60.1/man/wavpack.1 +--- wavpack-4.60.1/man/wavpack.1.manpages 2009-12-01 05:26:36.000000000 +0100 ++++ wavpack-4.60.1/man/wavpack.1 2013-07-08 17:34:44.356411775 +0200 +@@ -136,6 +136,16 @@ calculate average and peak quantization + don\'t recode passed tags from local encoding to UTF\-8, assume they are in UTF\-8 already + .RE + .PP ++\fB\-o \fR\fB\fIOUTFILE\fR\fR ++.RS 4 ++specify output filename (only if single source file) or target directory (must exist) ++.RE ++.PP ++\fB\-\-optimize\-mono\fR ++.RS 4 ++optimization for stereo files that are really mono (result may be incompatible with very old decoders) ++.RE ++.PP + \fB\-\-pair\-unassigned\-chans\fR + .RS 4 + encode unassigned channels into stereo pairs +diff -up wavpack-4.60.1/man/wvunpack.1.manpages wavpack-4.60.1/man/wvunpack.1 +--- wavpack-4.60.1/man/wvunpack.1.manpages 2009-12-01 05:26:38.000000000 +0100 ++++ wavpack-4.60.1/man/wvunpack.1 2013-07-08 17:38:20.731709579 +0200 +@@ -86,6 +86,11 @@ calculate and display MD5 signature; ver + leave extracted text tags in UTF\-8 encoding during extraction or display + .RE + .PP ++\fB\-o \fR\fB\fIOUTFILE\fR\fR ++.RS 4 ++specify output filename (only if single source file) or target directory (must exist) ++.RE ++.PP + \fB\-q\fR + .RS 4 + quiet (keep console output to a minimum) diff --git a/SOURCES/wavpack-strict-aliasing.patch b/SOURCES/wavpack-strict-aliasing.patch new file mode 100644 index 0000000..8229af0 --- /dev/null +++ b/SOURCES/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); diff --git a/SPECS/wavpack.spec b/SPECS/wavpack.spec new file mode 100644 index 0000000..4cb9c18 --- /dev/null +++ b/SPECS/wavpack.spec @@ -0,0 +1,150 @@ +Name: wavpack +Summary: A completely open audiocodec +Version: 4.60.1 +Release: 9%{?dist} +License: BSD +Group: Applications/Multimedia +Url: http://www.wavpack.com/ +Source: http://www.wavpack.com/%{name}-%{version}.tar.bz2 +Patch1: wavpack-0001-Fixed-default-values-in-pkgconfig-file.patch +Patch2: wavpack-strict-aliasing.patch +Patch3: wavpack-manpages.patch +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%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 devel +Summary: WavPack - development files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files needed for developing apps using wavpack + +%prep +%setup -q +%patch1 -p1 -b .pkgconfig_values +%patch2 -p1 -b .strict_aliasing +%patch3 -p1 -b .manpages + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install +rm -f %{buildroot}/%{_libdir}/*.la + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{_libdir}/libwavpack.so.* +%{_mandir}/man1/wavpack.1* +%{_mandir}/man1/wvgain.1* +%{_mandir}/man1/wvunpack.1* +%doc license.txt + +%files devel +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/pkgconfig/* +%{_libdir}/libwavpack.so +%doc ChangeLog README doc/* + +%changelog +* Fri Jan 24 2014 Daniel Mach - 4.60.1-9 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 4.60.1-8 +- Mass rebuild 2013-12-27 + +* Mon Jul 08 2013 Miroslav Lichvar 4.60.1-7 +- Add missing options to man pages + +* Fri Feb 15 2013 Fedora Release Engineering - 4.60.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jan 3 2013 Miroslav Lichvar 4.60.1-5 +- Fix -Wstrict-aliasing compiler warnings + +* Sun Jul 22 2012 Fedora Release Engineering - 4.60.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 4.60.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 4.60.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jan 9 2011 Peter Lemenkov 4.60.1-1 +- Version 4.60.1 (bugfix release) +- Added man-pages +- The only patch was rebased +- Small cosmetic spec-file cleanups + +* Mon Sep 28 2009 Peter Lemenkov 4.60-1 +- Version 4.60 + +* Mon Jul 27 2009 Fedora Release Engineering - 4.50.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 4.50.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Aug 30 2008 Peter Lemenkov 4.50.1-2 +- Fixes to meet the Fedora Packaging Guidelines + +* Sun Aug 24 2008 Peter Lemenkov 4.50.1-1 +- Version 4.50.1 + +* Wed Jun 18 2008 Peter Lemenkov 4.50-1 +- Version 4.50 + +* Tue Feb 19 2008 Fedora Release Engineering - 4.41-2 +- Autorebuild for GCC 4.3 + +* Sat May 12 2007 Peter Lemenkov 4.41-1 +- Version 4.41 +- Removed unnecessary --with-pic + +* Fri Dec 15 2006 Peter Lemenkov 4.40-1.1 +- Rebuild + +* Fri Dec 15 2006 Peter Lemenkov 4.40-1 +- Version 4.40 + +* Tue Sep 12 2006 Peter Lemenkov 4.32-3%{?dist} +- Rebuild for FC6 + +* Sat Jul 01 2006 Peter Lemenkov 4.32-2%{?dist} +- force PIC-only code + +* Wed Jun 28 2006 Peter Lemenkov 4.32-1%{?dist} +- Version 4.32 + +* Thu Mar 30 2006 Peter Lemenkov 4.31-2%{?dist} +- rebuild + +* Sat Jan 07 2006 Peter Lemenkov 4.31-1 +- Fixed several issues with wavpack.pc.in +- Cosmetic fixes. +- Version 4.31 + +* Sun Nov 13 2005 Peter Lemenkov 4.3-1 +- Initial build for FC-Extras +- Version 4.3 +