File ccaudio2.spec of Package ccaudio2

#
# spec file for package ccaudio2
#
# Copyright (c) 2012 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/
#



Name:           ccaudio2
BuildRequires:  gcc-c++ glibc-devel libgsm-devel pkg-config speex-devel
BuildRequires:  libtool
Url:            http://www.gnu.org/software/ccaudio/
License:        LGPL-3.0+
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Summary:        A C++ class framework for processing audio files
Version:        1.0.0
Release:        1
Source:         %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
Patch:          ccaudio2-man.patch

%description
The GNU telephonic audio library covers a range of functionality including
tone generation and detection, streaming and transcoding of encoded audio
frames, accessing of audio files on disk, phrasebook management, and audio
utilities.


%package devel
License:        LGPL-3.0+
Summary:        Include-files and development files for ccaudio
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}
Requires:       libstdc++-devel glibc-devel

%description -n %{name}-devel
This package provides header and support files for building applications
that use GNU ccAudio.

%prep
%setup -q
%patch -p1

%build
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" 
%configure --with-pic --disable-static 
# %%configure --with-pic --disable-static  --disable-gsm
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} INSTALL="install -p" install
%{__rm} %{buildroot}%{_libdir}/ccaudio2*/*.la

%clean
rm -rf %{buildroot}

%post -n ccaudio2 -p /sbin/ldconfig

%postun -n ccaudio2 -p /sbin/ldconfig

%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING NEWS README TODO ChangeLog
%{_bindir}/*
%{_mandir}/*/*
%{_libdir}/*.so.*
%dir %{_libdir}/ccaudio2*/
%{_libdir}/ccaudio2*/*

%files devel
%defattr(-,root,root,0755)
%{_libdir}/*.so
%{_libdir}/*.la
%dir %{_includedir}/cc++/
%{_includedir}/cc++/*
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by