[packages/dcadec] - new
qboosh
qboosh at pld-linux.org
Wed Jun 17 17:26:44 CEST 2015
commit 47a6da10e8e7f834f53bcbca26ccd2de6af7b9bc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 17 17:27:53 2015 +0200
- new
dcadec.spec | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 132 insertions(+)
---
diff --git a/dcadec.spec b/dcadec.spec
new file mode 100644
index 0000000..33b78e2
--- /dev/null
+++ b/dcadec.spec
@@ -0,0 +1,132 @@
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+#
+Summary: Free DTS Coherent Acoustics decoder with support for HD extensions
+Summary(pl.UTF-8): Wolnodostępny dekoder DTS Coherent Acoustics z obsługą rozszerzeń HD
+Name: dcadec
+# see Makefile
+Version: 0.0.0
+%define snap 20150606
+%define gitref 2a9186e34ce557d3af1a20f5b558d1e6687708b9
+Release: 0.%{snap}.1
+License: LGPL v2.1+
+Group: Libraries
+Source0: https://github.com/foo86/dcadec/archive/2a9186e34ce557d3af1a20f5b558d1e6687708b9/%{name}-%{snap}.tar.gz
+# Source0-md5: 37df95f78aa614ef1adbadc6b466c4b4
+URL: https://github.com/foo86/dcadec
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+dcadec is a free DTS Coherent Acoustics decoder with support for HD
+extensions.
+
+Supported features:
+- Decoding of standard DTS core streams with up to 5.1 channels
+- Decoding of DTS-ES streams with discrete back channel
+- Decoding of High Resolution streams with up to 7.1 channels and
+ extended bitrate
+- Decoding of 96/24 core streams
+- Lossless decoding of Master Audio streams with up to 7.1 channels, 192
+ kHz
+- Downmixing to stereo and 5.1 using embedded coefficients
+
+Features not implemented:
+- Decoding of DTS Express streams
+- Applying dynamic range compression and dialog normalization
+
+%description -l pl.UTF-8
+dcadec to wolnodostępny dekoder formatu DTS Coherent Acoustics z
+obsługą rozszerzeń HD.
+
+Obsługiwane:
+- dekodowanie standardowych strumieni podstawowych DTS o liczbie
+ kanałów do 5.1
+- dekodowanie strumieni DTS-ES z dyskretnym kanałem tylnym
+- dekodowanie strumieni HD o liczbie kanałów do 7.1 z rozszerzoną
+ prędkością bitową
+- dekodowanie strumieni podstawowych 96/24
+- bezstratne dekodowanie strumieni Master Audio o liczbie kanałów do
+ 7.1, do 192 kHz
+- miksowanie w dół do stereo i 5.1 przy użyciu wbudowanych
+ współczynników
+
+Nie obsługiwane:
+- dekodowanie strumieni DTS Express
+- wykonywanie kompresji dynamiki oraz normalizacja dialogów
+
+%package devel
+Summary: Header files for libdcadec library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdcadec
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for libdcadec library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libdcadec.
+
+%package static
+Summary: Static libdcadec library
+Summary(pl.UTF-8): Statyczna biblioteka libdcadec
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libdcadec library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libdcadec.
+
+%prep
+%setup -q -n %{name}-%{gitref}
+
+%build
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+%{__make} all \
+ CC="%{__cc}" \
+ CONFIG_SHARED=1 \
+ PREFIX=%{_prefix} \
+ LIBDIR=%{_libdir}
+
+%if %{with static_libs}
+%{__make} libdcadec/libdcadec.a
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ CONFIG_SHARED=1 \
+ DESTDIR=$RPM_BUILD_ROOT \
+ PREFIX=%{_prefix} \
+ LIBDIR=%{_libdir}
+
+%if %{with static_libs}
+cp -p libdcadec/libdcadec.a $RPM_BUILD_ROOT%{_libdir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/dcadec
+%attr(755,root,root) %{_libdir}/libdcadec.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/libdcadec
+%{_pkgconfigdir}/dcadec.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdcadec.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dcadec.git/commitdiff/47a6da10e8e7f834f53bcbca26ccd2de6af7b9bc
More information about the pld-cvs-commit
mailing list