OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Mar-2008 14:22:07
Branch: HEAD Handle: 2008030913220601
Added files:
openpkg-src/spandsp spandsp.patch spandsp.spec
Log:
new package: spandsp 0.0.4pre18 (Digital Signal Processing (DSP)
Library)
Summary:
Revision Changes Path
1.1 +26 -0 openpkg-src/spandsp/spandsp.patch
1.1 +93 -0 openpkg-src/spandsp/spandsp.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/spandsp/spandsp.patch
============================================================================
$ cvs diff -u -r0 -r1.1 spandsp.patch
--- /dev/null 2008-03-09 14:22:00 +0100
+++ spandsp.patch 2008-03-09 14:22:07 +0100
@@ -0,0 +1,26 @@
+Index: configure
+--- configure.orig 2008-03-05 15:25:55 +0100
++++ configure 2008-03-09 14:17:05 +0100
+@@ -28336,9 +28336,7 @@
+ if test $ac_cv_lib_audiofile_afOpenFile = yes; then
+ TESTLIBS="$TESTLIBS -laudiofile"
+ else
+- { { echo "$as_me:$LINENO: error: \"Can't make tests without libaudiofile
(does your system require a libaudiofile-devel package?)\"" >&5
+-echo "$as_me: error: \"Can't make tests without libaudiofile (does your
system require a libaudiofile-devel package?)\"" >&2;}
+- { (exit 1); exit 1; }; }
++ :
+ fi
+
+ echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
+Index: src/Makefile.in
+--- src/Makefile.in.orig 2008-03-05 15:25:27 +0100
++++ src/Makefile.in 2008-03-09 14:19:24 +0100
+@@ -958,7 +958,7 @@
+ ./make_modem_filter$(EXEEXT) -m V.29 -t >v29tx_floating_rrc.h
+
+ make_modem_filter$(EXEEXT): make_modem_filter.c filter_tools.c
filter_tools.h config.h
+- $(CC_FOR_BUILD) -I. -o $@ make_modem_filter.c filter_tools.c -lm
++ $(CC_FOR_BUILD) $(CPPFLAGS) -I. -o $@ make_modem_filter.c
filter_tools.c -lm
+
+ $(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am
+ echo "creating $(DSP)"
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/spandsp/spandsp.spec
============================================================================
$ cvs diff -u -r0 -r1.1 spandsp.spec
--- /dev/null 2008-03-09 14:22:00 +0100
+++ spandsp.spec 2008-03-09 14:22:07 +0100
@@ -0,0 +1,93 @@
+##
+## spandsp.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package version
+%define V_major 0.0.4
+%define V_minor pre18
+
+# package information
+Name: spandsp
+Summary: Digital Signal Processing (DSP) Library
+URL: http://www.soft-switch.org/
+Vendor: Steve Underwood
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: VoIP
+License: GPL
+Version: %{V_major}%{V_minor}
+Release: 20080309
+
+# list of sources
+Source0:
http://www.soft-switch.org/downloads/spandsp/spandsp-%{version}.tgz
+Patch0: spandsp.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130
+PreReq: OpenPKG, openpkg >= 20040130
+BuildPreReq: tiff, libxml
+PreReq: tiff, libxml
+AutoReq: no
+AutoReqProv: no
+
+%description
+ SpanDSP is a library for Digital Signal Processing (DSP) as used in
+ many Audio and especially VoIP applications.
+
+%track
+ prog spandsp = {
+ version = %{version}
+ url = http://www.soft-switch.org/downloads/spandsp/
+ regex = spandsp-(__VER__)\.tgz
+ }
+
+%prep
+ %setup -q -n spandsp-%{V_major}
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags tiff .}" \
+ LDFLAGS="%{l_ldflags}" \
+ LIBS="-ljpeg -lz" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --disable-doc \
+ --disable-tests \
+ --disable-itutests \
+ --disable-shared
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]