[packages/vmaf/vmaf-2] - updated to 2.1.0 (new soname) - removed obsolete x86-nosimd patch
qboosh
qboosh at pld-linux.org
Fri Jan 15 21:15:17 CET 2021
commit dcd1edda3539df4c63ef53b309d97e67ca87a729
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jan 15 21:15:18 2021 +0100
- updated to 2.1.0 (new soname)
- removed obsolete x86-nosimd patch
vmaf-x86-nosimd.patch | 20 --------------------
vmaf.spec | 27 +++++++++++++++------------
2 files changed, 15 insertions(+), 32 deletions(-)
---
diff --git a/vmaf.spec b/vmaf.spec
index 907609f..b98146d 100644
--- a/vmaf.spec
+++ b/vmaf.spec
@@ -15,18 +15,21 @@
Summary: Netflix's VMAF library
Summary(pl.UTF-8): Biblioteka Netflix VMAF
Name: vmaf
-Version: 1.5.3
+Version: 2.1.0
Release: 1
License: BSD+patent
Group: Libraries
#Source0Download: https://github.com/Netflix/vmaf/releases
Source0: https://github.com/Netflix/vmaf/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 73914f1bc2e15a82162549f1eba735fa
-Patch0: %{name}-x86-nosimd.patch
+# Source0-md5: a65e105a67008796d566e9cc38e8e0fe
URL: https://github.com/Netflix/vmaf
BuildRequires: libstdc++-devel >= 6:4.8
BuildRequires: meson >= 0.47.0
-BuildRequires: ninja >= 1.5
+%ifarch %{ix86} %{x8664} x32
+BuildRequires: nasm
+%endif
+BuildRequires: ninja >= 1.7.1
+BuildRequires: python3 >= 1:3.6
BuildRequires: sed >= 4.0
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -80,7 +83,8 @@ Statyczna biblioteka Netflix VMAF.
%prep
%setup -q
-%patch0 -p1
+
+%{__mv} libvmaf/README.md libvmaf/README.libvmaf.md
%if %{without sse2}
%{__sed} -i -e 's,#define ADM_OPT_RECIP_DIVISION,/* & */,' libvmaf/src/feature/adm_options.h
@@ -100,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
%ninja_install -C build-libvmaf
-install build-libvmaf/tools/{vmaf_feature,vmaf_rc} $RPM_BUILD_ROOT%{_bindir}
+install build-libvmaf/tools/vmafossexec $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -115,16 +119,15 @@ rm -f %{_libdir}/libvmaf.so.0
%files
%defattr(644,root,root,755)
-%doc CHANGELOG.md FAQ.md LICENSE NOTICE.md README.md VERSION
-%attr(755,root,root) %{_bindir}/vmaf_feature
-%attr(755,root,root) %{_bindir}/vmaf_rc
+%doc libvmaf/tools/README.md
+%attr(755,root,root) %{_bindir}/vmaf
%attr(755,root,root) %{_bindir}/vmafossexec
-%{_datadir}/model
%files libs
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvmaf.so.0.0.0
-%attr(755,root,root) %ghost %{_libdir}/libvmaf.so.0
+%doc CHANGELOG.md FAQ.md LICENSE README.md libvmaf/README.libvmaf.md
+%attr(755,root,root) %{_libdir}/libvmaf.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvmaf.so.1
%files devel
%defattr(644,root,root,755)
diff --git a/vmaf-x86-nosimd.patch b/vmaf-x86-nosimd.patch
deleted file mode 100644
index b9a1f0a..0000000
--- a/vmaf-x86-nosimd.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- vmaf-1.5.3/libvmaf/src/feature/adm_tools.c.orig 2020-08-25 01:35:41.000000000 +0200
-+++ vmaf-1.5.3/libvmaf/src/feature/adm_tools.c 2021-01-12 18:58:18.525832313 +0100
-@@ -35,8 +35,7 @@
- #define MIN(x, y) (((x) < (y)) ? (x) : (y))
- #define MAX(x, y) (((x) > (y)) ? (x) : (y))
-
--#if ARCH_X86
--#ifdef ADM_OPT_RECIP_DIVISION
-+#if ARCH_X86 && defined(ADM_OPT_RECIP_DIVISION)
-
- #include <emmintrin.h>
-
-@@ -47,7 +46,6 @@
- }
-
- #define DIVS(n, d) ((n) * rcp_s(d))
--#endif //ADM_OPT_RECIP_DIVISION
- #else
- #define DIVS(n, d) ((n) / (d))
- #endif //ARCH_X86
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vmaf.git/commitdiff/dcd1edda3539df4c63ef53b309d97e67ca87a729
More information about the pld-cvs-commit
mailing list