File ccaudio2.spec of Package ccaudio2

#
# spec file for package ccaudio2 (Version 0.9.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           ccaudio2
BuildRequires:  commoncpp2-devel gcc-c++ glibc-devel libgsm-devel speex-devel
Url:            http://www.gnu.org/software/ccaudio/
License:        GPL v2 or later
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Provides:       ccaudio
Obsoletes:      ccaudio
Summary:        a C++ class framework for processing audio files
Version:        0.9.9
Release:        109
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}-const.patch
Patch1:         %{name}-codec.patch

%description
The GNU ccAudio2 package offers a highly portable C++ class framework
for developing applications which manipulate audio streams and various
disk based audio file formats.	At the moment ccaudio is primarily a
class framework for handling .au, .wav (RIFF), and various .raw audio
encoding formats under Posix and win32 systems, though it may expand to
become a general purpose audio and soundcard support library.  Support
for controlling CD audio devices has recently been added as well as
support for codecs and other generic audio processing services.



Authors:
--------
    David Sugar <dyfet@ostel.com>

%package devel
License:        GPL v2 or later
Summary:        Include-files and documentation for ccaudio
Group:          Development/Libraries/Other
Requires:       %{name} = %{version} libstdc++-devel
Provides:       ccaudio-devel
Obsoletes:      ccaudio-devel

%description -n ccaudio2-devel
This package contains include files and documentation for developing
applications with ccaudio.



Authors:
--------
    David Sugar <dyfet@ostel.com>

%prep
%setup -q
%patch -p1
%patch1

%build
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" 
%configure --with-pic --disable-static --disable-gsm
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}%_libdir/libccaudio*.la

%clean
rm -rf $RPM_BUILD_ROOT;

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,0755)
%dir %{_libdir}/ccaudio2-0.9
%{_libdir}/libccaudio*.so.*
%{_libdir}/ccaudio2-0.9/*

%files devel
%defattr(-,root,root,0755)
%doc AUTHORS COPYING NEWS README TODO ChangeLog
%{_libdir}/pkgconfig/libccaudio2.pc
%{_bindir}/audiotool
%{_bindir}/tonetool
%{_libdir}/libccaudio*.so
%{_includedir}/cc++/audio2.h
%{_mandir}/man1/*.1*

%changelog
* Wed May 14 2008 crrodriguez@suse.de
- fix -devel subpackage Requires
* Mon Apr 14 2008 schwab@suse.de
- Work around misuse of libtool.
* Tue Aug 15 2006 kkeil@suse.de
- update to 0.9.9
  * fix for adpcm audio codec
  * g.723 codecs, additional file name rules for .a24/.a32/.a40
  * combined g.721/723 codecs into new adpcm.codec module
-  fix const declaration for speex codec
- compile C++ with RPM_OPT_FLAGS
* Tue Jul 18 2006 kkaempf@suse.de
- update to 0.9.7
  - g721 adpcm codec added
  - g723 coded removed
- build with gsm and speex support
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 28 2005 ro@suse.de
- fixed nfb
* Wed Oct 26 2005 kkaempf@suse.de
- build needs commoncpp2 now.
* Tue Oct 25 2005 kkaempf@suse.de
- remove GSM codec
- fix common c++ include dir path to match CommonC++ package
* Tue Oct 25 2005 kkaempf@suse.de
- New package ccaudio2, take over from ccaudio
openSUSE Build Service is sponsored by