[packages/codec2] - new

qboosh qboosh at pld-linux.org
Sun Apr 28 16:17:13 CEST 2019


commit 88f94fc793ef6b239b7227b2ee369caaa29577c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 28 16:17:23 2019 +0200

    - new

 codec2.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 111 insertions(+)
---
diff --git a/codec2.spec b/codec2.spec
new file mode 100644
index 0000000..b2bf0c3
--- /dev/null
+++ b/codec2.spec
@@ -0,0 +1,111 @@
+#
+# Conditional build:
+%bcond_with	tests		# unit tests
+#
+Summary:	Speech codec for 2400 bit/s and below
+Summary(pl.UTF-8):	Kodek mowy do przesyłania danych 2400 bitów/s i poniżej
+Name:		codec2
+Version:	0.8.1
+Release:	1
+License:	LGPL v2.1
+Group:		Libraries
+Source0:	https://hobbes1069.fedorapeople.org/freetel/codec2/%{name}-%{version}.tar.xz
+# Source0-md5:	db383dda2a84fe97d93de621cce49a06
+URL:		http://rowetel.com/codec2.html
+BuildRequires:	cmake >= 2.8
+%if %{with tests}
+BuildRequires:	libsamplerate-devel
+BuildRequires:	speex-devel
+BuildRequires:	speexdsp-devel
+%endif
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Codec 2 is an open source (LGPL licensed) speech codec for 2400 bit/s
+and below. This is the runtime library package.
+
+%description -l pl.UTF-8
+Codec 2 to mający otwarte źródła (na licencji LGPL) kodek mowy dla
+szybkości przesyłania danych 2400 bit/s i niższych. Ten pakiet zawiera
+bibliotekę uruchomieniową.
+
+%package devel
+Summary:	Header files for Codec 2 library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Codec 2
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for Codec 2 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Codec 2.
+
+%package tools
+Summary:	Tools for encoding and decoding in Codec 2 format
+Summary(pl.UTF-8):	Narzędzia do kodowania i dekodowania w formacie Codec 2
+Group:		Applications/Sound
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Tools for encoding and decoding in Codec 2 format.
+
+%description tools -l pl.UTF-8
+Narzędzia do kodowania i dekodowania w formacie Codec 2.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DCMAKE_INSTALL_INCLUDEDIR=include \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
+	%{!?with_tests:-DUNITTEST=OFF}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README*
+%attr(755,root,root) %{_libdir}/libcodec2.so.0.8
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcodec2.so
+%{_includedir}/codec2
+%{_pkgconfigdir}/codec2.pc
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/c2dec
+%attr(755,root,root) %{_bindir}/c2demo
+%attr(755,root,root) %{_bindir}/c2enc
+%attr(755,root,root) %{_bindir}/c2sim
+%attr(755,root,root) %{_bindir}/drs232
+%attr(755,root,root) %{_bindir}/drs232_ldpc
+%attr(755,root,root) %{_bindir}/fdmdv_demod
+%attr(755,root,root) %{_bindir}/fdmdv_get_test_bits
+%attr(755,root,root) %{_bindir}/fdmdv_interleave
+%attr(755,root,root) %{_bindir}/fdmdv_mod
+%attr(755,root,root) %{_bindir}/fdmdv_put_test_bits
+%attr(755,root,root) %{_bindir}/fec_dec
+%attr(755,root,root) %{_bindir}/fec_enc
+%attr(755,root,root) %{_bindir}/fm_demod
+%attr(755,root,root) %{_bindir}/fsk_mod
+%attr(755,root,root) %{_bindir}/insert_errors
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/codec2.git/commitdiff/88f94fc793ef6b239b7227b2ee369caaa29577c9



More information about the pld-cvs-commit mailing list