Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37519438
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libcodec2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libcodec2
Version: 1.0.5
Release: alt1

Summary: libcodec2 is a library for the codec2 low bit rate speech codec
License: LGPLv2.1
Group: System/Libraries

Url: http://rowetel.com/codec2.html
Source0: %name-%version.tar
Source1: %name.watch

BuildRequires: cmake gcc-c++

%description
libcodec2 is a library for the codec2 low bit rate speech codec.

%package devel
Summary: codec2 development files
Group: Development/C
Requires: libcodec2 = %version-%release

%description devel
codec2 development files.

%prep
%setup
%ifarch %e2k
# unsupported as of lcc 1.25.17 (mcst#5133)
sed -i 's,-finstrument-functions,,' unittest/CMakeLists.txt
sed -i '/#define USE_VECTOR_OPS 1/d' src/cohpsk.c
sed -i 's/^inline void/static &/' src/cohpsk.c
%endif

%build
%cmake
%cmake_build

%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/codec2
libdir=\${exec_prefix}/%_lib
Name: codec2
Description: Next-Generation Digital Voice for Two-Way Radio
Version: %version
Cflags: -I\${includedir}
Libs: -L\${libdir} -lcodec2
EOF


%files
%_libdir/libcodec2.so.*

%files devel
%_includedir/codec2
%_libdir/cmake/codec2
%_libdir/libcodec2.so
%_libdir/pkgconfig/codec2.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin