File spandsp.spec of Package spandsp

#
# spec file for package spandsp (Version 0.0.5pre4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           spandsp
Summary:        A DSP library for Telephony and SoftFAX
Version:        0.0.5pre4
Release:        4
License:        GPLv2
Group:          System/Libraries
Url:            http://www.soft-switch.org/
Source0:        %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  audiofile-devel
BuildRequires:  libtiff-devel
BuildRequires:  libxml2-devel
BuildRequires:  docbook-xsl-stylesheets doxygen
BuildRequires:  gcc-c++
BuildRequires:  libxslt

%define debug_package_requires libspandsp1 = %{version}-%{release}

%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.



Authors:
--------
    Steve Underwood <steveu@coppice.org>

%package devel
License:        GPLv2
Summary:        Development files for the SpanDSP library
Group:          Development/Libraries/C and C++
Requires:       libspandsp1 = %{version} libtiff-devel glibc-devel

%description devel
This package contains files that are needed for developing or compiling
software that uses the spandsp library.



Authors:
--------
    Steve Underwood <steveu@coppice.org>

%package -n libspandsp1
License:        GPLv2
Summary:        A DSP library for Telephony and SoftFAX
Group:          System/Libraries

%description -n libspandsp1
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.



Authors:
--------
    Steve Underwood <steveu@coppice.org>

%prep
%setup -q -n %{name}-0.0.5

%build
autoreconf -fiv
%configure \
%ifarch i586 i686
	--enable-mmx \
%endif
%ifarch x86_64
	--enable-sse \
%endif
	--disable-static \
	--enable-doc \
	--with-pic
make CPPFLAGS="$RPM_OPT_FLAGS" 

%check
make check

%install
%makeinstall
mkdir -p %buildroot/%_docdir/%name
cp -a COPYING INSTALL AUTHORS NEWS README DueDiligence \
        ChangeLog doc/api/html %buildroot/%_docdir/%name
find %buildroot -name '*.la' | xargs rm

%post -n libspandsp1 -p /sbin/ldconfig

%postun -n libspandsp1 -p /sbin/ldconfig

%clean
%{__rm} -rf %buildroot

%files devel
%defattr(-,root,root,-)
%doc %_docdir/%name
%_includedir/*
%_libdir/libs*.so

%files -n libspandsp1
%defattr(-,root,root,-)
%_libdir/lib*.so.*

%changelog