|
|
|
@ -1,16 +1,11 @@
|
|
|
|
|
#global svnrev 2167
|
|
|
|
|
#global codate 20150530
|
|
|
|
|
|
|
|
|
|
Name: codec2
|
|
|
|
|
Version: 0.4
|
|
|
|
|
Release: 1%{?svnrev:.%{codate}svn%{svnrev}}%{?dist}
|
|
|
|
|
Version: 0.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Next-Generation Digital Voice for Two-Way Radio
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
|
|
|
|
|
URL: http://rowetel.com/codec2.html
|
|
|
|
|
# svn co https://svn.code.sf.net/p/freetel/code/ freetel
|
|
|
|
|
# cd freetel; svn export codec2
|
|
|
|
|
Source0: %{name}-%{version}%{?svnrev:.svn%{svnrev}}.tar.xz
|
|
|
|
|
Source0: http://files.freedv.org/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: speex-devel
|
|
|
|
@ -44,14 +39,12 @@ Example code for Codec 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}%{?svnrev:.svn%{svnrev}}
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
rm -rf build_linux && mkdir build_linux && pushd build_linux
|
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DINSTALL_EXAMPLES=TRUE \
|
|
|
|
|
-DUNITTEST=TRUE \
|
|
|
|
|
../
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
@ -84,7 +77,9 @@ EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING README
|
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
@ -93,11 +88,14 @@ EOF
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
%files devel-examples
|
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 29 2015 Richard Shaw <hobbes1069@gmail.com> - 0.5-1
|
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
|
|
|
|
|
* Sat Aug 8 2015 Richard Shaw <hobbes1069@gmail.com> - 0.4-2
|
|
|
|
|
- Update to latest bugfix release.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 2 2015 Richard Shaw <hobbes1069@gmail.com> - 0.4-1
|
|
|
|
|
- Update to latest upstream release.
|
|
|
|
|
|
|
|
|
|