1 |
%define name a52dec |
2 |
%define major 0 |
3 |
%define libname lib%{name} |
4 |
%define fulllibname %mklibname %{name} %{major} |
5 |
%define develname %mklibname -d %name |
6 |
%define version 0.7.4 |
7 |
%define release %mkrel 16 |
8 |
|
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release} |
12 |
Summary: A free ATSC A/52 stream decoder library |
13 |
License: GPLv2+ |
14 |
Group: Video |
15 |
URL: http://liba52.sourceforge.net |
16 |
Source: %{name}-%{version}.tar.bz2 |
17 |
Patch0: a52dec-0.7.4-pic.patch |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
19 |
Obsoletes: liba52-apps |
20 |
Provides: liba52-apps |
21 |
Requires: %{fulllibname} = %{version} |
22 |
BuildRequires: autoconf2.5 |
23 |
BuildRequires: chrpath |
24 |
|
25 |
%description |
26 |
liba52 is a free library for decoding ATSC A/52 streams. |
27 |
|
28 |
The A/52 standard is used in a variety of applications, including |
29 |
digital television and DVD. It is also known as AC-3. |
30 |
|
31 |
%package -n %{fulllibname} |
32 |
Summary: Libraries for %{name} |
33 |
Group: System/Libraries |
34 |
Provides: %{name} = %{version}-%{release} |
35 |
Obsoletes: liba52dec_0 |
36 |
Obsoletes: liba52_0 |
37 |
Obsoletes: liba520 |
38 |
Provides: liba52dec_0 |
39 |
Provides: liba52_0 |
40 |
Provides: liba520 |
41 |
|
42 |
%description -n %{fulllibname} |
43 |
liba52 is a free library for decoding ATSC A/52 streams. |
44 |
|
45 |
The A/52 standard is used in a variety of applications, including |
46 |
digital television and DVD. It is also known as AC-3. |
47 |
|
48 |
This package contains libraries needed to run programs linked with %{name}. |
49 |
|
50 |
%package -n %develname |
51 |
Summary: Development files for %{name} |
52 |
Group: Development/C |
53 |
Requires: %{fulllibname} = %{version} |
54 |
Provides: %{libname}-devel = %{version}-%{release} |
55 |
Provides: %{name}-devel = %{version}-%{release} |
56 |
Obsoletes: liba52dec_0-devel |
57 |
Obsoletes: liba52_0-devel |
58 |
Obsoletes: liba520-devel |
59 |
Obsoletes: %mklibname -d %name 0 |
60 |
|
61 |
%description -n %develname |
62 |
liba52 is a free library for decoding ATSC A/52 streams. |
63 |
|
64 |
The A/52 standard is used in a variety of applications, including |
65 |
digital television and DVD. It is also known as AC-3. |
66 |
|
67 |
This package contains development files needed to compile programs which |
68 |
use %{name}. |
69 |
|
70 |
%prep |
71 |
%setup -q |
72 |
%patch0 -p1 -b .pic |
73 |
autoconf |
74 |
|
75 |
%build |
76 |
export CFLAGS="%optflags -fPIC" |
77 |
%configure2_5x --enable-shared |
78 |
%make |
79 |
|
80 |
%install |
81 |
rm -rf %buildroot |
82 |
%makeinstall |
83 |
chrpath -d %buildroot%_bindir/a52dec |
84 |
|
85 |
# don't ship .a, .la |
86 |
find %{buildroot} -name *.a | xargs rm -f |
87 |
find %{buildroot} -name *.la | xargs rm -f |
88 |
|
89 |
%clean |
90 |
rm -rf %{buildroot} |
91 |
|
92 |
%files |
93 |
%defattr(-,root,root) |
94 |
%doc AUTHORS COPYING NEWS README TODO HISTORY |
95 |
%{_bindir}/* |
96 |
%{_mandir}/man1/* |
97 |
|
98 |
%files -n %{fulllibname} |
99 |
%defattr(-,root,root) |
100 |
%{_libdir}/liba52.so.%{major}* |
101 |
|
102 |
%files -n %develname |
103 |
%defattr(-,root,root) |
104 |
%{_includedir}/* |
105 |
%{_libdir}/*.so |