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
|
|
|
#
|
2023-03-28 10:11:18 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
2022-04-02 16:29:15 +02:00
|
|
|
%define lname libspandsp3
|
2023-06-25 07:45:31 +02:00
|
|
|
Version: 3.0.0+g21
|
2022-04-02 16:29:15 +02:00
|
|
|
Release: 0
|
2009-02-15 01:44:29 +01:00
|
|
|
Summary: A DSP library for Telephony and SoftFAX
|
2022-04-02 16:29:15 +02:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2013-01-25 05:31:57 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-04-02 16:29:15 +02:00
|
|
|
URL: https://github.com/freeswitch/spandsp
|
2013-01-25 05:31:57 +01:00
|
|
|
|
2022-04-02 16:29:15 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2019-08-23 14:13:19 +02:00
|
|
|
Source2: baselibs.conf
|
2022-04-18 09:38:26 +02:00
|
|
|
Patch1: no-sse.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
|
2022-04-02 16:29:15 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2013-01-25 05:31:57 +01:00
|
|
|
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
|
2022-04-02 16:29:15 +02:00
|
|
|
Requires: libjpeg-devel
|
2013-01-25 05:31:57 +01:00
|
|
|
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
|
2022-04-02 16:29:15 +02:00
|
|
|
License: GPL-2.0-only AND LGPL-2.1-only
|
2012-03-11 13:36:01 +01:00
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
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
|
2022-04-02 16:29:15 +02:00
|
|
|
%autosetup -p1
|
2022-04-18 09:38:26 +02:00
|
|
|
# The cpuid calls in the source code only apply to a test program.
|
|
|
|
# The library itself is (was) statically enabling -msse during configure, which
|
|
|
|
# is now removed.
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2015-03-25 19:16:31 +01:00
|
|
|
--enable-doc
|
2020-09-06 16:05:50 +02:00
|
|
|
%make_build
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%check
|
2012-03-11 13:36:01 +01:00
|
|
|
%if 0%{?tests}
|
2020-09-06 16:05:50 +02:00
|
|
|
%make_build check
|
2012-03-11 13:36:01 +01:00
|
|
|
%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
|
2022-04-02 16:29:15 +02:00
|
|
|
ln -s ../spandsp.h "%buildroot/%_includedir/spandsp/spandsp.h"
|
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
|
2022-04-02 16:29:15 +02:00
|
|
|
%_libdir/lib%name.so.3*
|
2012-03-11 13:36:01 +01:00
|
|
|
|
|
|
|
%files doc
|
2019-08-23 14:13:19 +02:00
|
|
|
%_docdir/%name/
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%changelog
|