From 3ab8a524ecdc04c65b42022cd632755bd878cbc0 Mon Sep 17 00:00:00 2001 From: Adrian Schröter Date: May 16 2022 15:33:10 +0000 Subject: import --- diff --git a/a52dec-0.7.5+svn613.tar.gz b/a52dec-0.7.5+svn613.tar.gz new file mode 100644 index 0000000..d922e0a Binary files /dev/null and b/a52dec-0.7.5+svn613.tar.gz differ diff --git a/a52dec.changes b/a52dec.changes new file mode 100644 index 0000000..6516d6b --- /dev/null +++ b/a52dec.changes @@ -0,0 +1,110 @@ +------------------------------------------------------------------- +Wed Feb 20 09:19:51 UTC 2019 - schwab@suse.de + +- altivec.patch: always use the GNU version of the altivec insns + +------------------------------------------------------------------- +Sat Jul 15 21:49:12 UTC 2017 - zaitor@opensuse.org + +- Drop a52dec-compat.diff and mm_accel.h source, not needed with + the svn checkout we are using. +- Pass --enable-shared to configure, ensure we build the shared + library. + +------------------------------------------------------------------- +Wed Mar 22 07:56:31 UTC 2017 - jengelh@inai.de + +- Trim filler words from descriptions. Improve summaries. + +------------------------------------------------------------------- +Wed Mar 22 07:43:25 UTC 2017 - aloisio@gmx.com + +- Add baselibs.conf as source file + +------------------------------------------------------------------- +Tue Mar 21 11:20:44 UTC 2017 - aloisio@gmx.com + +- Spec cleanup + +------------------------------------------------------------------- +Wed Nov 5 14:28:28 UTC 2014 - i@margueirte.su + +- update latest svn 0.7.5+svn613 + +------------------------------------------------------------------- +Tue Jan 24 09:56:18 UTC 2012 - reddwarf@opensuse.org + +- fix baselibs.conf +- don't install the INSTALL file +- change license tag to SPDX +- add automake, autoconf and libtool BuildRequires + +------------------------------------------------------------------- +Wed Mar 2 23:30:23 UTC 2011 - reddwarf@opensuse.org + +- run spec cleaner +- remove .la files +- add pkg-config BuildRequire so RPM can do its magic + +------------------------------------------------------------------- +Sun Jun 20 17:31:22 UTC 2010 - ludwig.nussel@gmx.de + +- provide a52dec-devel for compatibility + +------------------------------------------------------------------- +Sat Nov 21 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de + +- update to svn from videolan + +------------------------------------------------------------------- +Fri Aug 21 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de + +- cleanups where rpmlint wasn't so happy + +------------------------------------------------------------------- +Sat Sep 20 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de + +- rename of the lib packages + +------------------------------------------------------------------- +Sun Apr 20 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de + +- splitted in different packages + +------------------------------------------------------------------- +Tue Nov 23 00:00:00 UTC 2004 - detlef@dreichelt.de + +- changes for x86_64: + - added CFLAGS= -fPIC + +------------------------------------------------------------------- +Tue Mar 25 00:00:00 UTC 2003 - Manfred.Tremmel@iiv.de + +- changes to use Packman upload-script + +------------------------------------------------------------------- +Sat Feb 22 00:00:00 UTC 2003 - Manfred.Tremmel@iiv.de + +- added --enable-shared + +------------------------------------------------------------------- +Wed Feb 5 00:00:00 UTC 2003 - Manfred.Tremmel@iiv.de + +- added german description +- some changes I got from Philipp Thomas + +------------------------------------------------------------------- +Wed Jul 3 00:00:00 UTC 2002 - Manfred.Tremmel@iiv.de + +- update to Version 0.7.4 + +------------------------------------------------------------------- +Thu May 30 00:00:00 UTC 2002 - Manfred.Tremmel@iiv.de + +- update to Version 0.7.3 + +------------------------------------------------------------------- +Sat Dec 29 00:00:00 UTC 2001 - waldemar@links2linux.de + +- first build + diff --git a/a52dec.spec b/a52dec.spec new file mode 100644 index 0000000..f2b09ae --- /dev/null +++ b/a52dec.spec @@ -0,0 +1,100 @@ +# +# spec file for package a52dec +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define major 0 +%define lib liba52 +%define libname %{lib}-%{major} +%define mandir %{_mandir} +Name: a52dec +Version: 0.7.5+svn613 +Release: 0 +Summary: ATSC A/52 stream decoder library +License: GPL-2.0-or-later +Group: Productivity/Multimedia/Sound/Utilities +Url: http://liba52.sourceforge.net/ +Source: %{name}-%{version}.tar.gz +Source2: baselibs.conf +Patch: altivec.patch +BuildRequires: libtool +BuildRequires: pkgconfig +Requires: %{libname} = %{version} +Provides: a52 = %{version} +Obsoletes: a52 < %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +liba52 is a library for decoding ATSC A/52 streams. + +%package -n %{libname} +Summary: ATSC A/52 stream decoder library +Group: System/Libraries +Provides: %{lib} = %{version} +Obsoletes: %{lib} < %{version} +Provides: liba52dec0 = %{version} +Obsoletes: liba52dec0 < %{version} + +%description -n %{libname} +liba52 is a library for decoding ATSC A/52 streams. +Shared library part of a52dec. + +%package -n %{lib}-devel +Summary: Header files for the a52dec library +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Provides: a52dec-devel = %{version} +Obsoletes: a52dec-devel < %{version} +Provides: liba52dec-devel = %{version} +Obsoletes: liba52dec-devel < %{version} + +%description -n %{lib}-devel +Header files and static library for the a52dec library. +Install this package if you want to compile programs using the library. + +%prep +%setup -q +%patch -p1 + +%build +autoreconf -fi +%configure --disable-static --enable-shared +make %{?_smp_mflags} + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc README ChangeLog AUTHORS HISTORY NEWS TODO COPYING +%{_bindir}/* +%{mandir}/man1/* + +%files -n %{libname} +%defattr(0644,root,root) +%{_libdir}/*.so.* + +%files -n %{lib}-devel +%defattr(-,root,root) +%{_includedir}/a52dec/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/liba52.pc + +%changelog diff --git a/altivec.patch b/altivec.patch new file mode 100644 index 0000000..27c75a0 --- /dev/null +++ b/altivec.patch @@ -0,0 +1,26 @@ +Index: a52dec-0.7.5+svn613/liba52/cpu_accel.c +=================================================================== +--- a52dec-0.7.5+svn613.orig/liba52/cpu_accel.c ++++ a52dec-0.7.5+svn613/liba52/cpu_accel.c +@@ -162,7 +162,7 @@ static uint32_t arch_accel (uint32_t acc + + canjump = 1; + +-#ifdef HAVE_ALTIVEC_H /* gnu */ ++#if 1 /* def HAVE_ALTIVEC_H */ /* gnu */ + #define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t" + #else /* apple */ + #define VAND(a,b,c) "vand v" #a ",v" #b ",v" #c "\n\t" +Index: a52dec-0.7.5+svn613/liba52/cpu_state.c +=================================================================== +--- a52dec-0.7.5+svn613.orig/liba52/cpu_state.c ++++ a52dec-0.7.5+svn613/liba52/cpu_state.c +@@ -44,7 +44,7 @@ static void state_restore_mmx (cpu_state + #endif + + #ifdef ARCH_PPC +-#ifdef HAVE_ALTIVEC_H /* gnu */ ++#if 1 /* def HAVE_ALTIVEC_H */ /* gnu */ + #define LI(a,b) "li " #a "," #b "\n\t" + #define STVX0(a,b,c) "stvx " #a ",0," #c "\n\t" + #define STVX(a,b,c) "stvx " #a "," #b "," #c "\n\t" diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..d3986b4 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +liba52-0