summaryrefslogtreecommitdiff
path: root/libmad.spec
blob: 86deed2446495a5323aeba4292a4ef9becf71974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name:          libmad
Version:       0.16.4
Release:       1
Summary:       MPEG audio decoder library

License:       GPL-2.0-or-later
URL:           https://codeberg.org/tenacityteam/libmad
Source0:       https://codeberg.org/tenacityteam/libmad/releases/download/%{version}/%{name}-%{version}.tar.gz

BuildRequires: gcc-c++
BuildRequires: cmake >= 3.5.0

%description
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
and Layer III a.k.a. MP3) are fully implemented.

%package        devel
Summary:        MPEG audio decoder library development files
Requires:       %{name} = %{version}-%{release}

%description    devel
MPEG audio decoder library development files


%prep
%autosetup -p1 -n %{name}

%build
%cmake -DOPTIMIZE=ACCURACY
%cmake_build

%install
%cmake_install

%files
%license COPYING COPYRIGHT
%doc CHANGES CREDITS README.md TODO
%{_libdir}/libmad.so.*

%files devel
%{_libdir}/libmad.so
%{_libdir}/cmake/mad
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mad.h

%changelog
* Sun Nov 03 2024 Funda Wang <fundawang@yeah.net> - 0.16.4-1
- update to 0.16.4

* Wed Oct 18 2023 chenyaqiang <chengyaqiang@huawei.com> - 0.16.3-1
- update to 0.16.3

* Tue Feb 25 2020 zhouyihang<zhouyihang1@huawei.com> - 0.15.1b-28
- Package init