]> git.pld-linux.org Git - SPECS.git/blob - libmad.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / libmad.spec
1 Summary:        MPEG audio decoder library
2 Summary(pl.UTF-8):      Biblioteka dekodera strumieni audio MPEG
3 Name:           libmad
4 Version:        0.15.1b
5 Release:        10
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz
9 # Source0-md5:  1be543bc30c56fb6bea1d7bf6a64e66c
10 Patch0:         %{name}-pkgconfig.patch
11 Patch1:         %{name}-no_fforce_mem.patch
12 URL:            http://www.underbit.com/products/mad/
13 BuildRequires:  autoconf >= 2.53
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 Provides:       mad-libs = %{version}
17 Obsoletes:      mad-libs < 0.15.0b
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
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
31 zaimplementowane.
32
33 %package devel
34 Summary:        Header files for libmad library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libmad
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Provides:       mad-devel = %{version}
39 Obsoletes:      mad-devel < 0.15.0b
40
41 %description devel
42 Header files for libmad library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libmad.
46
47 %package static
48 Summary:        Static mad library
49 Summary(pl.UTF-8):      Biblioteka statyczna mad
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52 Provides:       mad-static = %{version}
53 Obsoletes:      mad-static < 0.15.0b
54
55 %description static
56 Static mad library.
57
58 %description static -l pl.UTF-8
59 Biblioteka statyczna mad.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64 %patch1 -p1
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
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc CHANGES COPYRIGHT CREDITS README TODO
92 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
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
100 %{_pkgconfigdir}/*.pc
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/lib*.a
This page took 0.433596 seconds and 3 git commands to generate.