Changes of Revision 2
[-] | Changed | a52dec.spec |
x 1
2 +# 3 +# specfile for a52dec 4 +# 5 # norootforbuild 6 7 -%define name a52dec 8 -%define version 0.7.4 9 -%define release 6 10 %define major 0 11 %define lib liba52 12 %define libname %{lib}-%{major} 13
14 15 Summary: Library for decoding ATSC A/52 streams 16 Summary(de): Bibliothek zum dekodieren von ATSC A/52 Streams 17 -Name: %{name} 18 -Version: %{version} 19 -Release: %{release} 20 +Name: a52dec 21 +Version: 0.7.5svn 22 +Release: 3 23 License: GPL v2 or later 24 Group: Productivity/Multimedia/Sound/Utilities 25 - 26 -Source0: a52dec-0.7.4.tar.bz2 27 - 28 +Source0: %{name}-%{version}.tar.bz2 29 +Source1: mm_accel.h 30 +Patch0: %{name}-compat.diff 31 URL: http://liba52.sourceforge.net/ 32 -BuildRoot: /var/tmp/%{name}-%{version}-%{release} 33 -Prefix: %{_prefix} 34 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 35 Provides: a52 = %{version}-%{release} 36 Obsoletes: a52 < %{version}-%{release} 37 BuildRequires: glibc-devel 38
39 Obsoletes: liba52dec0 < %{version}-%{release} 40 41 %description -n %{libname} 42 -Shared library part of a52dec 43 +liba52 is a free library for decoding ATSC A/52 streams. 44 +Shared library part of a52dec. 45 46 %description -n %{libname} -l de 47 -Bibliotheken zu a52dec 48 +liba52 ist eine frei Biblothek zum dekodieren von ATSC A/52 Streams. 49 +Bibliotheken zu a52dec. 50 51 %package -n %{lib}-devel 52 -Group: System/Libraries 53 +Group: Development/Libraries/C and C++ 54 Summary: Header files and static library for the a52dec library 55 Summary(de): Header Dateien und statische Bibliotheken für die a52dec Bibliothek 56 -Requires: %{libname} = %{version}-%{release} 57 Provides: liba52dec-devel = %{version}-%{release} 58 Obsoletes: liba52dec-devel < %{version}-%{release} 59 +Requires: %{libname} = %{version}-%{release} 60 Requires: glibc-devel 61 Requires: gcc 62 63 %description -n %{lib}-devel 64 -Header files and static library for the a52dec library 65 +Header files and static library for the a52dec library. 66 +Install this package if you want to compile programs using the library. 67 68 %description -n %{lib}-devel -l de 69 -Header Dateien und statische Bibliotheken für die a52dec Bibliothek 70 +Header Dateien und statische Bibliotheken für die a52dec Bibliothek. 71 +Installieren Sie dieses Paket, wenn Sie Programme kompilieren wollen, 72 +die diese Bibliothek verwenden. 73 74 %debug_package 75 76
77 %prep 78 79 %setup 80 +%patch0 -p1 81 82 %build 83 %ifarch x86_64 amd64 ia32e 84
85 %endif 86 CC=gcc 87 export CC CFLAGS 88 -%configure --enable-shared 89 +if [ ! -f configure ]; then 90 + %{?suse_update_config:%{suse_update_config -f}} 91 + aclocal 92 + mkdir .auto 93 + libtoolize --force 94 + aclocal -I m4 95 + autoheader 96 + automake --gnu --add-missing 97 + autoconf 98 + automake 99 +fi 100 +%configure --enable-shared --disable-static 101 %__make %{?jobs:-j%{jobs}} 102 103 %install 104 [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} 105 +mkdir %{buildroot} 106 %makeinstall 107 - 108 -find %{buildroot}%{mandir} -type f -exec gzip -9 {} \; 109 +%{__install} -m 644 %{SOURCE1} %{buildroot}%{_includedir}/a52dec/ 110 111 %clean 112 [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} 113 114 -%post -n %{libname} 115 -/sbin/ldconfig 116 - 117 -%postun -n %{libname} 118 -/sbin/ldconfig 119 +%post -n %{libname} -p /sbin/ldconfig 120 +%postun -n %{libname} -p /sbin/ldconfig 121 122 %files 123 %defattr(-, root, root) 124 %doc README ChangeLog AUTHORS HISTORY INSTALL NEWS TODO COPYING 125 %{_bindir}/* 126 -%{mandir}/man1/*.gz 127 +%{mandir}/man1/* 128 129 %files -n %{libname} 130 %defattr(-,root,root) 131
132 133 %files -n %{lib}-devel 134 %defattr(-,root,root) 135 -%{_includedir}/a52dec 136 +%{_includedir}/a52dec/ 137 %{_libdir}/*.so 138 -%{_libdir}/*.*a 139 +%{_libdir}/*.la 140 +%{_libdir}/pkgconfig/liba52.pc 141 142 %changelog 143 -* Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> 144 -- import for SLE_10 build 145 +* Wed May 05 2010 Carsten Schoene <cs@linux-administrator.com> - 1.6.1-3 146 +- EL5 import 147 + 148 |
||
[+] | Added | a52dec-compat.diff ^ |
@@ -0,0 +1,43 @@ +diff -ur a52dec-0.7.5svn.orig/include/a52.h a52dec-0.7.5svn/include/a52.h +--- a52dec-0.7.5svn.orig/include/a52.h 2009-11-21 12:16:55.000000000 +0100 ++++ a52dec-0.7.5svn/include/a52.h 2009-11-21 23:38:01.737496206 +0100 +@@ -68,7 +68,7 @@ + #define A52_ACCEL_DETECT 0x80000000 + + uint32_t a52_accel (uint32_t accel); +-a52_state_t * a52_init (void); ++a52_state_t * a52_init (uint32_t mm_accel); + sample_t * a52_samples (a52_state_t * state); + int a52_syncinfo (uint8_t * buf, int * flags, + int * sample_rate, int * bit_rate); +diff -ur a52dec-0.7.5svn.orig/liba52/parse.c a52dec-0.7.5svn/liba52/parse.c +--- a52dec-0.7.5svn.orig/liba52/parse.c 2009-11-21 12:16:55.000000000 +0100 ++++ a52dec-0.7.5svn/liba52/parse.c 2009-11-21 23:41:41.876496697 +0100 +@@ -63,12 +63,12 @@ + return a52_accels & ~A52_ACCEL_DETECT; + } + +-a52_state_t * a52_init (void) ++a52_state_t * a52_init (uint32_t mm_accel) + { + a52_state_t * state; + int i; + +- a52_accel (A52_ACCEL_DETECT); ++ a52_accel (mm_accel); + + state = (a52_state_t *) malloc (sizeof (a52_state_t)); + if (state == NULL) +diff -ur a52dec-0.7.5svn.orig/src/a52dec.c a52dec-0.7.5svn/src/a52dec.c +--- a52dec-0.7.5svn.orig/src/a52dec.c 2009-11-21 12:16:55.000000000 +0100 ++++ a52dec-0.7.5svn/src/a52dec.c 2009-11-21 23:39:45.882501382 +0100 +@@ -631,8 +631,7 @@ + return 1; + } + +- a52_accel (accel); +- state = a52_init (); ++ state = a52_init (accel); + if (state == NULL) { + fprintf (stderr, "A52 init failed\n"); + return 1; | ||
Deleted | a52dec-0.7.4.tar.bz2 ^ | |
Added | a52dec-0.7.5svn.tar.bz2 ^ | |
[+] | Added | mm_accel.h ^ |
@@ -0,0 +1,35 @@ +/* + * mm_accel.h + * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org> + * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca> + * + * This file is part of a52dec, a free ATSC A-52 stream decoder. + * See http://liba52.sourceforge.net/ for updates. + * + * a52dec is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * a52dec is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef MM_ACCEL_H +#define MM_ACCEL_H + +/* generic accelerations */ +#define MM_ACCEL_DJBFFT 0x80000000 + +/* x86 accelerations */ +#define MM_ACCEL_X86_MMX 1 +#define MM_ACCEL_X86_3DNOW 2 +#define MM_ACCEL_X86_MMXEXT 4 + +#endif /* MM_ACCEL_H */ |