[packages/vvdec] - new

qboosh qboosh at pld-linux.org
Sun Sep 15 16:16:37 CEST 2024


commit 4b51cebbc61b0687a038172e9b1008587bdb4ca8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 15 16:19:18 2024 +0200

    - new

 vvdec-no-simd.patch | 10 ++++++
 vvdec-pc.patch      | 12 +++++++
 vvdec.spec          | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 112 insertions(+)
---
diff --git a/vvdec.spec b/vvdec.spec
new file mode 100644
index 0000000..de9e330
--- /dev/null
+++ b/vvdec.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_with	sse4		# SSE4.1 (obligatory) and optionally AVX+ instructions
+#
+Summary:	Fraunhofer Versatile Video Decoder (VVdeC)
+Summary(pl.UTF-8):	VVdeC - dekoder obrazu Fraunhofer Versatile Video
+Name:		vvdec
+Version:	2.3.0
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: https://github.com/fraunhoferhhi/vvdec/releases
+Source0:	https://github.com/fraunhoferhhi/vvdec/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	68a2aca2c08be29810ed4997e8c92f19
+Patch0:		%{name}-pc.patch
+Patch1:		%{name}-no-simd.patch
+URL:		https://github.com/fraunhoferhhi/vvdec
+BuildRequires:	cmake >= 3.12.0
+# C++14
+BuildRequires:	libstdc++-devel >= 6:5
+BuildRequires:	rpmbuild(macros) >= 1.605
+%if %{with sse4}
+Requires:	cpuinfo(sse4_1)
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+VVdeC, the Fraunhofer Versatile Video Decoder, is a fast software
+H.266/VVC decoder implementation supporting all features of the VVC
+Main10 profile.
+
+%description -l pl.UTF-8
+VVdeC (Fraunhofer Versatile Video Decoder) to szybka implementacja
+programowego dekodera H.266/VVC, obsługująca całą funkcjonalność
+profilu VVC Main10.
+
+%package devel
+Summary:	Header files for VVdeC library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki VVdeC
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel >= 6:5
+
+%description devel
+Header files for VVdeC library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki VVdeC.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DCMAKE_SKIP_INSTALL_RPATH=ON \
+	%{!?with_sse41:-DVVDEC_ENABLE_X86_SIMD=OFF} \
+	-DVVDEC_INSTALL_VVDECAPP=ON
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+cp -dp build/source/Lib/vvdec/libvvdec.so* $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.md LICENSE.txt README.md
+%attr(755,root,root) %{_libdir}/libvvdec.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvvdec.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libvvdec.so
+%{_libdir}/cmake/vvdec
+%{_includedir}/vvdec
+%{_pkgconfigdir}/libvvdec.pc
diff --git a/vvdec-no-simd.patch b/vvdec-no-simd.patch
new file mode 100644
index 0000000..77ad4e0
--- /dev/null
+++ b/vvdec-no-simd.patch
@@ -0,0 +1,10 @@
+Fix missing simde_bswap definition without TARGET_SIMD_X86
+--- vvdec-2.3.0/source/Lib/CommonLib/x86/CommonDefX86.h.orig	2024-04-29 14:46:10.000000000 +0200
++++ vvdec-2.3.0/source/Lib/CommonLib/x86/CommonDefX86.h	2024-09-15 14:48:36.788864195 +0200
+@@ -94,4 +94,6 @@ static inline __m128i _mm256_cvtepi32_ep
+ 
+ }   // namespace vvdec
+ 
++#else
++#include <simde/simde-common.h>
+ #endif // TARGET_SIMD_X86
diff --git a/vvdec-pc.patch b/vvdec-pc.patch
new file mode 100644
index 0000000..1f3d2a2
--- /dev/null
+++ b/vvdec-pc.patch
@@ -0,0 +1,12 @@
+--- vvdec-2.3.0/pkgconfig/libvvdec.pc.in.orig	2024-04-29 14:46:10.000000000 +0200
++++ vvdec-2.3.0/pkgconfig/libvvdec.pc.in	2024-09-15 13:41:52.967221425 +0200
+@@ -1,7 +1,7 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_BINDIR@
+-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+-includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+ 
+ Name: libvvdec
+ Description: Fraunhofer Versatile Video Decoder (VVdeC)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vvdec.git/commitdiff/4b51cebbc61b0687a038172e9b1008587bdb4ca8



More information about the pld-cvs-commit mailing list