]>
Commit | Line | Data |
---|---|---|
92d1d4e9 | 1 | Summary: MPEG audio decoder library |
0a906204 | 2 | Summary(pl.UTF-8): Biblioteka dekodera strumieni audio MPEG |
651e3d0d | 3 | Name: libmad |
982d74a9 | 4 | Version: 0.15.1b |
fba75b99 | 5 | Release: 10 |
36238a4c | 6 | License: GPL v2+ |
651e3d0d | 7 | Group: Libraries |
8 | Source0: ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz | |
982d74a9 | 9 | # Source0-md5: 1be543bc30c56fb6bea1d7bf6a64e66c |
e71a181e | 10 | Patch0: %{name}-pkgconfig.patch |
d0447801 | 11 | Patch1: %{name}-no_fforce_mem.patch |
651e3d0d | 12 | URL: http://www.underbit.com/products/mad/ |
982d74a9 | 13 | BuildRequires: autoconf >= 2.53 |
651e3d0d | 14 | BuildRequires: automake |
15 | BuildRequires: libtool | |
1c91878a | 16 | Provides: mad-libs = %{version} |
17 | Obsoletes: mad-libs < 0.15.0b | |
651e3d0d | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 | |
22 | and the MPEG-2 extension to Lower Sampling Frequencies, as well as the | |
23 | so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II | |
24 | and Layer III a.k.a. MP3) are fully implemented. | |
25 | ||
095eea4c JR |
26 | %description -l pl.UTF-8 |
27 | MAD jest wysokiej jakości dekoderem audio MPEG. Obecnie obsługuje | |
28 | MPEG-1 oraz rozszerzenie MPEG-2 dla niższych częstotliwości | |
29 | próbkowania, jak również tzw. MPEG 2.5. Wszystkie trzy warstwy audio | |
30 | (Layer I, Layer II oraz Layer III znany również jako MP3) są w pełni | |
651e3d0d | 31 | zaimplementowane. |
32 | ||
33 | %package devel | |
982d74a9 | 34 | Summary: Header files for libmad library |
0a906204 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmad |
651e3d0d | 36 | Group: Development/Libraries |
982d74a9 | 37 | Requires: %{name} = %{version}-%{release} |
1c91878a | 38 | Provides: mad-devel = %{version} |
39 | Obsoletes: mad-devel < 0.15.0b | |
651e3d0d | 40 | |
41 | %description devel | |
982d74a9 | 42 | Header files for libmad library. |
651e3d0d | 43 | |
095eea4c JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe biblioteki libmad. | |
651e3d0d | 46 | |
47 | %package static | |
982d74a9 | 48 | Summary: Static mad library |
0a906204 | 49 | Summary(pl.UTF-8): Biblioteka statyczna mad |
651e3d0d | 50 | Group: Development/Libraries |
982d74a9 | 51 | Requires: %{name}-devel = %{version}-%{release} |
1c91878a | 52 | Provides: mad-static = %{version} |
53 | Obsoletes: mad-static < 0.15.0b | |
651e3d0d | 54 | |
55 | %description static | |
982d74a9 | 56 | Static mad library. |
651e3d0d | 57 | |
095eea4c | 58 | %description static -l pl.UTF-8 |
982d74a9 | 59 | Biblioteka statyczna mad. |
651e3d0d | 60 | |
61 | %prep | |
62 | %setup -q | |
e71a181e | 63 | %patch0 -p1 |
d0447801 | 64 | %patch1 -p1 |
651e3d0d | 65 | |
66 | %build | |
67 | %{__libtoolize} | |
68 | %{__aclocal} | |
69 | %{__autoconf} | |
70 | %{__autoheader} | |
71 | %{__automake} | |
72 | %configure \ | |
73 | --%{!?debug:dis}%{?debug:en}able-debugging \ | |
74 | --enable-shared | |
651e3d0d | 75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
651e3d0d | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
219d2898 JB |
86 | %post -p /sbin/ldconfig |
87 | %postun -p /sbin/ldconfig | |
88 | ||
651e3d0d | 89 | %files |
90 | %defattr(644,root,root,755) | |
219d2898 | 91 | %doc CHANGES COPYRIGHT CREDITS README TODO |
651e3d0d | 92 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
b0672b60 | 93 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.0 |
651e3d0d | 94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/lib*.so | |
98 | %{_libdir}/lib*.la | |
99 | %{_includedir}/*.h | |
e71a181e | 100 | %{_pkgconfigdir}/*.pc |
651e3d0d | 101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/lib*.a |