a52dec/a52dec.spec

changeset 1
4667f24fe848
parent 0
4f133201e207
equal deleted inserted replaced
0:713aa8e98c1a 1:825d48c7e66c
1 Summary: A free ATSC A/52 stream decoder 1 Summary: A free ATSC A/52 stream decoder
2 Name: a52dec 2 Vendor: Europalab Software
3 Version: 0.7.4 3 Packager: Michael Schloh von Bennewitz
4 Release: 17.4 4 Distribution: MeeGo Thirdparty
5 License: GPLv2 5 Name: a52dec
6 Group: System Environment/Libraries 6 Version: 0.7.4
7 URL: http://liba52.sourceforge.net/ 7 Release: 20101201
8 Source0: http://liba52.sourceforge.net/files/%{name}-%{version}.tar.gz 8 License: GPLv2
9 Patch0: a52dec-configure-optflags.patch 9 Group: System Environment/Libraries
10 Patch1: a52dec-0.7.4-rpath64.patch 10 URL: http://liba52.sourceforge.net/
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot 11 Source0: http://liba52.sourceforge.net/files/%{name}-%{version}.tar.gz
12 BuildRequires: perl 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
13 13
14 %package devel
15 Summary: Development files needed for a52dec
16 Group: Development/Libraries
17 Requires: %{name} = %{version}-%{release}
18 14
19 #--------------------------------------------------------------------- 15 %package devel
16 Summary: Development files needed for a52dec
17 Group: Development/Libraries
18 Requires: %{name} = %{version}-%{release}
19
20 20
21 %description 21 %description
22 liba52 is a free library for decoding ATSC A/52 streams. The A/52 22 The liba52 library decodes ATSC A/52 streams. The A/52 standard
23 standard is used in a variety of applications, including digital 23 is used in a variety of applications, including digital television
24 television and DVD. It is also known as AC-3. The package also 24 and DVD. It is also known as AC-3. This package also includes a52dec,
25 includes a52dec, a small test program for liba52. 25 a small test program for liba52.
26
26 27
27 %description devel 28 %description devel
28 liba52 is a free library for decoding ATSC A/52 streams. The A/52 29 The liba52 library decodes ATSC A/52 streams. The A/52 standard
29 standard is used in a variety of applications, including digital 30 is used in a variety of applications, including digital television
30 television and DVD. It is also known as AC-3. 31 and DVD. It is also known as AC-3. This package contains development
31 This package contains development files for a52dec. 32 files for a52dec.
32 33
33 #---------------------------------------------------------------------
34 34
35 %prep 35 %prep
36 %setup -q 36 %setup -q
37 %patch0
38 %patch1 -p1
39 %{__perl} -pi -e 's/-prefer-non-pic\b/-prefer-pic/' \
40 configure liba52/configure.incl
41 37
42 #---------------------------------------------------------------------
43 38
44 %build 39 %build
45 %configure --enable-shared --disable-static 40 %configure --enable-shared --disable-static
46 make %{?_smp_mflags} 41 make %{?_smp_mflags}
47 42
48 #---------------------------------------------------------------------
49 43
50 %install 44 %install
51 rm -rf $RPM_BUILD_ROOT 45 rm -rf $RPM_BUILD_ROOT
52 make install DESTDIR=%{buildroot} 46 make install DESTDIR=%{buildroot}
53 47
54 #---------------------------------------------------------------------
55 48
56 %clean 49 %clean
57 rm -rf $RPM_BUILD_ROOT 50 rm -rf $RPM_BUILD_ROOT
58 51
59 #---------------------------------------------------------------------
60 52
61 %post -p /sbin/ldconfig 53 %post -p /sbin/ldconfig
54
55
62 %postun -p /sbin/ldconfig 56 %postun -p /sbin/ldconfig
57
63 58
64 %files 59 %files
65 %defattr(-,root,root,-) 60 %defattr(-,root,root,-)
66 %exclude %{_libdir}/liba52.la 61 %exclude %{_libdir}/liba52.la
67 %doc AUTHORS COPYING ChangeLog HISTORY NEWS TODO 62 %doc AUTHORS COPYING ChangeLog HISTORY NEWS TODO
69 %{_bindir}/a52dec 64 %{_bindir}/a52dec
70 %{_bindir}/extract_a52 65 %{_bindir}/extract_a52
71 %{_mandir}/man1/a52dec.1* 66 %{_mandir}/man1/a52dec.1*
72 %{_mandir}/man1/extract_a52.1* 67 %{_mandir}/man1/extract_a52.1*
73 68
69
74 %files devel 70 %files devel
75 %defattr(-,root,root,-) 71 %defattr(-,root,root,-)
76 %doc doc/liba52.txt 72 %doc doc/liba52.txt
77 %{_includedir}/a52dec 73 %{_includedir}/a52dec
78 %{_libdir}/liba52.so 74 %{_libdir}/liba52.so
79 75
80 #---------------------------------------------------------------------
81 76
82 %changelog 77 %changelog
78 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.7.4-20101201
79 - Adjust packaging
80
83 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.7.4-16 81 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.7.4-16
84 - Build for MeeGo 1.1 82 - Build for MeeGo 1.1
85 83
86 * Tue Apr 28 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.7.4-15 84 * Tue Apr 28 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.7.4-15
87 - rebuild 85 - rebuild

mercurial