packages: libsbsms/libsbsms-gcc.patch (NEW), libsbsms/libsbsms-link.patch (...

qboosh qboosh at pld-linux.org
Sun May 8 09:26:46 CEST 2011


Author: qboosh                       Date: Sun May  8 07:26:46 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/libsbsms:
   libsbsms-gcc.patch (NONE -> 1.1)  (NEW), libsbsms-link.patch (NONE -> 1.1)  (NEW), libsbsms-opts.patch (NONE -> 1.1)  (NEW), libsbsms.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libsbsms/libsbsms-gcc.patch
diff -u /dev/null packages/libsbsms/libsbsms-gcc.patch:1.1
--- /dev/null	Sun May  8 09:26:46 2011
+++ packages/libsbsms/libsbsms-gcc.patch	Sun May  8 09:26:41 2011
@@ -0,0 +1,52 @@
+--- libsbsms-1.7.0/src/buffer.h.orig	2008-11-02 02:58:45.000000000 +0100
++++ libsbsms-1.7.0/src/buffer.h	2011-05-06 21:36:16.969710909 +0200
+@@ -6,6 +6,8 @@
+ #include "grain.h"
+ #include "trackpoint.h"
+ #include <list>
++#include <cstdlib>
++#include <cstring>
+ using namespace std;
+ 
+ namespace _sbsms_ {
+--- libsbsms-1.7.0/src/grain.cpp.orig	2008-11-07 01:10:27.000000000 +0100
++++ libsbsms-1.7.0/src/grain.cpp	2011-05-06 21:40:29.936386047 +0200
+@@ -4,6 +4,8 @@
+ #include "defs.h"
+ #include "real.h"
+ 
++#include <cstdlib>
++#include <cstring>
+ #include <map>
+ using namespace std;
+ using namespace _sbsms_;
+--- libsbsms-1.7.0/src/convert.cpp.orig	2008-11-13 06:34:52.000000000 +0100
++++ libsbsms-1.7.0/src/convert.cpp	2011-05-06 22:41:05.309841105 +0200
+@@ -143,7 +143,7 @@
+     si.rs = resampler;
+     sbsmser = sbsms_create(&samplesCB,&stretchCBLinear,&ratioCBLinear,channels,quality,bPreAnalyze,!bAnalyzeOnly);
+   }
+-  
++  long samplesOut;
+   if(bPreAnalyze && !bSynthesizeOnly) {
+ #ifdef BWAV
+     decoderPre = import(filenameIn);
+@@ -174,7 +174,7 @@
+     stretch2 = 1.0/stretch0;
+   else
+     stretch2 = log(stretch1/stretch0)/(stretch1-stretch0);
+-  long samplesOut = samplesToProcess * stretch2;
++  samplesOut = samplesToProcess * stretch2;
+   si.samplesToProcess = samplesToProcess;
+   si.samplesToGenerate = samplesOut;
+   si.stretch0 = stretch0;
+--- libsbsms-1.7.0/src/mp3.cpp.orig	2008-11-02 02:58:36.000000000 +0100
++++ libsbsms-1.7.0/src/mp3.cpp	2011-05-08 07:43:28.443823757 +0200
+@@ -7,6 +7,7 @@
+ #include "import.h"
+ #include "audiobuffer.h"
+ 
++#include <cstring>
+ #include <iostream>
+ #include <fstream>
+ 

================================================================
Index: packages/libsbsms/libsbsms-link.patch
diff -u /dev/null packages/libsbsms/libsbsms-link.patch:1.1
--- /dev/null	Sun May  8 09:26:46 2011
+++ packages/libsbsms/libsbsms-link.patch	Sun May  8 09:26:41 2011
@@ -0,0 +1,10 @@
+--- libsbsms-1.7.0/src/Makefile.am.orig	2011-05-08 07:43:46.687157704 +0200
++++ libsbsms-1.7.0/src/Makefile.am	2011-05-08 07:50:51.983838611 +0200
+@@ -7,6 +7,7 @@
+ libsbsms_la_SOURCES = pitch.cpp peak.cpp sms.cpp track.cpp trackpoint.cpp utils.cpp audio.cpp resample.cpp sbsms.cpp fft.cpp grain.cpp buffer.cpp subband.cpp audio.h buffer.h fft.h utils.h defs.h peak.h trackpoint.h grain.h pitch.h real.h resample.h ../include/sbsms.h sms.h subband.h track.h
+ 
+ libsbsms_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
++libsbsms_la_LIBADD = -lpthread
+ 
+ if ENABLE_PORTAUDIO
+ if ENABLE_WX

================================================================
Index: packages/libsbsms/libsbsms-opts.patch
diff -u /dev/null packages/libsbsms/libsbsms-opts.patch:1.1
--- /dev/null	Sun May  8 09:26:46 2011
+++ packages/libsbsms/libsbsms-opts.patch	Sun May  8 09:26:41 2011
@@ -0,0 +1,34 @@
+--- libsbsms-1.7.0/src/Makefile.am.orig	2008-11-01 20:38:37.000000000 +0100
++++ libsbsms-1.7.0/src/Makefile.am	2011-05-06 20:14:24.326213083 +0200
+@@ -1,4 +1,4 @@
+-AM_CXXFLAGS = -fasm-blocks -funroll-loops -I../include -fstrict-aliasing $(SNDFILE_CFLAGS) $(PORTAUDIO_CFLAGS) $(WX_CFLAGS)
++AM_CXXFLAGS = -I../include -fstrict-aliasing $(SNDFILE_CFLAGS) $(PORTAUDIO_CFLAGS) $(WX_CFLAGS)
+ 
+ libsbsmsincludedir = $(includedir)
+ libsbsmsinclude_HEADERS = ../include/sbsms.h
+--- libsbsms-1.7.0/configure.in.orig	2008-11-02 20:10:12.000000000 +0100
++++ libsbsms-1.7.0/configure.in	2011-05-06 20:15:04.196214418 +0200
+@@ -118,14 +118,6 @@ else
+ fi
+ AM_CONDITIONAL(ENABLE_PORTAUDIO, test x$enable_portaudio = xyes)
+ 
+-CXXFLAGS=`echo $CXXFLAGS | sed -e "s/-g//" -e "s/-O2//"`
+-
+-if test x$enable_debug = xyes; then
+-   CXXFLAGS="$CXXFLAGS -g -O0"
+-else
+-   CXXFLAGS="$CXXFLAGS -O3 -fomit-frame-pointer"
+-fi
+-
+ if test x$enable_static = xyes; then
+    CXXFLAGS="$CXXFLAGS"
+ else
+@@ -156,7 +156,7 @@
+ if test x$enable_wx = xyes; then
+ 
+    wxconfigargs=""
+-   if test x$enable_static = xyes; then
++   if test x$enable_wx_static = xyes; then
+       wxconfigargs="$wxconfigargs --static=yes"
+    else
+       wxconfigargs="$wxconfigargs --static=no"

================================================================
Index: packages/libsbsms/libsbsms.spec
diff -u /dev/null packages/libsbsms/libsbsms.spec:1.1
--- /dev/null	Sun May  8 09:26:46 2011
+++ packages/libsbsms/libsbsms.spec	Sun May  8 09:26:41 2011
@@ -0,0 +1,140 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	wx	# wxWidgets-based player
+#
+Summary:	C++ library for high quality time stretching and pitch scaling
+Summary(pl.UTF-8):	Biblioteka C++ do wysokiej jakości zmiany szybkości i wysokości dźwięku
+Name:		libsbsms
+Version:	1.7.0
+Release:	1
+License:	GPL v2
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/sbsms/%{name}-%{version}.tar.gz
+# Source0-md5:	6a6d1549fe4c4c7de8bfff5ce13bdece
+Patch0:		%{name}-opts.patch
+Patch1:		%{name}-gcc.patch
+Patch2:		%{name}-link.patch
+URL:		http://sbsms.sourceforge.net/
+BuildRequires:	autoconf
+BuildRequires:	automake >= 1.5
+BuildRequires:	libmad-devel
+BuildRequires:	libsndfile-devel >= 1.0.2
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool
+BuildRequires:	portaudio-devel >= 19
+BuildRequires:	pkgconfig
+%{?with_wx:BuildRequires:	wxGTK2-unicode-devel >= 2.8}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libsbsms is a library for high quality time and pitch scale
+modification. It uses octave subband sinusoidal modeling.
+
+%description -l pl.UTF-8
+libsbsms to biblioteka do wysokiej jakości modyfikowania szybkości i
+wysokości dźwięku. Wykorzystuje modelowanie sinusoidalne.
+
+%package devel
+Summary:	Header files for libsbsms library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libsbsms
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel
+
+%description devel
+Header files for libsbsms library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libsbsms.
+
+%package static
+Summary:	Static libsbsms library
+Summary(pl.UTF-8):	Statyczna biblioteka libsbsms
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libsbsms library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libsbsms.
+
+%package wx
+Summary:	wxWidgets-based player
+Summary(pl.UTF-8):	Odtwarzacz oparty na wxWidgets
+Group:		X11/Applications/Sound
+Requires:	%{name} = %{version}-%{release}
+
+%description wx
+wxWidgets-based player utilizing libsbsms.
+
+%description wx -l pl.UTF-8
+Oparty na wxWidgets odtwarzacz wykorzystujący libsbsms.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	WX_CONFIG=/usr/bin/wx-gtk2-unicode-config \
+	--enable-mp3 \
+	--enable-multithreaded \
+	--enable-portaudio \
+	--enable-sndfile \
+	--enable-shared \
+	%{?with_wx:--enable-wx}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/sbsms
+%attr(755,root,root) %{_bindir}/sbsmsplay
+%attr(755,root,root) %{_libdir}/libsbsms.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsbsms.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libsbsms.so
+%{_libdir}/libsbsms.la
+%{_includedir}/sbsms.h
+%{_pkgconfigdir}/sbsms.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsbsms.a
+
+%if %{with wx}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/wxsbsmsplayer
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/05/08 07:26:41  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list