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
This commit is contained in:
DistroBaker 2021-01-15 22:22:11 +00:00
parent 5e5ef31db1
commit 12eda77b35

View File

@ -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 <<EOF
#ifndef __LV_CONFIG_H_MULTILIB__
#define __LV_CONFIG_H_MULTILIB__
#include <bits/wordsize.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 <klember@redhat.com> - 1:0.4.0-30
- Fix multilib conflicts in lvconfig.h
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild