2009-02-15 01:44:29 +01:00
|
|
|
#
|
2012-03-11 13:36:01 +01:00
|
|
|
# spec file for package spandsp
|
2009-02-15 01:44:29 +01:00
|
|
|
#
|
2019-05-23 14:00:14 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-02-15 01:44:29 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-23 14:00:14 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-02-15 01:44:29 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: spandsp
|
2012-03-11 13:36:01 +01:00
|
|
|
%define lname libspandsp2
|
2009-02-15 01:44:29 +01:00
|
|
|
Summary: A DSP library for Telephony and SoftFAX
|
2019-05-23 14:00:14 +02:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only
|
2013-01-25 05:31:57 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-03-25 19:06:15 +01:00
|
|
|
Version: 0.0.6
|
2013-01-25 05:31:57 +01:00
|
|
|
Release: 0
|
2019-08-23 14:13:19 +02:00
|
|
|
URL: http://soft-switch.org/
|
2013-01-25 05:31:57 +01:00
|
|
|
|
2019-08-23 14:13:19 +02:00
|
|
|
Source: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz
|
|
|
|
Source2: baselibs.conf
|
2012-03-11 13:36:01 +01:00
|
|
|
Patch1: spandsp-autoconf.diff
|
2019-07-09 11:03:15 +02:00
|
|
|
Patch2: spandsp-raise-traintime-tolerance.diff
|
|
|
|
Patch3: spandsp-handle-international-dialstring-prefix.diff
|
2013-01-25 05:31:57 +01:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
2015-03-25 19:07:29 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-03-11 13:36:01 +01:00
|
|
|
%define tests 0
|
|
|
|
%if 0%{?tests}
|
2013-01-25 05:31:57 +01:00
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: pkgconfig(audiofile)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
2012-03-11 13:36:01 +01:00
|
|
|
%endif
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
SpanDSP is a library of DSP functions for telephony, in the 8000 sample
|
|
|
|
per second world of E1s, T1s, and higher order PCM channels. It
|
|
|
|
contains low level functions, such as basic filters. It also contains
|
|
|
|
higher level functions, such as cadenced supervisory tone detection,
|
|
|
|
and a complete software FAX machine.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the SpanDSP library
|
2019-05-23 14:00:14 +02:00
|
|
|
License: LGPL-2.1-only
|
2009-02-15 01:44:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-23 14:13:19 +02:00
|
|
|
Requires: %lname = %version
|
2013-01-25 05:31:57 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libtiff-devel
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains files that are needed for developing or compiling
|
|
|
|
software that uses the spandsp library.
|
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%package -n %lname
|
2009-02-15 01:44:29 +01:00
|
|
|
Summary: A DSP library for Telephony and SoftFAX
|
2019-05-23 14:00:14 +02:00
|
|
|
License: LGPL-2.1-only
|
2009-02-15 01:44:29 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%description -n %lname
|
2009-02-15 01:44:29 +01:00
|
|
|
SpanDSP is a library of DSP functions for telephony, in the 8000 sample
|
|
|
|
per second world of E1s, T1s, and higher order PCM channels. It
|
|
|
|
contains low level functions, such as basic filters. It also contains
|
|
|
|
higher level functions, such as cadenced supervisory tone detection,
|
|
|
|
and a complete software FAX machine.
|
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the libspandsp API
|
2019-05-23 14:00:14 +02:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only
|
2012-03-11 13:36:01 +01:00
|
|
|
Group: Documentation/HTML
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2009-02-15 01:44:29 +01:00
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%description doc
|
|
|
|
This package contains documentation for the libspandsp API.
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%prep
|
2019-08-23 14:13:19 +02:00
|
|
|
%autosetup -n %name-0.0.6 -p1
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-23 14:13:19 +02:00
|
|
|
%define _lto_cflags %nil
|
2009-02-15 01:44:29 +01:00
|
|
|
autoreconf -fiv
|
2015-03-25 19:08:29 +01:00
|
|
|
# Enabling MMX could be safe.. I see cpuid calls in the source
|
2009-02-15 01:44:29 +01:00
|
|
|
%configure \
|
|
|
|
%ifarch i586 i686
|
|
|
|
--enable-mmx \
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
2012-03-11 13:36:01 +01:00
|
|
|
--enable-sse --enable-sse2 \
|
2009-02-15 01:44:29 +01:00
|
|
|
%endif
|
|
|
|
--disable-static \
|
2015-03-25 19:16:31 +01:00
|
|
|
--enable-doc
|
2012-03-11 13:36:01 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%check
|
2012-03-11 13:36:01 +01:00
|
|
|
%if 0%{?tests}
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
%endif
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%install
|
2019-08-23 14:13:19 +02:00
|
|
|
%make_install
|
|
|
|
mkdir -p "%buildroot%_docdir/%name"
|
|
|
|
cp -a NEWS README DueDiligence ChangeLog doc/api/html \
|
|
|
|
"%buildroot/%_docdir/%name"
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2009-02-15 01:44:29 +01:00
|
|
|
|
2019-08-23 14:13:19 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2012-03-11 13:36:01 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%files devel
|
2019-08-23 14:13:19 +02:00
|
|
|
%license COPYING
|
2009-02-15 01:44:29 +01:00
|
|
|
%_includedir/*
|
2012-03-11 13:36:01 +01:00
|
|
|
%_libdir/lib%name.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2009-02-15 01:44:29 +01:00
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%files -n %lname
|
|
|
|
%_libdir/lib%name.so.2*
|
|
|
|
|
|
|
|
%files doc
|
2019-08-23 14:13:19 +02:00
|
|
|
%_docdir/%name/
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%changelog
|