]> git.pld-linux.org Git - packages/vmaf.git/commitdiff
- updated to 1.5.2 auto/th/vmaf-1.5.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 Jul 2020 19:35:18 +0000 (21:35 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 6 Jul 2020 19:35:18 +0000 (21:35 +0200)
- removed obsolete shared patch
- added trigger to replace libvmaf.so.0 library file with soname symlink

vmaf-shared.patch [deleted file]
vmaf.spec

diff --git a/vmaf-shared.patch b/vmaf-shared.patch
deleted file mode 100644 (file)
index 2dbf6b4..0000000
+++ /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,
index 92d3719aa8c84b02cf84c8a19578d490c2441606..d447a1397cbf1de3ebf88d31afea2468337eee85 100644 (file)
--- a/vmaf.spec
+++ b/vmaf.spec
 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)
This page took 0.088546 seconds and 4 git commands to generate.