- Fix compilation problem with GCC 4.4

epel8
Michel Alexandre Salim 16 years ago
parent e2d0e95681
commit b68cf60d76

@ -0,0 +1,10 @@
--- vamp-plugin-sdk-2.0/examples/FixedTempoEstimator.cpp.gcc44 2008-12-01 06:48:41.000000000 -0500
+++ vamp-plugin-sdk-2.0/examples/FixedTempoEstimator.cpp 2009-02-08 00:31:38.751861057 -0500
@@ -44,6 +44,7 @@
using Vamp::RealTime;
#include <cmath>
+#include <cstdio>
class FixedTempoEstimator::D

@ -1,6 +1,6 @@
Name: vamp-plugin-sdk Name: vamp-plugin-sdk
Version: 2.0 Version: 2.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: An API for audio analysis and feature extraction plugins Summary: An API for audio analysis and feature extraction plugins
Group: System Environment/Libraries Group: System Environment/Libraries
@ -8,6 +8,7 @@ License: BSD
URL: http://www.vamp-plugins.org/ URL: http://www.vamp-plugins.org/
Source0: http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-%{version}.tar.gz Source0: http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-%{version}.tar.gz
Patch0: %{name}-2.0-libdir.patch Patch0: %{name}-2.0-libdir.patch
Patch1: %{name}-2.0-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libsndfile-devel BuildRequires: libsndfile-devel
@ -40,6 +41,7 @@ developing static applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .libdir %patch0 -p1 -b .libdir
%patch1 -p1 -b .gcc44
sed -i 's|/lib/vamp|/%{_lib}/vamp|g' src/vamp-hostsdk/PluginHostAdapter.cpp sed -i 's|/lib/vamp|/%{_lib}/vamp|g' src/vamp-hostsdk/PluginHostAdapter.cpp
@ -100,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sun Feb 8 2009 Michel Salim <salimma@fedoraproject.org> - 2.0-3
- Fix compilation problem with GCC 4.4
* Tue Dec 30 2008 Michel Salim <salimma@fedoraproject.org> - 2.0-2 * Tue Dec 30 2008 Michel Salim <salimma@fedoraproject.org> - 2.0-2
- More libdir fixes (bug #469777) - More libdir fixes (bug #469777)

Loading…
Cancel
Save