File ccaudio2.spec of Package ccaudio2
#
# spec file for package ccaudio2 (Version 0.9.9)
#
# 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/
#
Name: ccaudio2
BuildRequires: commoncpp2-devel gcc-c++ glibc-devel libgsm-devel pkg-config speex-devel
Url: http://www.gnu.org/software/ccaudio/
License: GPLv2+
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: 139
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}-const.patch
Patch1: %{name}-codec.patch
Patch2: %{name}-%{version}.diff
%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.
%package devel
License: GPLv2+
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.
%prep
%setup -q
%patch -p1
%patch1
%patch2 -p1
%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