From 91145b21a417a9a215983e89703232ab9afb2e593ffaea8d59d7796af5b88bdb Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 14 Mar 2023 16:07:26 +0000 Subject: [PATCH] Accepting request 1071069 from home:pluskalm:branches:multimedia:libs - Build AVX2 enabled hwcaps library for x86_64-v3 - Small spec file cleanup OBS-URL: https://build.opensuse.org/request/show/1071069 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=68 --- libvorbis-doc.spec | 2 +- libvorbis.changes | 6 ++++++ libvorbis.spec | 33 +++++---------------------------- 3 files changed, 12 insertions(+), 29 deletions(-) diff --git a/libvorbis-doc.spec b/libvorbis-doc.spec index b4bae74..64ddaea 100644 --- a/libvorbis-doc.spec +++ b/libvorbis-doc.spec @@ -1,7 +1,7 @@ # # spec file for package libvorbis-doc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/libvorbis.changes b/libvorbis.changes index d6b37ac..9739d11 100644 --- a/libvorbis.changes +++ b/libvorbis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 13 08:28:53 UTC 2023 - Martin Pluskal + +- Build AVX2 enabled hwcaps library for x86_64-v3 +- Small spec file cleanup + ------------------------------------------------------------------- Wed Jun 15 13:55:43 UTC 2022 - Callum Farmer diff --git a/libvorbis.spec b/libvorbis.spec index 2480634..ab755b3 100644 --- a/libvorbis.spec +++ b/libvorbis.spec @@ -1,7 +1,7 @@ # # spec file for package libvorbis # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,11 +34,7 @@ BuildRequires: libogg-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -# bug437293 (SLES10 -> SLES11 upgrade path) -%ifarch ppc64 -Obsoletes: libvorbis-64bit -%endif +%{?suse_build_hwcaps_libs} %description Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and @@ -50,15 +46,7 @@ libmatroska (matroska) can also be used. %package -n libvorbis0 Summary: The Vorbis General Audio Compression Codec -# -# libvorbis was last used in openSUSE 11.3 Group: System/Libraries -Provides: %{name} = 1.3.2 -Obsoletes: %{name} < 1.3.2 -# bug437293 (SLES10 -> SLES11 upgrade path) -%ifarch ppc64 -Obsoletes: libvorbis-64bit -%endif %description -n libvorbis0 Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and @@ -100,11 +88,6 @@ Requires: libogg-devel Requires: libvorbis0 = %{version} Requires: libvorbisenc2 = %{version} Requires: libvorbisfile3 = %{version} -# bug437293 (SLES10 -> SLES11 upgrade path) -%ifarch ppc64 -Obsoletes: libvorbis-devel-64bit -%endif -# %description devel This package contains all necessary include files and libraries needed @@ -127,28 +110,23 @@ autoreconf -fiv %configure \ --disable-examples \ --disable-static -make %{?_smp_mflags} +%make_build %install -make DESTDIR=%{buildroot} install +%make_install # docs are built in a separate spec file rm -rf %{buildroot}%{_datadir}/doc/* # remove unneeded files find %{buildroot} -type f -name "*.la" -delete -print %check -make %{?_smp_mflags} check +%make_build check %post -n libvorbis0 -p /sbin/ldconfig - %postun -n libvorbis0 -p /sbin/ldconfig - %post -n libvorbisenc2 -p /sbin/ldconfig - %postun -n libvorbisenc2 -p /sbin/ldconfig - %post -n libvorbisfile3 -p /sbin/ldconfig - %postun -n libvorbisfile3 -p /sbin/ldconfig %files -n libvorbis0 @@ -161,7 +139,6 @@ make %{?_smp_mflags} check %{_libdir}/libvorbisfile.so.3* %files devel -%defattr(-,root,root) %doc AUTHORS %license COPYING %{_datadir}/aclocal/*.m4