1 # TODO: rename spec to libdca, swap Name/Provides?
4 %bcond_without static_libs # don't build static library
6 Summary: DTS Coherent Acoustics streams decoder
7 Summary(pl.UTF-8): Dekoder strumieni DTS Coherent Acoustics
13 Source0: http://download.videolan.org/pub/videolan/libdca/%{version}/libdca-%{version}.tar.bz2
14 # Source0-md5: 68916db60e3017d92841f77908518a11
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-link.patch
17 URL: http://www.videolan.org/developers/libdca.html
18 BuildRequires: autoconf >= 2.54
19 BuildRequires: automake >= 1.5
20 BuildRequires: libtool
21 BuildRequires: rpmbuild(macros) >= 1.402
22 Provides: libdca = %{version}-%{release}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define specflags -fno-strict-aliasing
28 Free decoder for the DTS Coherent Acoustics format. It consists of a
29 library and a command line decoder. DTS is a high quality
30 multi-channel (5.1) digital audio format used in DVDs and DTS audio
33 %description -l pl.UTF-8
34 Wolnodostępny dekoder formatu DTS Coherent Acoustics. Składa się z
35 biblioteki i dekodera działającego z linii poleceń. DTS jest wysokiej
36 jakości wielokanałowym (5.1) cyfrowym formatem audio używanym w DVD i
40 Summary: Header files for libdca library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdca
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Provides: libdca-devel = %{version}-%{release}
47 Header files for libdca library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki libdca.
53 Summary: Static libdca library
54 Summary(pl.UTF-8): Statyczna biblioteka libdca
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
57 Provides: libdca-static = %{version}-%{release}
60 Static libdca library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libdca.
66 Summary: DTS Coherent Acoustics streams decoder tools
67 Summary(pl.UTF-8): Narzędzia dekodera strumieni DTS Coherent Acoustics
68 Group: Applications/Sound
69 Requires: %{name} = %{version}-%{release}
70 Provides: libdca-tools = %{version}-%{release}
73 DTS Coherent Acoustics streams decoder tools.
75 %description tools -l pl.UTF-8
76 Narzędzia dekodera strumieni DTS Coherent Acoustics.
79 %setup -q -n libdca-%{version}
90 %{!?with_static_libs:--disable-static}
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT
99 # obsoleted by pkg-config
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdca.la
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README TODO
111 %attr(755,root,root) %{_libdir}/libdca.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libdca.so.0
115 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libdca.so
120 %{_pkgconfigdir}/libdca.pc
121 %{_pkgconfigdir}/libdts.pc
123 %if %{with static_libs}
125 %defattr(644,root,root,755)
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/dcadec
133 %attr(755,root,root) %{_bindir}/dtsdec
134 %attr(755,root,root) %{_bindir}/extract_dca
135 %attr(755,root,root) %{_bindir}/extract_dts
136 %{_mandir}/man1/dcadec.1*
137 %{_mandir}/man1/dtsdec.1*
138 %{_mandir}/man1/extract_dca.1*
139 %{_mandir}/man1/extract_dts.1*