]> 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:        3
10 Release:        1
11 License:        LGPL v2.1+ (but requires patent license in some countries)
12 Group:          Libraries
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)
23
24 %description
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.
29
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.
35
36 %package devel
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}
41
42 %description devel
43 Header files for dcaenc library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki dcaenc.
47
48 %package static
49 Summary:        Static dcaenc library
50 Summary(pl.UTF-8):      Statyczna biblioteka dcaenc
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static dcaenc library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka dcaenc.
59
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
63 Group:          Libraries
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       alsa-lib >= 1.0.11
66
67 %description -n alsa-plugins-dca
68 DTS Coherent Acoustics output plugin for ALSA.
69
70 %description -n alsa-plugins-dca -l pl.UTF-8
71 Wtyczka wyjściowa DTS Coherent Acoustics dla systemu ALSA.
72
73 %prep
74 %setup -q -n %{name}-v%{version}-9b89d76025bfdaffd2ed59f51225316c1da8c5ce
75
76 %build
77 %{__libtoolize}
78 %{__aclocal} -I m4
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         %{!?with_alsa:--disable-alsa} \
84         %{?with_static_libs:--enable-static}
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # no external dependencies; also, obsoleted by pkg-config
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdcaenc.la
95 %if %{with alsa}
96 # dlopened module
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
100 %endif
101 %endif
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
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
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libdcaenc.so
119 %{_includedir}/dcaenc.h
120 %{_pkgconfigdir}/dcaenc.pc
121
122 %if %{with static_libs}
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libdcaenc.a
126 %endif
127
128 %if %{with alsa}
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
133 %endif
This page took 0.09236 seconds and 4 git commands to generate.