]> git.pld-linux.org Git - packages/dcaenc.git/blob - dcaenc.spec
- new URLs, updated to v3
[packages/dcaenc.git] / dcaenc.spec
1 #
2 # Conditional build:
3 %bcond_without  alsa            # alsa output plugin
4 %bcond_without  static_libs     # static library
5 #
6 Summary:        Encoder for DTS Coherent Acoustics audio format
7 Summary(pl.UTF-8):      Koder formatu dźwięku DTS Coherent Acoustics
8 Name:           dcaenc
9 Version:        2
10 Release:        1
11 License:        LGPL v2.1+ (but requires patent license in some countries)
12 Group:          Libraries
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)
18
19 %description
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.
24
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.
30
31 %package devel
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}
36
37 %description devel
38 Header files for dcaenc library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki dcaenc.
42
43 %package static
44 Summary:        Static dcaenc library
45 Summary(pl.UTF-8):      Statyczna biblioteka dcaenc
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static dcaenc library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka dcaenc.
54
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
58 Group:          Libraries
59 Requires:       %{name} = %{version}-%{release}
60 Requires:       alsa-lib >= 1.0.11
61
62 %description -n alsa-plugins-dca
63 DTS Coherent Acoustics output plugin for ALSA.
64
65 %description -n alsa-plugins-dca -l pl.UTF-8
66 Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA.
67
68 %prep
69 %setup -q
70
71 %build
72 %configure \
73         %{!?with_alsa:--disable-alsa} \
74         %{?with_static_libs:--enable-static}
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 # no external dependencies; also, obsoleted by pkg-config
84 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdcaenc.la
85 %if %{with alsa}
86 # dlopened module
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
90 %endif
91 %endif
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
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
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libdcaenc.so
109 %{_includedir}/dcaenc.h
110 %{_pkgconfigdir}/dcaenc.pc
111
112 %if %{with static_libs}
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/libdcaenc.a
116 %endif
117
118 %if %{with alsa}
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
123 %endif
This page took 0.070064 seconds and 3 git commands to generate.