File mad.spec-old of Package mad
1
# norootforbuild
2
3
Name: mad
4
Summary: An MPEG audio decoder library
5
Summary(de): MAD ist ein high-quality MPEG audio decoder.
6
BuildPreReq: sed
7
Version: 0.15.1b
8
Release: 1.pm.3
9
Group: System/Libraries
10
License: GPL
11
URL: http://www.underbit.com/products/mad/
12
Source: libmad-%{version}.tar.bz2
13
Patch0: mad-automake-fix.dif
14
Patch1: libmad-0.15.1b-pkgconfig.patch
15
BuildRoot: %{_tmppath}/%{name}-%{version}-build
16
17
%description
18
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
19
and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
20
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
21
and Layer III a.k.a. MP3) are fully implemented.
22
23
MAD supports high quality 24-bit PCM output for modern audio
24
technologies. MAD computes using 100% fixed-point (integer)
25
computation, so you can run it without a floating point unit.
26
27
28
29
Authors:
30
--------
31
Underbit Technologies, Inc. <support@underbit.com>
32
33
%package devel
34
Summary: Development package for mad
35
Group: Development/Libraries/C and C++
36
Requires: mad
37
38
%description devel
39
This package contains the header files and static libraries needed to
40
develop applications with libmad.
41
42
43
44
Authors:
45
--------
46
Underbit Technologies, Inc. <support@underbit.com>
47
48
%prep
49
%setup -n libmad-%{version}
50
%patch0
51
%patch1 -p 1
52
%__sed -i s/" -fforce-mem"/""/g configure
53
%__sed -i s/" -fforce-mem"/""/g configure.ac
54
55
%build
56
%{?suse_update_config:%{suse_update_config -f}}
57
autoreconf -fi
58
%configure
59
%__make
60
61
%install
62
%makeinstall
63
%{__install} -D -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc
64
65
%post
66
%if 0%{?suse_version}
67
%run_ldconfig
68
%else
69
/sbin/ldconfig
70
%endif
71
72
%postun
73
%if 0%{?suse_version}
74
%run_ldconfig
75
%else
76
/sbin/ldconfig
77
%endif
78
79
%clean
80
rm -rf $RPM_BUILD_ROOT
81
82
%files
83
%defattr(-,root,root)
84
%doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
85
%{_libdir}/lib*.so.*
86
87
%files devel
88
%defattr(-,root,root)
89
%{_includedir}/*
90
%{_libdir}/*.*a
91
%{_libdir}/*.so
92
%{_libdir}/pkgconfig/*.pc
93
94
%changelog -n mad
95
* Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com>
96
- import for SLE_10 build
97
98