]>
Commit | Line | Data |
---|---|---|
b4132939 | 1 | # TODO: rename spec to libdca, swap Name/Provides? |
a484f7b1 | 2 | # |
e2e3d55c | 3 | # Conditional build: |
630d0895 | 4 | %bcond_without static_libs # don't build static library |
e2e3d55c | 5 | # |
6009f6a6 JB |
6 | Summary: DTS Coherent Acoustics streams decoder |
7 | Summary(pl.UTF-8): Dekoder strumieni DTS Coherent Acoustics | |
df8aee8f | 8 | Name: libdts |
7769a09d | 9 | Version: 0.0.5 |
b4132939 | 10 | Release: 4 |
6009f6a6 | 11 | License: GPL v2+ |
df8aee8f | 12 | Group: Libraries |
7769a09d PS |
13 | Source0: http://download.videolan.org/pub/videolan/libdca/%{version}/libdca-%{version}.tar.bz2 |
14 | # Source0-md5: dab6b2795c66a82a6fcd4f8343343021 | |
7769a09d | 15 | Patch0: %{name}-opt.patch |
6009f6a6 | 16 | URL: http://www.videolan.org/developers/libdca.html |
df8aee8f | 17 | BuildRequires: autoconf >= 2.54 |
6009f6a6 | 18 | BuildRequires: automake >= 1.5 |
df8aee8f | 19 | BuildRequires: libtool |
6009f6a6 | 20 | BuildRequires: rpmbuild(macros) >= 1.402 |
b4132939 | 21 | Provides: libdca = %{version}-%{release} |
df8aee8f | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
6ed9b5d3 PS |
24 | %define specflags -fno-strict-aliasing |
25 | ||
df8aee8f | 26 | %description |
27 | Free decoder for the DTS Coherent Acoustics format. It consists of a | |
28 | library and a command line decoder. DTS is a high quality | |
29 | multi-channel (5.1) digital audio format used in DVDs and DTS audio | |
30 | CDs. | |
31 | ||
80de9eed | 32 | %description -l pl.UTF-8 |
6009f6a6 JB |
33 | Wolnodostępny dekoder formatu DTS Coherent Acoustics. Składa się z |
34 | biblioteki i dekodera działającego z linii poleceń. DTS jest wysokiej | |
35 | jakości wielokanałowym (5.1) cyfrowym formatem audio używanym w DVD i | |
36 | DTS audio CD. | |
df8aee8f | 37 | |
38 | %package devel | |
6009f6a6 JB |
39 | Summary: Header files for libdca library |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdca | |
df8aee8f | 41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
b4132939 | 43 | Provides: libdca-devel = %{version}-%{release} |
df8aee8f | 44 | |
45 | %description devel | |
6009f6a6 | 46 | Header files for libdca library. |
df8aee8f | 47 | |
80de9eed | 48 | %description devel -l pl.UTF-8 |
6009f6a6 | 49 | Pliki nagłówkowe biblioteki libdca. |
df8aee8f | 50 | |
51 | %package static | |
6009f6a6 JB |
52 | Summary: Static libdca library |
53 | Summary(pl.UTF-8): Statyczna biblioteka libdca | |
df8aee8f | 54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
b4132939 | 56 | Provides: libdca-static = %{version}-%{release} |
df8aee8f | 57 | |
58 | %description static | |
6009f6a6 | 59 | Static libdca library. |
df8aee8f | 60 | |
80de9eed | 61 | %description static -l pl.UTF-8 |
6009f6a6 | 62 | Statyczna biblioteka libdca. |
df8aee8f | 63 | |
b4132939 JB |
64 | %package tools |
65 | Summary: DTS Coherent Acoustics streams decoder tools | |
66 | Summary(pl.UTF-8): Narzędzia dekodera strumieni DTS Coherent Acoustics | |
67 | Group: Applications/Sound | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Provides: libdca-tools = %{version}-%{release} | |
70 | ||
71 | %description tools | |
72 | DTS Coherent Acoustics streams decoder tools. | |
73 | ||
74 | %description tools -l pl.UTF-8 | |
75 | Narzędzia dekodera strumieni DTS Coherent Acoustics. | |
76 | ||
df8aee8f | 77 | %prep |
7769a09d | 78 | %setup -q -n libdca-%{version} |
df8aee8f | 79 | %patch0 -p1 |
80 | ||
81 | %build | |
82 | %{__libtoolize} | |
83 | %{__aclocal} | |
84 | %{__autoconf} | |
43c0a4f6 | 85 | %{__autoheader} |
df8aee8f | 86 | %{__automake} |
630d0895 | 87 | %configure \ |
88 | %{!?with_static_libs:--disable-static} | |
df8aee8f | 89 | %{__make} |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS ChangeLog NEWS README TODO | |
6009f6a6 JB |
106 | %attr(755,root,root) %{_libdir}/libdca.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libdca.so.0 | |
df8aee8f | 108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
7769a09d | 111 | %doc doc/libdca.txt |
6009f6a6 JB |
112 | %attr(755,root,root) %{_libdir}/libdca.so |
113 | %{_libdir}/libdca.la | |
114 | %{_includedir}/dca.h | |
115 | %{_includedir}/dts.h | |
116 | %{_pkgconfigdir}/libdca.pc | |
117 | %{_pkgconfigdir}/libdts.pc | |
df8aee8f | 118 | |
630d0895 | 119 | %if %{with static_libs} |
df8aee8f | 120 | %files static |
121 | %defattr(644,root,root,755) | |
6009f6a6 JB |
122 | %{_libdir}/libdca.a |
123 | %{_libdir}/libdts.a | |
630d0895 | 124 | %endif |
1383d36a JB |
125 | |
126 | %files tools | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_bindir}/dcadec | |
129 | %attr(755,root,root) %{_bindir}/dtsdec | |
130 | %attr(755,root,root) %{_bindir}/extract_dca | |
131 | %attr(755,root,root) %{_bindir}/extract_dts | |
132 | %{_mandir}/man1/dcadec.1* | |
133 | %{_mandir}/man1/dtsdec.1* | |
134 | %{_mandir}/man1/extract_dca.1* | |
135 | %{_mandir}/man1/extract_dts.1* |