File ccaudio2.spec of Package ccaudio2
#
# spec file for package ccaudio2
#
# Copyright (c) 2013 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
%define lname libccaudio2-1_0-0
Url: http://www.gnu.org/software/ccaudio/
Summary: A C++ class framework for processing audio files
License: LGPL-3.0+
Group: Development/Libraries/C and C++
Version: 1.0.0
Release: 0
# bayonne2 is incompatible with ccaudio2-2.x
Source: http://ftp.gnu.org/gnu/ccaudio/%name-%version.tar.gz
Source2: http://ftp.gnu.org/gnu/ccaudio/%name-%version.tar.gz.sig
Source3: %name.keyring
Source4: baselibs.conf
Patch: ccaudio2-man.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: libgsm-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: speex-devel
%if 0%{?suse_version} >= 1230
BuildRequires: gpg-offline
%endif
%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 -n %lname
Summary: The GNU telephonic audio library
Group: System/Libraries
%description -n %lname
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
Summary: Include-files and development files for ccaudio
Group: Development/Libraries/C and C++
Requires: %lname = %version
Requires: glibc-devel
Requires: libstdc++-devel
%description devel
This package provides header and support files for building applications
that use GNU ccAudio.
%package doc
Summary: Generated class documentation for ccaudio2
Group: Documentation/HTML
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version}
BuildArch: noarch
%endif
%description doc
Generated class documentation for the ccaudio2 libraries from header
files, html browsable.
%prep
%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q
%patch -p1
%build
autoreconf --force --install
%configure --with-pic --disable-static
# %%configure --with-pic --disable-static --disable-gsm
%{__make} %{?_smp_mflags}
%install
%{__make} DESTDIR=%{buildroot} INSTALL="install -p" install
find "%buildroot/%_libdir" -type f -name "*.la" -delete
%fdupes %buildroot/%_prefix
%post -n libccaudio2-1_0-0 -p /sbin/ldconfig
%postun -n libccaudio2-1_0-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/*/*
%files -n %lname
%defattr(-,root,root)
%doc COPYING
%_libdir/libccaudio2-1.0.so.0*
%_libdir/ccaudio2-1.0/
%files devel
%defattr(-,root,root)
%doc AUTHORS NEWS README TODO ChangeLog
%{_libdir}/*.so
%{_includedir}/cc++/
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-,root,root)
%doc doc/html/
%changelog