- Fix compilation with gcc 4.3

This commit is contained in:
Hans de Goede 2008-01-11 21:23:08 +00:00
parent 7aefbea76d
commit 0ed6dd5405
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp~ soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp
--- soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp~ 2008-01-11 22:21:43.000000000 +0100
+++ soundtouch-1.3.1/source/example/SoundStretch/WavFile.cpp 2008-01-11 22:21:43.000000000 +0100
@@ -48,6 +48,7 @@
#include <stdio.h>
#include <stdexcept>
#include <string>
+#include <cstring>
#include <assert.h>
#include <limits.h>

View File

@ -1,11 +1,12 @@
Name: soundtouch
Version: 1.3.1
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Audio Processing library for changing Tempo, Pitch and Playback Rates
License: LGPLv2+
Group: System Environment/Libraries
URL: http://sky.prohosting.com/oparviai/soundtouch/
Source0: %{name}-%{version}.tar.gz
Patch0: soundtouch-1.3.1-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++ libtool
@ -33,6 +34,7 @@ Libraries, include files, etc you can use to develop soundtouch applications.
%prep
%setup -q
%patch0 -p1
# set correct version for .so build
%define ltversion %(echo %{version} | tr '.' ':')
sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' \
@ -105,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Jan 11 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-9
- Fix compilation with gcc 4.3
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.3.1-8
- Rebuild for buildId
- Update license tag for new license guidelines compliance