commit 6d9c8352cd5a6591a8b87e8f9b5148cf4a725b4d
Author: Jakub Bogusz <[email protected]>
Date:   Mon Jul 6 21:35:18 2020 +0200

    - updated to 1.5.2
    - removed obsolete shared patch
    - added trigger to replace libvmaf.so.0 library file with soname symlink

 vmaf-shared.patch | 10 ----------
 vmaf.spec         | 19 +++++++++++--------
 2 files changed, 11 insertions(+), 18 deletions(-)
---
diff --git a/vmaf.spec b/vmaf.spec
index 92d3719..d447a13 100644
--- a/vmaf.spec
+++ b/vmaf.spec
@@ -15,14 +15,13 @@
 Summary:       Netflix's VMAF library
 Summary(pl.UTF-8):     Biblioteka Netflix VMAF
 Name:          vmaf
-Version:       1.5.1
+Version:       1.5.2
 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: f5fdf4e7b06b0e692cafb0527f9ca5c9
-Patch0:                %{name}-shared.patch
+# Source0-md5: 0bffac819d2f65c8efaf90c9ab43d27d
 URL:           https://github.com/Netflix/vmaf
 BuildRequires: libstdc++-devel >= 6:4.8
 BuildRequires: meson >= 0.47.0
@@ -80,7 +79,6 @@ Statyczna biblioteka Netflix VMAF.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %if %{without sse2}
 %{__sed} -i -e 's,#define ADM_OPT_RECIP_DIVISION,/* & */,' 
libvmaf/src/feature/adm_options.h
@@ -100,7 +98,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %ninja_install -C build-libvmaf
 
-install build-libvmaf/tools/{psnr,vmaf,vmaf_rc} $RPM_BUILD_ROOT%{_bindir}
+install build-libvmaf/tools/{vmaf_feature,vmaf_rc} $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -108,18 +106,23 @@ rm -rf $RPM_BUILD_ROOT
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
+%triggerpostun libs -- vmaf-libs < 1.5.2
+# replace library file with soname symlink
+rm -f %{_libdir}/libvmaf.so.0
+/sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc CHANGELOG.md FAQ.md LICENSE NOTICE.md README.md VERSION
-%attr(755,root,root) %{_bindir}/psnr
-%attr(755,root,root) %{_bindir}/vmaf
+%attr(755,root,root) %{_bindir}/vmaf_feature
 %attr(755,root,root) %{_bindir}/vmaf_rc
 %attr(755,root,root) %{_bindir}/vmafossexec
 %{_datadir}/model
 
 %files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvmaf.so.0
+%attr(755,root,root) %{_libdir}/libvmaf.so.0.0.0
+%attr(755,root,root) %ghost %{_libdir}/libvmaf.so.0
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/vmaf-shared.patch b/vmaf-shared.patch
deleted file mode 100644
index 2dbf6b4..0000000
--- a/vmaf-shared.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- vmaf-1.5.1/libvmaf/src/meson.build.orig    2020-02-28 16:29:23.000000000 
+0100
-+++ vmaf-1.5.1/libvmaf/src/meson.build 2020-03-08 21:41:01.812977415 +0100
-@@ -127,6 +127,7 @@
- 
- libvmaf = both_libraries(
-     'vmaf',
-     vmaf_sources,
-+    soversion: 0,
-     include_directories : vmaf_include,
-     c_args : vmaf_cflags_common,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vmaf.git/commitdiff/6d9c8352cd5a6591a8b87e8f9b5148cf4a725b4d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to