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 #Source0Download: https://gitlab.com/patrakov/dcaenc/-/releases
14 Source0: https://gitlab.com/patrakov/dcaenc/-/archive/v%{version}/%{name}-%{version}.tar.bz2
15 # Source0-md5: 7b6eabcfc462f93c745e577b3331d38b
16 URL: https://gitlab.com/patrakov/dcaenc
17 BuildRequires: autoconf >= 2.65
18 BuildRequires: automake
19 BuildRequires: alsa-lib-devel >= 1.0.11
20 BuildRequires: libtool >= 2:2
21 BuildRequires: pkgconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 dcaenc is an open-source implementation of the DTS Coherent Acoustics
26 codec. Only the core part of the encoder is implemented, because the
27 public specification (ETSI TS 102 114 V1.2.1) is insufficient for
28 implementing anything else.
30 %description -l pl.UTF-8
31 dcaenc to mająca otwarte źródła implementacja kodeka DTS Coherent
32 Acoustics. Zaimplementowana jest tylko główna część kodera, ponieważ
33 publiczna specyfikacja (ETSI TS 102 114 V1.2.1) jest niewystarczająca
34 do czegokolwiek więcej.
37 Summary: Header files for dcaenc library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dcaenc
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header files for dcaenc library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki dcaenc.
49 Summary: Static dcaenc library
50 Summary(pl.UTF-8): Statyczna biblioteka dcaenc
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 Static dcaenc library.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka dcaenc.
60 %package -n alsa-plugins-dca
61 Summary: DTS Coherent Acoustics output plugin for ALSA
62 Summary(pl.UTF-8): Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA
64 Requires: %{name} = %{version}-%{release}
65 Requires: alsa-lib >= 1.0.11
67 %description -n alsa-plugins-dca
68 DTS Coherent Acoustics output plugin for ALSA.
70 %description -n alsa-plugins-dca -l pl.UTF-8
71 Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA.
74 %setup -q -n %{name}-v%{version}-9b89d76025bfdaffd2ed59f51225316c1da8c5ce
83 %{!?with_alsa:--disable-alsa} \
84 %{?with_static_libs:--enable-static}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 # no external dependencies; also, obsoleted by pkg-config
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdcaenc.la
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/libasound_module_pcm_dca.la
98 %if %{with static_libs}
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/alsa-lib/libasound_module_pcm_dca.a
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS NEWS README TODO
112 %attr(755,root,root) %{_bindir}/dcaenc
113 %attr(755,root,root) %{_libdir}/libdcaenc.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libdcaenc.so.0
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libdcaenc.so
119 %{_includedir}/dcaenc.h
120 %{_pkgconfigdir}/dcaenc.pc
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libdcaenc.a
129 %files -n alsa-plugins-dca
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_dca.so
132 %{_datadir}/alsa/pcm/dca.conf