Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 195ca34a02c7033c23d54f49e1a68385 > files > 2

spandsp-0.0.3-1.pre27.1mdv2007.1.src.rpm

%define	major 0
%define libname	%mklibname spandsp %{major}

Summary:	Steve's SpanDSP library for telephony spans
Name:		spandsp
Version:	0.0.3
Release:	%mkrel 1.pre27.1
License:	GPL
Group:		System/Libraries
URL:		http://www.soft-switch.org/
Source0:	http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.3pre27.tgz
BuildRequires:	autoconf2.5
BuildRequires:	automake1.7
BuildRequires:	libtool
BuildRequires:	tiff-devel >= 3.6.1-3mdk
BuildRequires:	fltk-devel
BuildRequires:	fftw2-devel
BuildRequires:	audiofile-devel
BuildRequires:	libxml2-devel
BuildRequires:	jpeg-devel
BuildRequires:	file
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
spandsp is a library for DSP in telephony spans. It can perform
many of the common DSP functions, such as the generation and
detection of DTMF and supervisory tones.

%package -n	%{libname}
Summary:	Steve's SpanDSP library for telephony spans
Group:          System/Libraries

%description -n	%{libname}
spandsp is a library for DSP in telephony spans. It can perform
many of the common DSP functions, such as the generation and
detection of DTMF and supervisory tones.

%package -n	%{libname}-devel
Summary:	Header files and libraries needed for development with SpanDSP
Group:		Development/C
Provides:	%{name}-devel = %{version}
Provides:	lib%{name}-devel = %{version}
Obsoletes:	%{name}-devel lib%{name}-devel
Requires:	%{libname} = %{version}

%description -n	%{libname}-devel
This package includes the header files and libraries needed for
developing programs using SpanDSP.

%prep

%setup -q -n %{name}-0.0.3

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
#export WANT_AUTOCONF_2_5=1
#libtoolize --copy --force && aclocal-1.7 && autoconf && automake-1.7

%configure2_5x

%make

# make test does not work yet
#%%make -C tests \
#    LIBS="-laudiofile -lfftw -lxml2 -ltiff -lfl -lpthread"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -n %{libname}
%defattr(-, root, root)
%doc AUTHORS ChangeLog DueDiligence NEWS README
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-, root, root)
%{_includedir}/spandsp
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/*.la
%{_datadir}/%{name}/global-tones.xml
%{_datadir}/%{name}/tones.dtd


%changelog
* Sat Dec 16 2006 David Walluck <walluck@mandriva.org> 0.0.3-1.pre27.1mdv2007.0
+ Revision: 98025
- 0.0.3pre27

* Sat Dec 09 2006 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre26.5mdv2007.1
+ Revision: 94116
- rebuild
- rebuild
- fix deps
- Import spandsp



* Wed Aug 02 2006 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre26.2mdv2007.0
- rebuild

* Thu Jun 15 2006 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre26.1mdv2007.0
- 0.0.2pre26

* Wed Feb 08 2006 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre25.1mdk
- 0.0.2pre25

* Sun Dec 25 2005 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre21.2mdk
- fix deps

* Sun Dec 25 2005 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-1.pre21.1mdk
- rebuild

* Sun Dec 25 2005 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-0.pre21.1mdk
- 0.0.2pre21
- drop upstream patches

* Fri Sep 02 2005 Oden Eriksson <oeriksson@mandriva.com> 0.0.2-0.pre15.2mdk
- added one gcc4 patch (debian)

* Wed Apr 27 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.2-0.pre15.1mdk
- spandsp-0.0.2pre15

* Sun Mar 13 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.1-5mdk
- use the %%mkrel macro
- strip away annoying ^M

* Sun Jan 09 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.1-4mdk
- dotnuke

* Sun Jan 09 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.1-3mdk
- added P2 to make it compile on x86_64 (suse)

* Tue Dec 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.1-2mdk
- lib64 fixes (does not yet compile...)

* Mon Sep 13 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.0.1-1mdk
- initial mandrake package
- used parts from the provided spec file
- added P0