3 %bcond_without alsa # alsa output plugin
4 %bcond_without static_libs # static library
6 Summary: Encoder for DTS Coherent Acoustics audio format
7 Summary(pl.UTF-8): Koder formatu dźwięku DTS Coherent Acoustics
11 License: LGPL v2.1+ (but requires patent license in some countries)
13 Source0: http://aepatrakov.narod.ru/olderfiles/1/%{name}-%{version}.tar.gz
14 # Source0-md5: 9da4d1b4716d7ab49b4cb9c6ac9461df
15 URL: http://aepatrakov.narod.ru/index/0-2
16 BuildRequires: alsa-lib-devel >= 1.0.11
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 dcaenc is an open-source implementation of the DTS Coherent Acoustics
21 codec. Only the core part of the encoder is implemented, because the
22 public specification (ETSI TS 102 114 V1.2.1) is insufficient for
23 implementing anything else.
25 %description -l pl.UTF-8
26 dcaenc to mająca otwarte źródła implementacja kodeka DTS Coherent
27 Acoustics. Zaimplementowana jest tylko główna część kodera, ponieważ
28 publiczna specyfikacja (ETSI TS 102 114 V1.2.1) jest niewystarczająca
29 do czegokolwiek więcej.
32 Summary: Header files for dcaenc library
33 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dcaenc
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 Header files for dcaenc library.
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki dcaenc.
44 Summary: Static dcaenc library
45 Summary(pl.UTF-8): Statyczna biblioteka dcaenc
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{version}-%{release}
50 Static dcaenc library.
52 %description static -l pl.UTF-8
53 Statyczna biblioteka dcaenc.
55 %package -n alsa-plugins-dca
56 Summary: DTS Coherent Acoustics output plugin for ALSA
57 Summary(pl.UTF-8): Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA
59 Requires: %{name} = %{version}-%{release}
60 Requires: alsa-lib >= 1.0.11
62 %description -n alsa-plugins-dca
63 DTS Coherent Acoustics output plugin for ALSA.
65 %description -n alsa-plugins-dca -l pl.UTF-8
66 Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA.
73 %{!?with_alsa:--disable-alsa} \
74 %{?with_static_libs:--enable-static}
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
83 # no external dependencies; also, obsoleted by pkg-config
84 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdcaenc.la
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/libasound_module_pcm_dca.la
88 %if %{with static_libs}
89 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/libasound_module_pcm_dca.a
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS NEWS README TODO
102 %attr(755,root,root) %{_bindir}/dcaenc
103 %attr(755,root,root) %{_libdir}/libdcaenc.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libdcaenc.so.0
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libdcaenc.so
109 %{_includedir}/dcaenc.h
110 %{_pkgconfigdir}/dcaenc.pc
112 %if %{with static_libs}
114 %defattr(644,root,root,755)
115 %{_libdir}/libdcaenc.a
119 %files -n alsa-plugins-dca
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_dca.so
122 %{_datadir}/alsa/pcm/dca.conf