]> git.pld-linux.org Git - packages/codec2.git/commitdiff
- new auto/th/codec2-0.8.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Apr 2019 14:17:23 +0000 (16:17 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Apr 2019 14:17:23 +0000 (16:17 +0200)
codec2.spec [new file with mode: 0644]

diff --git a/codec2.spec b/codec2.spec
new file mode 100644 (file)
index 0000000..b2bf0c3
--- /dev/null
@@ -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
This page took 0.148431 seconds and 4 git commands to generate.