Stephan Kulow 4 years ago committed by Git OBS Bridge
commit d2b7ee7886

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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

@ -1,7 +1,7 @@
#
# spec file for package a52dec
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -24,11 +24,12 @@ Name: a52dec
Version: 0.7.5+svn613
Release: 0
Summary: ATSC A/52 stream decoder library
License: GPL-2.0+
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}
@ -66,6 +67,7 @@ Install this package if you want to compile programs using the library.
%prep
%setup -q
%patch -p1
%build
autoreconf -fi

@ -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"
Loading…
Cancel
Save