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