Compare commits
No commits in common. "c9s" and "c8" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
libvisual-0.4.0.tar.gz
|
SOURCES/libvisual-0.4.0.tar.gz
|
||||||
/libvisual-0.5.0-7e4bc9a.tar.gz
|
|
||||||
|
|||||||
1
.libvisual.metadata
Normal file
1
.libvisual.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
bd21d621f1d54134c26138e19eaae46c5aeaec00 SOURCES/libvisual-0.4.0.tar.gz
|
||||||
@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
Name: libvisual
|
Name: libvisual
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 34%{?dist}
|
Release: 25%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Abstraction library for audio visualisation plugins
|
Summary: Abstraction library for audio visualisation plugins
|
||||||
|
Group: Applications/Multimedia
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://libvisual.sf.net
|
URL: http://libvisual.sf.net
|
||||||
Source0: http://dl.sf.net/libvisual/libvisual-%{version}.tar.gz
|
Source0: http://dl.sf.net/libvisual/libvisual-%{version}.tar.gz
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: xorg-x11-proto-devel
|
BuildRequires: xorg-x11-proto-devel
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=435771
|
# https://bugzilla.redhat.com/show_bug.cgi?id=435771
|
||||||
Patch0: libvisual-0.4.0-better-altivec-detection.patch
|
Patch0: libvisual-0.4.0-better-altivec-detection.patch
|
||||||
@ -31,6 +30,7 @@ anywhere he wants.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libvisual
|
Summary: Development files for libvisual
|
||||||
|
Group: Development/Libraries
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -46,12 +46,14 @@ This package contains the files needed to build an application with libvisual.
|
|||||||
%patch2 -p1 -b .format-security
|
%patch2 -p1 -b .format-security
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global optflags %{optflags} -fno-strict-aliasing
|
%ifarch i386
|
||||||
|
export CFLAGS="${RPM_OPT_FLAGS} -mmmx"
|
||||||
|
%endif
|
||||||
%configure
|
%configure
|
||||||
%make_build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# Avoid multilib conflicts
|
# Avoid multilib conflicts
|
||||||
case `uname -i` in
|
case `uname -i` in
|
||||||
@ -94,6 +96,10 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
|||||||
|
|
||||||
%find_lang %{name}-%{smallversion}
|
%find_lang %{name}-%{smallversion}
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}-%{smallversion}.lang
|
%files -f %{name}-%{smallversion}.lang
|
||||||
%doc AUTHORS ChangeLog NEWS README TODO
|
%doc AUTHORS ChangeLog NEWS README TODO
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -107,39 +113,9 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.4.0-34
|
* Fri Jan 15 2021 Kalev Lember <klember@redhat.com> - 1:0.4.0-25
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
||||||
Related: rhbz#1991688
|
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:0.4.0-33
|
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-32
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 19 2021 Kalev Lember <klember@redhat.com> - 1:0.4.0-31
|
|
||||||
- Use make_build/make_install macros
|
|
||||||
- Drop unneeded ldconfig_scriptlets macro call
|
|
||||||
- Remove a no longer needed -mmmx CFLAGS addition
|
|
||||||
- Disable strict aliasing
|
|
||||||
|
|
||||||
* Fri Jan 15 2021 Kalev Lember <klember@redhat.com> - 1:0.4.0-30
|
|
||||||
- Fix multilib conflicts in lvconfig.h
|
- Fix multilib conflicts in lvconfig.h
|
||||||
|
- Resolves: #1853155
|
||||||
* 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
|
|
||||||
|
|
||||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-28
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-27
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-26
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-25
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-24
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-24
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- libvisual-0.2.0/libvisual/lv_cpu.c.orig 2005-02-14 00:00:13.242204989 +0000
|
|
||||||
+++ libvisual-0.2.0/libvisual/lv_cpu.c 2005-02-14 00:00:36.535144982 +0000
|
|
||||||
@@ -423,7 +423,7 @@ void visual_cpu_initialize ()
|
|
||||||
#endif
|
|
||||||
#endif /* VISUAL_ARCH_X86 */
|
|
||||||
|
|
||||||
-#if VISUAL_ARCH_POWERPC
|
|
||||||
+#if defined(VISUAL_ARCH_POWERPC)
|
|
||||||
check_os_altivec_support ();
|
|
||||||
#endif /* VISUAL_ARCH_POWERPC */
|
|
||||||
|
|
||||||
@ -1,70 +0,0 @@
|
|||||||
diff -up libvisual/libvisual/lv_cpu.c.altivec-detection libvisual/libvisual/lv_cpu.c
|
|
||||||
--- libvisual/libvisual/lv_cpu.c.altivec-detection 2013-08-23 09:34:16.000000000 -0400
|
|
||||||
+++ libvisual/libvisual/lv_cpu.c 2013-12-03 14:50:24.922718258 -0500
|
|
||||||
@@ -59,8 +59,19 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(VISUAL_OS_LINUX)
|
|
||||||
+#if defined(VISUAL_ARCH_POWERPC)
|
|
||||||
+#include <sys/types.h>
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
+#include <fcntl.h>
|
|
||||||
+#include <unistd.h>
|
|
||||||
+#include <stdio.h>
|
|
||||||
+
|
|
||||||
+#include <linux/auxvec.h>
|
|
||||||
+#include <asm/cputable.h>
|
|
||||||
+#else /* VISUAL_ARCH_POWERPC */
|
|
||||||
#include <signal.h>
|
|
||||||
#endif
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#if defined(VISUAL_OS_WIN32)
|
|
||||||
#include <windows.h>
|
|
||||||
@@ -170,6 +181,46 @@ static void check_os_altivec_support (vo
|
|
||||||
if (err == 0)
|
|
||||||
if (has_vu != 0)
|
|
||||||
cpu_caps.hasAltiVec = 1;
|
|
||||||
+#elif defined (VISUAL_OS_LINUX)
|
|
||||||
+ static int available = -1;
|
|
||||||
+ int new_avail = 0;
|
|
||||||
+ char fname[64];
|
|
||||||
+ unsigned long buf[64];
|
|
||||||
+ ssize_t count;
|
|
||||||
+ pid_t pid;
|
|
||||||
+ int fd, i;
|
|
||||||
+
|
|
||||||
+ if (available != -1)
|
|
||||||
+ return;
|
|
||||||
+
|
|
||||||
+ pid = getpid();
|
|
||||||
+ snprintf(fname, sizeof(fname)-1, "/proc/%d/auxv", pid);
|
|
||||||
+
|
|
||||||
+ fd = open(fname, O_RDONLY);
|
|
||||||
+ if (fd < 0)
|
|
||||||
+ goto out;
|
|
||||||
+more:
|
|
||||||
+ count = read(fd, buf, sizeof(buf));
|
|
||||||
+ if (count < 0)
|
|
||||||
+ goto out_close;
|
|
||||||
+
|
|
||||||
+ for (i=0; i < (count / sizeof(unsigned long)); i += 2) {
|
|
||||||
+ if (buf[i] == AT_HWCAP) {
|
|
||||||
+ new_avail = !!(buf[i+1] & PPC_FEATURE_HAS_ALTIVEC);
|
|
||||||
+ goto out_close;
|
|
||||||
+ } else if (buf[i] == AT_NULL) {
|
|
||||||
+ goto out_close;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ if (count == sizeof(buf))
|
|
||||||
+ goto more;
|
|
||||||
+out_close:
|
|
||||||
+ close(fd);
|
|
||||||
+out:
|
|
||||||
+ available = new_avail;
|
|
||||||
+ if (available)
|
|
||||||
+ cpu_caps.hasAltiVec = 1;
|
|
||||||
#else /* !VISUAL_OS_DARWIN */
|
|
||||||
/* no Darwin, do it the brute-force way */
|
|
||||||
/* this is borrowed from the libmpeg2 library */
|
|
||||||
Loading…
Reference in New Issue
Block a user