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
|
|
|
#
|
2015-03-25 19:07:29 +01:00
|
|
|
# Copyright (c) 2015 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2012-03-11 13:39:53 +01:00
|
|
|
License: LGPL-2.1 and GPL-2.0
|
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
|
2012-03-11 13:36:01 +01:00
|
|
|
Url: http://soft-switch.org/
|
2013-01-25 05:31:57 +01:00
|
|
|
|
2015-03-25 19:06:15 +01:00
|
|
|
Source0: http://soft-switch.org/downloads/spandsp/%name-%version.tar.gz
|
2012-03-11 13:36:01 +01:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch1: spandsp-autoconf.diff
|
2009-02-15 01:44:29 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2013-01-25 05:31:57 +01:00
|
|
|
License: LGPL-2.1
|
2009-02-15 01:44:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-01-25 05:31:57 +01:00
|
|
|
Requires: %lname = %{version}
|
|
|
|
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
|
2013-01-25 05:31:57 +01:00
|
|
|
License: LGPL-2.1
|
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
|
2013-01-25 05:31:57 +01:00
|
|
|
License: LGPL-2.1 and GPL-2.0
|
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
|
2012-03-11 13:36:01 +01:00
|
|
|
%setup -qn %name-0.0.6
|
2015-03-25 19:06:15 +01:00
|
|
|
%patch1 -p1
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
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
|
2015-03-25 19:06:15 +01:00
|
|
|
make install DESTDIR="%buildroot";
|
|
|
|
mkdir -p "%buildroot%_docdir/%name";
|
2013-01-25 05:31:57 +01:00
|
|
|
cp -a COPYING AUTHORS NEWS README DueDiligence \
|
2015-03-25 19:06:15 +01:00
|
|
|
ChangeLog doc/api/html "%buildroot%_docdir/%name";
|
|
|
|
find %{buildroot} -name "*.la" -delete
|
2009-02-15 01:44:29 +01:00
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2009-02-15 01:44:29 +01:00
|
|
|
|
2012-03-11 13:36:01 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%files devel
|
2013-01-25 05:31:57 +01:00
|
|
|
%defattr(-,root,root)
|
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
|
2013-01-25 05:31:57 +01:00
|
|
|
%defattr(-,root,root)
|
2012-03-11 13:36:01 +01:00
|
|
|
%_libdir/lib%name.so.2*
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %_docdir/%name
|
2009-02-15 01:44:29 +01:00
|
|
|
|
|
|
|
%changelog
|