]>
Commit | Line | Data |
---|---|---|
52cef77a | 1 | Summary: A/52 audio encoder |
8b361e8d | 2 | Summary(pl.UTF-8): Koder dźwięku A/52 |
52cef77a JR |
3 | Name: aften |
4 | Version: 0.0.8 | |
f4061464 | 5 | Release: 2 |
8b361e8d | 6 | License: LGPL v2+ |
52cef77a | 7 | Group: Applications/Sound |
8b361e8d | 8 | Source0: http://downloads.sourceforge.net/aften/%{name}-%{version}.tar.bz2 |
52cef77a | 9 | # Source0-md5: fde67146879febb81af3d95a62df8840 |
f4061464 | 10 | Patch0: %{name}-libdir.patch |
52cef77a | 11 | URL: http://aften.sourceforge.net/ |
8b361e8d JB |
12 | BuildRequires: cmake >= 2.4 |
13 | BuildRequires: libstdc++-devel | |
52cef77a JR |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | Aften is an audio encoder which generates compressed audio streams | |
18 | based on ATSC A/52 specification. This type of audio is also known | |
8b361e8d JB |
19 | as AC-3 or Dolby(R) Digital and is one of the audio codecs used in |
20 | DVD-Video content. | |
21 | ||
22 | %description -l en.UTF-8 | |
23 | Aften is an audio encoder which generates compressed audio streams | |
24 | based on ATSC A/52 specification. This type of audio is also known | |
52cef77a JR |
25 | as AC-3 or Dolby® Digital and is one of the audio codecs used in |
26 | DVD-Video content. | |
27 | ||
8b361e8d JB |
28 | %description -l pl.UTF-8 |
29 | Aften to koder dźwięku generujący skompresowane strumienie dźwięku | |
30 | oparte na specyfikacji ATSC A/52. Ten format jest znany także jako | |
31 | AC-3 lub Dolby® Digital i jest jednym z kodeków dźwięku używanych w | |
32 | treściach DVD-Video. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for Aften library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Aften | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for Aften library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki Aften. | |
45 | ||
46 | %package c++ | |
47 | Summary: C++ binding for Aften library | |
48 | Summary(pl.UTF-8): Interfejs C++ do biblioteki Aften | |
49 | Group: Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description c++ | |
53 | C++ binding for Aften library. | |
54 | ||
55 | %description c++ -l pl.UTF-8 | |
56 | Interfejs C++ do biblioteki Aften. | |
57 | ||
58 | %package c++-devel | |
59 | Summary: Header file for C++ binding for Aften library | |
60 | Summary(pl.UTF-8): Plik nagłówkowy interfejsu C++ do biblioteki Aften | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-c++ = %{version}-%{release} | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | Requires: libstdc++-devel | |
65 | ||
66 | %description c++-devel | |
67 | Header file for C++ binding for Aften library. | |
68 | ||
69 | %description c++-devel -l pl.UTF-8 | |
70 | Plik nagłówkowy interfejsu C++ do biblioteki Aften. | |
52cef77a JR |
71 | |
72 | %prep | |
73 | %setup -q | |
f4061464 | 74 | %patch0 -p1 |
52cef77a JR |
75 | |
76 | %build | |
77 | install -d build | |
78 | cd build | |
8b361e8d JB |
79 | %cmake .. \ |
80 | -DSHARED=ON \ | |
81 | -DBINDINGS_CXX=ON | |
52cef77a JR |
82 | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
8b361e8d | 88 | %{__make} -C build install/fast \ |
52cef77a JR |
89 | DESTDIR=$RPM_BUILD_ROOT |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
164dfb58 JB |
94 | %post -p /sbin/ldconfig |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %post c++ -p /sbin/ldconfig | |
98 | %postun c++ -p /sbin/ldconfig | |
99 | ||
52cef77a JR |
100 | %files |
101 | %defattr(644,root,root,755) | |
102 | %doc Changelog README | |
8b361e8d JB |
103 | %attr(755,root,root) %{_bindir}/aften |
104 | %attr(755,root,root) %{_bindir}/wavfilter | |
105 | %attr(755,root,root) %{_bindir}/wavinfo | |
106 | %attr(755,root,root) %{_bindir}/wavrms | |
107 | %attr(755,root,root) %{_libdir}/libaften.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libaften.so.0 | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libaften.so | |
113 | %dir %{_includedir}/aften | |
114 | %{_includedir}/aften/aften-types.h | |
115 | %{_includedir}/aften/aften.h | |
116 | ||
117 | %files c++ | |
118 | %defattr(644,root,root,755) | |
119 | %attr(755,root,root) %{_libdir}/libaftenxx.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libaftenxx.so.0 | |
121 | ||
122 | %files c++-devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libaftenxx.so | |
125 | %{_includedir}/aften/aftenxx.h |