forked from pool/codec2
99 lines
2.5 KiB
RPMSpec
99 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package codec2
|
|
#
|
|
|
|
%define version_underline 0_5
|
|
%define version_short 0.5
|
|
Name: codec2
|
|
Version: 0.5.1
|
|
Release: 0
|
|
Summary: Low bit rate speech codec
|
|
License: LGPL-2.1
|
|
Group: Productivity/Hamradio/Other
|
|
Url: http://rowetel.com/codec2.html
|
|
Source: %{name}-%{version}%{?svnrev:.svn%{svnrev}}.tar.xz
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: speex-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Codec2 is an open source low bit rate speech codec designed for communications
|
|
quality speech at 2400 bit/s and below.
|
|
|
|
%package -n libcodec2-%{version_underline}
|
|
Summary: Low bit rate speech codec
|
|
|
|
%description -n libcodec2-%{version_underline}
|
|
Codec2 is an open source low bit rate speech codec designed for communications
|
|
quality speech at 2400 bit/s and below.
|
|
|
|
%package devel
|
|
Summary: Development library for codec2
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libcodec2-%{version_underline} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Codec2 is an open source low bit rate speech codec designed for communications
|
|
quality speech at 2400 bit/s and below.
|
|
|
|
%package examples
|
|
Summary: Example code for Codec 2
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description examples
|
|
Example code for Codec 2, including test voices and matlab/octave files.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}%{?svnrev:.svn%{svnrev}}
|
|
|
|
|
|
%build
|
|
%cmake -DINSTALL_EXAMPLES=TRUE \
|
|
-DUNITTEST=TRUE \
|
|
../
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# Create and install pkgconfig file
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
cat > %{buildroot}%{_libdir}/pkgconfig/codec2.pc << EOF
|
|
prefix=%{_prefix}
|
|
exec_prefix=\${prefix}
|
|
includedir=\${prefix}/include/%{name}
|
|
libdir=\${exec_prefix}/%{_lib}
|
|
|
|
Name: codec2
|
|
Description: Next-Generation Digital Voice for Two-Way Radio
|
|
Version: %{version}
|
|
Cflags: -I\${includedir}
|
|
Libs: -L\${libdir} -l%{name}
|
|
EOF
|
|
|
|
%post -n libcodec2-%{version_underline} -p /sbin/ldconfig
|
|
%postun -n libcodec2-%{version_underline} -p /sbin/ldconfig
|
|
|
|
%files -n libcodec2-%{version_underline}
|
|
%defattr(-,root,root)
|
|
#doc AUTHORS ChangeLog COPYING NEWS
|
|
%doc README README_fdmdv.txt
|
|
%{_libdir}/libcodec2.so.%{version_short}
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_bindir}/*
|
|
%{_includedir}/*
|
|
%{_libdir}/libcodec2.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%files examples
|
|
%defattr(-,root,root)
|
|
%{_datadir}/%{name}/
|
|
|
|
%changelog
|