From 12eda77b3518067dc3ebcb2a94a945cb7485c524 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Fri, 15 Jan 2021 22:22:11 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libvisual.git#6af697a4c2d30eb9c0bc56bb56665986fdddc1c2 --- libvisual.spec | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/libvisual.spec b/libvisual.spec index dc7725d..9ca8c47 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -2,7 +2,7 @@ Name: libvisual Version: 0.4.0 -Release: 29%{?dist} +Release: 30%{?dist} Epoch: 1 Summary: Abstraction library for audio visualisation plugins License: LGPLv2+ @@ -10,6 +10,7 @@ URL: http://libvisual.sf.net Source0: http://dl.sf.net/libvisual/libvisual-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: xorg-x11-proto-devel +BuildRequires: make # https://bugzilla.redhat.com/show_bug.cgi?id=435771 Patch0: libvisual-0.4.0-better-altivec-detection.patch Patch1: libvisual-0.4.0-inlinedefineconflict.patch @@ -53,6 +54,44 @@ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} + +# Avoid multilib conflicts +case `uname -i` in + i386 | ppc | s390 | sparc ) + wordsize="32" + ;; + x86_64 | ppc64 | s390x | sparc64 ) + wordsize="64" + ;; + *) + wordsize="" + ;; +esac + +if test -n "$wordsize" +then + mv %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig.h \ + %{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig-$wordsize.h + + cat >%{buildroot}%{_includedir}/libvisual-%{smallversion}/libvisual/lvconfig.h < + +#if __WORDSIZE == 32 +# include "lvconfig-32.h" +#elif __WORDSIZE == 64 +# include "lvconfig-64.h" +#else +# error "unexpected value for __WORDSIZE macro" +#endif + +#endif +EOF + +fi + find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %find_lang %{name}-%{smallversion} @@ -72,6 +111,9 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %changelog +* Fri Jan 15 2021 Kalev Lember - 1:0.4.0-30 +- Fix multilib conflicts in lvconfig.h + * Tue Jul 28 2020 Fedora Release Engineering - 1:0.4.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild