Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
| michael@0 | 1 | Summary: A free ATSC A/52 stream decoder |
| michael@0 | 2 | Name: a52dec |
| michael@0 | 3 | Version: 0.7.4 |
| michael@0 | 4 | Release: 17.4 |
| michael@0 | 5 | License: GPLv2 |
| michael@0 | 6 | Group: System Environment/Libraries |
| michael@0 | 7 | URL: http://liba52.sourceforge.net/ |
| michael@0 | 8 | Source0: http://liba52.sourceforge.net/files/%{name}-%{version}.tar.gz |
| michael@0 | 9 | Patch0: a52dec-configure-optflags.patch |
| michael@0 | 10 | Patch1: a52dec-0.7.4-rpath64.patch |
| michael@0 | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
| michael@0 | 12 | BuildRequires: perl |
| michael@0 | 13 | |
| michael@0 | 14 | %package devel |
| michael@0 | 15 | Summary: Development files needed for a52dec |
| michael@0 | 16 | Group: Development/Libraries |
| michael@0 | 17 | Requires: %{name} = %{version}-%{release} |
| michael@0 | 18 | |
| michael@0 | 19 | #--------------------------------------------------------------------- |
| michael@0 | 20 | |
| michael@0 | 21 | %description |
| michael@0 | 22 | liba52 is a free library for decoding ATSC A/52 streams. The A/52 |
| michael@0 | 23 | standard is used in a variety of applications, including digital |
| michael@0 | 24 | television and DVD. It is also known as AC-3. The package also |
| michael@0 | 25 | includes a52dec, a small test program for liba52. |
| michael@0 | 26 | |
| michael@0 | 27 | %description devel |
| michael@0 | 28 | liba52 is a free library for decoding ATSC A/52 streams. The A/52 |
| michael@0 | 29 | standard is used in a variety of applications, including digital |
| michael@0 | 30 | television and DVD. It is also known as AC-3. |
| michael@0 | 31 | This package contains development files for a52dec. |
| michael@0 | 32 | |
| michael@0 | 33 | #--------------------------------------------------------------------- |
| michael@0 | 34 | |
| michael@0 | 35 | %prep |
| michael@0 | 36 | %setup -q |
| michael@0 | 37 | %patch0 |
| michael@0 | 38 | %patch1 -p1 |
| michael@0 | 39 | %{__perl} -pi -e 's/-prefer-non-pic\b/-prefer-pic/' \ |
| michael@0 | 40 | configure liba52/configure.incl |
| michael@0 | 41 | |
| michael@0 | 42 | #--------------------------------------------------------------------- |
| michael@0 | 43 | |
| michael@0 | 44 | %build |
| michael@0 | 45 | %configure --enable-shared --disable-static |
| michael@0 | 46 | make %{?_smp_mflags} |
| michael@0 | 47 | |
| michael@0 | 48 | #--------------------------------------------------------------------- |
| michael@0 | 49 | |
| michael@0 | 50 | %install |
| michael@0 | 51 | rm -rf $RPM_BUILD_ROOT |
| michael@0 | 52 | make install DESTDIR=%{buildroot} |
| michael@0 | 53 | |
| michael@0 | 54 | #--------------------------------------------------------------------- |
| michael@0 | 55 | |
| michael@0 | 56 | %clean |
| michael@0 | 57 | rm -rf $RPM_BUILD_ROOT |
| michael@0 | 58 | |
| michael@0 | 59 | #--------------------------------------------------------------------- |
| michael@0 | 60 | |
| michael@0 | 61 | %post -p /sbin/ldconfig |
| michael@0 | 62 | %postun -p /sbin/ldconfig |
| michael@0 | 63 | |
| michael@0 | 64 | %files |
| michael@0 | 65 | %defattr(-,root,root,-) |
| michael@0 | 66 | %exclude %{_libdir}/liba52.la |
| michael@0 | 67 | %doc AUTHORS COPYING ChangeLog HISTORY NEWS TODO |
| michael@0 | 68 | %{_libdir}/liba52.so.* |
| michael@0 | 69 | %{_bindir}/a52dec |
| michael@0 | 70 | %{_bindir}/extract_a52 |
| michael@0 | 71 | %{_mandir}/man1/a52dec.1* |
| michael@0 | 72 | %{_mandir}/man1/extract_a52.1* |
| michael@0 | 73 | |
| michael@0 | 74 | %files devel |
| michael@0 | 75 | %defattr(-,root,root,-) |
| michael@0 | 76 | %doc doc/liba52.txt |
| michael@0 | 77 | %{_includedir}/a52dec |
| michael@0 | 78 | %{_libdir}/liba52.so |
| michael@0 | 79 | |
| michael@0 | 80 | #--------------------------------------------------------------------- |
| michael@0 | 81 | |
| michael@0 | 82 | %changelog |
| michael@0 | 83 | * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.7.4-16 |
| michael@0 | 84 | - Build for MeeGo 1.1 |
| michael@0 | 85 | |
| michael@0 | 86 | * Tue Apr 28 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.7.4-15 |
| michael@0 | 87 | - rebuild |
| michael@0 | 88 | |
| michael@0 | 89 | * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.7.4-14 |
| michael@0 | 90 | - rebuild for new F11 features |
| michael@0 | 91 | |
| michael@0 | 92 | * Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.7.4-12 |
| michael@0 | 93 | - integrate a fix from livna that got lost |
| michael@0 | 94 | |
| michael@0 | 95 | * Thu Jul 24 2008 David Juran <david@juran.se> - 0.7.4-12 |
| michael@0 | 96 | - Bump Release for RpmFusion |
| michael@0 | 97 | |
| michael@0 | 98 | * Sun Nov 11 2007 Dominik Mierzejewski <dominik [AT] greysector [DOT] net> 0.7.4-11.1 |
| michael@0 | 99 | - Really drop djbfft |
| michael@0 | 100 | |
| michael@0 | 101 | * Mon Oct 1 2007 David Juran <david@juran.se> - 0.7.4-11 |
| michael@0 | 102 | - Fix Licence tag to be GPLv2 |
| michael@0 | 103 | - Drop %makeinstall macro |
| michael@0 | 104 | - Drop static archive |
| michael@0 | 105 | - Drop djbfft |
| michael@0 | 106 | |
| michael@0 | 107 | * Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.7.4-10 |
| michael@0 | 108 | - rebuilt for unwind info generation, broken in gcc-4.1.1-21 |
| michael@0 | 109 | |
| michael@0 | 110 | * Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7.4-9 |
| michael@0 | 111 | - Drop epoch in devel dep, too |
| michael@0 | 112 | |
| michael@0 | 113 | * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
| michael@0 | 114 | - switch to new release field |
| michael@0 | 115 | - drop epoch |
| michael@0 | 116 | |
| michael@0 | 117 | * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> |
| michael@0 | 118 | - add dist |
| michael@0 | 119 | |
| michael@0 | 120 | * Thu Feb 16 2006 Ville Skyttä <ville.skytta at iki.fi> - 0:0.7.4-0.lvn.8 |
| michael@0 | 121 | - Avoid standard rpaths on lib64 archs. |
| michael@0 | 122 | |
| michael@0 | 123 | * Tue Jul 27 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.7.4-0.lvn.7 |
| michael@0 | 124 | - Prefer PIC. |
| michael@0 | 125 | - (Build)Require djbfft-devel. |
| michael@0 | 126 | - Include more docs. |
| michael@0 | 127 | |
| michael@0 | 128 | * Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:0.7.4-0.fdr.6 |
| michael@0 | 129 | - Removed comment after scriptlets |
| michael@0 | 130 | - buildroot -> RPM_BUILD_ROOT |
| michael@0 | 131 | |
| michael@0 | 132 | * Mon Apr 14 2003 Dams <anvil[AT]livna.org> 0:0.7.4-0.fdr.5 |
| michael@0 | 133 | - devel package require djbfft (not djbfft-devel) |
| michael@0 | 134 | |
| michael@0 | 135 | * Sun Apr 13 2003 Dams <anvil[AT]livna.org> 0:0.7.4-0.fdr.4 |
| michael@0 | 136 | - Enabled support for djbfft |
| michael@0 | 137 | |
| michael@0 | 138 | * Sun Apr 13 2003 Dams <anvil[AT]livna.org> 0:0.7.4-0.fdr.3 |
| michael@0 | 139 | - Added post and postun scriplet |
| michael@0 | 140 | - moved man pages from devel to main package |
| michael@0 | 141 | |
| michael@0 | 142 | * Sun Apr 13 2003 Dams <anvil[AT]livna.org> 0:0.7.4-0.fdr.2 |
| michael@0 | 143 | - make configure honor optflags |
| michael@0 | 144 | - devel package |
| michael@0 | 145 | - shared library added |
| michael@0 | 146 | |
| michael@0 | 147 | * Thu Apr 10 2003 Dams <anvil[AT]livna.org> |
| michael@0 | 148 | - Initial build. |